anomalyco / anomalyco/opencode
[FEATURE]: Clarify task_id source and resume guidance in Task tool description
@jlongster is already working on this.
Since Jul 28, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Feature hasn't been suggested before.
- I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
The Task tool description tells the model "The output includes a task_id you can reuse later", but the actual output never contains anything named task_id — the value is the id attribute of the <task id="ses_..." state="..."> wrapper (see renderOutput in packages/opencode/src/tool/task.ts). The model has to guess that mapping, and a wrong guess means it passes a made-up or wrong id (#37506 shows how badly a wrong id can go).
The description also explains how to resume but not when. Resuming is the cheap path for follow-ups (the agent keeps its context, so the prompt can be short), while review-type agents should start fresh so they aren't anchored by their own earlier conclusions.
Two sentences in task.txt would cover both. I have a small PR ready.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.