Skip to content

docs(opencode): clarify task_id source and when to resume a subagent - #39213

Open
AidenGeunGeun wants to merge 1 commit into
anomalyco:devfrom
AidenGeunGeun:task-resume-docs
Open

docs(opencode): clarify task_id source and when to resume a subagent#39213
AidenGeunGeun wants to merge 1 commit into
anomalyco:devfrom
AidenGeunGeun:task-resume-docs

Conversation

@AidenGeunGeun

Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #39212

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Two small clarifications to the Task tool prompt (task.txt), no code changes:

  1. The description says "The output includes a task_id", but the output actually names it id on the <task> block (renderOutput in task.ts). Spelled out the mapping so models pass the real session id instead of guessing.
  2. Added guidance on when to resume vs start fresh: resume for follow-ups (keeps prior context, short prompts suffice), start fresh when you want an independent look, since a resumed agent carries its earlier conclusions.

How did you verify your code works?

Prompt-text-only change. Confirmed the <task id="..."> output format against renderOutput in packages/opencode/src/tool/task.ts on current dev, and that task_id resume loads the existing session (session lookup in task.ts).

Screenshots / recordings

Not a UI change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant