Repository navigation
Make it a goal asks the session's agent for a handoff first - #267
Merged
Merged
Conversation
… the ask's state, the heed goal handoff verb and [goals] handoff_timeout Co-Authored-By: Claude Opus 5.5 <[email protected]>
… with the agent's live state, and starts the plan from it Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Mpdreamz
force-pushed
the
feature/promote-handoff
branch
from
November 16, 2026 00:02
f3450fb to
3f1f55b
Compare
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.
What
"Make it a goal" from a session fed the new goal only the session's first prompt, hours stale. Now
↩on the popover (goal.promote.go) first asks the session's agent for a handoff, and the plan step starts from it.SessionHandoffparses it (any heading level and case, a few aliases, fences respected); it needs Work plus one more section.Delivery.route, viaHandoffAsk.route): the agent's inbox where it has one (Claude's, which holds the ask), else typed only while the agent is idle or done and you have not typed there. A busy or typed-in session is never typed into; the ask waits and the popover says why.heed goal handoffreads the markdown on stdin (--filealso works). It goes over the control socket as agoalrequest, so the pane token vouches for the session; heed accepts it only while it is waiting, only from that session. An unreadable handoff is refused with why (exit 1) and the agent can try again.s(goal.promote.skip, "Start without it") makes the goal as before;⎋cancels. Timeout ([goals] handoff_timeout, seconds, default 180, 0 = never ask), no agent pane, an exited agent, or a remote agent all fall back to today's behaviour with a note.GOAL.mdas a## Handoffsection (headings as bold lines, because GOAL.md reads every heading level as a section), so it is visible and editable and every agent on the goal reads it. Its Work is the goal's statement, what it left Open becomes the found/planned parts, a card shows it above the conversation (eopens GOAL.md to edit), the planner's prompt includes it, and the TL;DR says the goal started from a handoff and how much was done/open.Verified
swift test: 2464 tests pass (18 new: parsing, the fallbacks for timeout, skip, no agent, exited and remote agents, malformed handoff, the busy-session guard, the CLI verb, GOAL.md round trip, TL;DR, planner prompt)..workingand.blockedguards, the typing grace, and the timeout boundary each fail a test (restored after).mise run lint,text-check,tutor-check(0 problems).sessions/make-it-a-goal-waiting,goals/wizard-plan-handoff.Not verified live
Nothing here ran against a real Claude Code (no model calls were made): the ask arriving through a real inbox, a real agent running
heed goal handoff, and the typed fallback in a real pane.mise run liveonly drives headless agents without a running heed, so it cannot cover the app side; see the report for how to check it by hand.🤖 Generated with Claude Code