Repository navigation
Conversation
|
Hey! Your PR title Please update it to start with one of:
Where See CONTRIBUTING.md for details. |
|
The following comment was made by an LLM, it may be inaccurate: Based on my search, I found one potentially related PR: Related PRfeat(session): native per-session goals with /goal and autonomous pursuit (PR #32743) This PR appears to address similar functionality around native goal support with the |
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
|
Thanks for opening this. I have a related PR open at #32743 for native per-session goals with /goal, prompt injection, compaction preservation, HTTP/SDK routes, a model-facing goal tool, and an autonomous pursuit loop.\n\nFrom a quick read, this PR seems complementary, but the architectural boundaries differ:\n\n- #32743 treats goals as per-session runtime state, persisted in the existing DB and exposed through session APIs.\n- #32924 treats goals as workspace-local planning state under .opencode/goals, with richer plan/evidence/checkpoint/log abstractions.\n\nI think the best consolidation path may be:\n\n1. Keep one canonical /goal command surface.\n2. Decide whether the first merged persistence model should be session DB, workspace files, or a layered model.\n3. Potentially split the reusable pieces here into smaller PRs: state machine/domain types, evidence/checkpoint abstractions, logs/history rendering, and verifier/planner/executor skeletons.\n4. Preserve #32743's prompt injection, compaction preservation, API/SDK routes, and model-facing completion tool if maintainers want autonomous pursuit.\n\nHappy to coordinate and adapt #32743 depending on which direction maintainers prefer. |
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Issue for this PR
Closes #32925
Type of change
What does this PR do?
Adds a native
/goalfoundation for OpenCode.This draft includes workspace-local goal state, a state machine, persistence, events, checkpoints, evidence, basic verification, budget handling, logs/history, a Goal service, bootstrap initialization, and native
/goalcommand routing.It is opened as a draft because the diff is large and may need to be split before merge.
How did you verify your code works?
Focused goal tests:
Native
/goalsession routing test:Typecheck:
Focused goal lint:
Pre-push hook also ran:
Screenshots / recordings
Not a UI change.
Checklist