Skip to content

fix(opencode): preserve task id on foreground failure - #41278

Open
obadakhalili wants to merge 1 commit into
anomalyco:devfrom
obadakhalili:task-error-id
Open

fix(opencode): preserve task id on foreground failure#41278
obadakhalili wants to merge 1 commit into
anomalyco:devfrom
obadakhalili:task-error-id

Conversation

@obadakhalili

Copy link
Copy Markdown

Issue for this PR

Closes #39196

Type of change

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

What does this PR do?

on foreground sub-agent failure/cancellation, use renderOutput to include task ID in error message displayed to the agent, which allows it invoke the sub-agent on the same session again via the task ID.

How did you verify your code works?

asked agent to start a foreground sub-agent which I cancel, and then report the task ID that it sees.

image

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Foreground subagent failure returns no task_id, so the parent cannot resume it

1 participant