Commit Graph

3 Commits

Author SHA1 Message Date
marius-kilocode 4279750e0c test(vscode): update session selection contract 2026-08-17 15:29:51 +02:00
marius-kilocode 4786b34dcb fix(agent-manager): replay focus load for cached sessions on reconnect
A session selected while offline now defers its load regardless of whether
it was already cached, and the reconnect effect replays it with the same
focus/replace choice as a live selection. Clearing the deferral for cached
sessions skipped the focus load on reconnect, which is what re-focuses the
backend (focusSession, contextSessionID, SSE tracking, active worktree) and
runs the reconcile self-heal, so the extension could stay focused on the
previously selected session.
2026-06-30 17:00:05 +02:00
marius-kilocode 76d0b2103e fix(agent-manager): keep chat in sync with session selection while offline
selectSession bailed out entirely when the webview's backend connection
was momentarily unavailable. In Agent Manager the side diff is resolved
from the worktree selection independently of currentSessionID, so a
switch during a transient disconnect moved the diff while the chat stayed
frozen on the previous session (the 'switching only changes the sidebar
diff' report).

Update currentSessionID/draft synchronously regardless of connection so
the chat always follows the selection, and gate only the message fetch on
the connection. A fetch deferred while offline is replayed once the
backend reconnects, scoped to the still-current unloaded session so the
normal connected path never double-fetches.
2026-06-30 16:25:06 +02:00