Update a window to a new build without ending its turn #9

Merged
nelson merged 1 commit from ATC-12-live-update into main 2026-11-10 22:38:44 -08:00
Owner

Updating an at-claude window used to end the turn in progress, because the window owned claude. Now each window starts a windowless at-claude host that holds claude and keeps everything that happened. at-claude update replaces windows with a new build mid-turn: the new window attaches to the same host, is shown the whole conversation, and gets the old window's draft, queued messages and scroll. When a release changes how the window and host talk, the update waits for the turn to end and restarts the window, keeping the session, the draft and the queue. Closing a window still ends its host and claude.

Tried for real on a throwaway server with haiku: an update during a running tool call kept the call, which finished in the new window, and kept the draft. A protocol-changing update waited out the turn and a queued message's turn, then restarted on the new build with the session and draft. Quitting ended the host and claude. Windows on v0.1.7 and earlier have no host, so they get updated by hand one last time (TESTING.md).

Work package: https://openproject.romaine.life/wp/ATC-12

Updating an at-claude window used to end the turn in progress, because the window owned `claude`. Now each window starts a windowless `at-claude host` that holds `claude` and keeps everything that happened. `at-claude update` replaces windows with a new build mid-turn: the new window attaches to the same host, is shown the whole conversation, and gets the old window's draft, queued messages and scroll. When a release changes how the window and host talk, the update waits for the turn to end and restarts the window, keeping the session, the draft and the queue. Closing a window still ends its host and `claude`. Tried for real on a throwaway server with haiku: an update during a running tool call kept the call, which finished in the new window, and kept the draft. A protocol-changing update waited out the turn and a queued message's turn, then restarted on the new build with the session and draft. Quitting ended the host and `claude`. Windows on v0.1.7 and earlier have no host, so they get updated by hand one last time (TESTING.md). Work package: https://openproject.romaine.life/wp/ATC-12
Update a window to a new build without ending its turn (ATC-12)
All checks were successful
CI / build (pull_request) Successful in 1m10s
CI / pcs (pull_request) Has been skipped
CI / home-sync (pull_request) Successful in 0s
9666bea784
nelson merged commit 2700616912 into main 2026-11-10 22:38:44 -08:00
nelson deleted branch ATC-12-live-update 2026-11-10 22:38:44 -08:00
Sign in to join this conversation.
No reviewers
No labels
queue
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/at-claude!9
No description provided.