Skip to content

fix(agent-manager): keep PTYs durable across reloads - #13209

Merged
marius-kilocode merged 5 commits into
mainfrom
unify-inline-session-diff-viewer
Aug 19, 2026
Merged

fix(agent-manager): keep PTYs durable across reloads#13209
marius-kilocode merged 5 commits into
mainfrom
unify-inline-session-diff-viewer

Conversation

@marius-kilocode

@marius-kilocode marius-kilocode commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

Agent Manager terminals are backed by PTYs owned by the shared CLI process, but the previous lifecycle tied PTY state to transient instance and webview lifetimes. Reloads, worktree deletion, failed setup, and shutdown could leave shells running, lose output, or delete worktree state before cleanup completed.

The PTY registry now keeps sessions process-wide, scopes them by directory and workspace, retains exited output for reconnects, and terminates process trees explicitly. The Agent Manager lifecycle blocks new terminals during worktree removal, cleans PTYs before disk/state removal, retains failed cleanup entries for retry, and handles setup/import rollback paths. The server preserves location routing across instance disposal and the legacy API remains compatible with its previous exited-session behavior.

Comment thread packages/kilo-ui/src/components/file.tsx Outdated
@kilo-code-bot

This comment has been minimized.

@marius-kilocode
marius-kilocode force-pushed the unify-inline-session-diff-viewer branch from 55bc33c to ff16bc2 Compare August 18, 2026 15:28
@marius-kilocode marius-kilocode changed the title fix(vscode): align inline diff styling fix(agent-manager): keep PTYs durable across reloads Aug 18, 2026
@marius-kilocode
marius-kilocode merged commit a733874 into main Aug 19, 2026
33 checks passed
@marius-kilocode
marius-kilocode deleted the unify-inline-session-diff-viewer branch August 19, 2026 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants