Repository navigation
feat(router): A Switched Session Resumes With Its Brief, And Every Handoff Says It Moved - #108
Merged
Merged
Conversation
…ndoff Says It Moved A handoff relaunches the session on --resume and leaves it idle at the prompt, with every in-process workflow gone. Unattended, nothing picks the work back up. - The handoff notice is on by default (ACCOUNTS_HANDOFF_NOTICE=0 turns it off) and is read at each handoff instead of once at supervisor start. - `accounts brief <session-id> --prompt "..." [--model M]` writes ~/.accounts/handoff-briefs/<id>.json. The supervisor uses it once, on the next handoff of any kind: the prompt follows the notice as the relaunch's first message, and the model replaces the running one.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Executive Summary
A handoff to another account relaunched the session idle, with its in-process workflows gone. Nothing picked the work back up unless someone typed into the pane. Now every handoff relaunches with a first message saying the session moved. A session can also leave itself a brief, a one-line prompt plus a model, that its next relaunch runs with. A planned switch while nobody is at the keyboard resumes its work with nothing typed into the terminal.
Developer Summary
ACCOUNTS_HANDOFF_NOTICEnow defaults to on, and0turns it off. The supervisor reads it at each handoff instead of once at start.accounts brief <session-id> --prompt "..." [--model M]writes~/.accounts/handoff-briefs/<id>.jsonwith mode 0600.accounts setswitch relaunches on the new account with the brief's prompt and model; the notice defaults to on;accounts briefwrites the file the router reads. Each new branch was broken once, and each break failed exactly one test.