Skip to content

[FEATURE]: Clarify task_id source and resume guidance in Task tool description #39212

Description

@AidenGeunGeun

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions