Skip to content

Conversation

@chilipvlmer
Copy link

@chilipvlmer chilipvlmer commented Jan 11, 2026

Problem

When sisyphus_task completes in boulder/orchestrator mode, the tool.execute.after hook replaces the entire subagent response with git diff stats. This causes issues when:

  1. Resuming a subagent that failed to complete its task
  2. Debugging why a subagent couldn't fix something
  3. Understanding what the subagent actually reported

The orchestrator sees identical output each time (just git stats), making it appear the subagent is "stuck in a loop" when in reality the response is being discarded.

Solution

Preserve the original subagent response by storing it before transformation and including it in the output:

const originalResponse = output.output

output.output = `
## SUBAGENT WORK COMPLETED

${fileChanges}

---

**Subagent Response:**

${originalResponse}

<system-reminder>...</system-reminder>`

Testing

  • Manual verification: Resumed subagent tasks now show their actual response
  • No breaking changes to existing behavior

Summary by cubic

Preserves the original subagent response in Sisyphus orchestrator output instead of replacing it with git diff stats. This fixes confusing “loop” outputs and improves debugging and resume flows.

  • Bug Fixes
    • Store the subagent's original output and include it below file change stats.
    • Prevent loss of subagent details when tasks complete, aiding failed task resume and troubleshooting.

Written for commit aa44c54. Summary will update on new commits.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 11, 2026

All contributors have signed the CLA. Thank you! ✅
Posted by the CLA Assistant Lite bot.

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@chilipvlmer
Copy link
Author

I have read the CLA Document and I hereby sign the CLA

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

@chilipvlmer
Copy link
Author

recheck

github-actions bot added a commit that referenced this pull request Jan 11, 2026
Copy link
Contributor

@Gladdonilli Gladdonilli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Clean fix for an important usability issue.

What this fixes: Previously, the orchestrator was discarding the actual subagent response and replacing it with just git diff stats. This made debugging failed/incomplete tasks nearly impossible since the orchestrator only saw file changes, not what the subagent reported.

The fix: Captures the original response before transformation and includes it in the output. Simple, focused, no side effects.

Approved.

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.

2 participants