Fix auto-stalled steering and long Goal plans - #187
Merged
Conversation
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.
Summary
Fixes the long-running Goal UX failure where a Goal auto-paused after the no-progress guard and then ignored a concrete foreground work instruction unless the user first sent
/goal resumeor a narrow continuation phrase. It also removes the implicit 30-turn ceiling for newly created Goals so genuinely long plans are not cut off solely because they need more assistant turns.Changes
/goal pauseauthoritative; unrelated work instructions do not silently resume it./goal editand prevent an unchanged native Todo digest from being silently rebound to the new Goal revision; a genuinely changed/rebuilt plan can bind current.maxTurns: 0by default). Explicit--max-turns//goal budget --max-turnslimits and persisted legacy limits remain hard guards.Why
Observed session snapshots showed Goals with multiple pending Todos (and even effectively finished work) landing in
pausedafter three turns without a new unique host mutation fingerprint. Current lifecycle UX then treated arbitrary foreground work instructions as normal chat while paused. Separately, a 100-step plan could still hit the default 30-turn cumulative budget even after the stall behavior was fixed. This patch makes system auto-pause recoverable and new long-running Goals turn-unbounded by default without turning every user message into a Goal edit or weakening explicit user pause/budget semantics.