feat: add goal mode - #389
Open
yhw5231 wants to merge 2 commits into
Open
Conversation
StackCairn
marked this pull request as draft
August 6, 2026 09:06
Contributor
|
PR governance checks passed. Awaiting human review. |
yhw5231
marked this pull request as ready for review
August 6, 2026 10:59
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.
Closes #390
Summary
Adds an optional per-conversation goal mode for long-running Agent tasks. Goals persist with conversation history and expose lifecycle controls, pause/resume behavior, token/time usage, TodoWrite progress, provider recovery, and automatic continuation while the goal is active.
The follow-up fix also prevents completed or paused goals from steering later ordinary prompts, preserves
/goal statusand/goal helpfeedback after persistence, and excludes failed tool results from the no-progress detector.Change scope
agent-guiReact runtime, chat history persistence, built-in goal tools, provider stream recoverycrates/agent-gui/src/lib/chat/goal.tscrates/agent-gui/src/lib/chat/conversation/crates/agent-gui/src/lib/tools/goalTools.tscrates/agent-gui/src/pages/chat/crates/agent-gui/src-tauri/src/commands/history/chat_history/Screenshots / preview
The preview shows the per-conversation goal-mode toggle in the chat composer.
Verification
pnpm exec node --test test/chat/goal.test.mjs: 20 passedpnpm exec tsc --noEmit: passedgit diff --check: passedcargois not installed in the environment.Pre-submit checklist