mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-31 19:16:29 +00:00
fix(desktop): mark tile and branch runtimes as background
A tile and a branched session each live in their own worktree and render from their own SessionView slice, so neither is the main pane's session. Pass foreground: false at both call sites.
This commit is contained in:
parent
dd762d07bb
commit
c48d9a9c6d
1 changed files with 6 additions and 2 deletions
|
|
@ -504,7 +504,9 @@ export function useSessionActions({
|
|||
upsertOptimisticSession(created, stored, null, null)
|
||||
}
|
||||
|
||||
const runtimeInfo = applyRuntimeInfo(created.info)
|
||||
// A tile lives in its OWN worktree — it must not publish its cwd/branch
|
||||
// into the composer atoms the main pane renders from.
|
||||
const runtimeInfo = applyRuntimeInfo(created.info, { foreground: false })
|
||||
updateSessionState(created.session_id, state => (runtimeInfo ? { ...state, ...runtimeInfo } : state), stored)
|
||||
|
||||
openSessionTile(stored, dir)
|
||||
|
|
@ -1182,7 +1184,9 @@ export function useSessionActions({
|
|||
routedSessionId
|
||||
)
|
||||
|
||||
const runtimeInfo = applyRuntimeInfo(branched.info)
|
||||
// The branch opens as its own tile in the parent's worktree, not as the
|
||||
// primary session — keep its runtime out of the main composer atoms.
|
||||
const runtimeInfo = applyRuntimeInfo(branched.info, { foreground: false })
|
||||
patchSessionWorkspace(routedSessionId, runtimeInfo?.cwd)
|
||||
|
||||
if (runtimeInfo) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue