Skip to content
This repository was archived by the owner on Jun 1, 2026. It is now read-only.

fix: propagate subagent retry status to primary agent (#5204)#4

Merged
kiennq merged 0 commit into
kiennq:devfrom
fghpdf:fix/subagent-retry-status-5204
Jan 23, 2026
Merged

fix: propagate subagent retry status to primary agent (#5204)#4
kiennq merged 0 commit into
kiennq:devfrom
fghpdf:fix/subagent-retry-status-5204

Conversation

@kiennq
Copy link
Copy Markdown
Owner

@kiennq kiennq commented Jan 23, 2026

When a subagent encounters a retryable error (e.g., rate limit), the primary agent now receives and displays the retry status instead of appearing to hang indefinitely.

Changes:

  • task.ts: Include SessionStatus in TaskTool return metadata
  • prompt.ts: Check and propagate subagent retry status to primary agent
  • Add logging for subagent retry detection

Fixes anomalyco#5204

What does this PR do?

How did you verify your code works?

@kiennq kiennq merged this pull request into kiennq:dev Jan 23, 2026
2 of 5 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error messages from model provider during a subagent don't make way to primary agent

1 participant