Skip to content

fix(tui): handle missing subagent session in Task messages (fixes #29350)#29379

Open
levgiorg wants to merge 1 commit into
anomalyco:devfrom
levgiorg:fix/issue-29350-tui-subagent-crash
Open

fix(tui): handle missing subagent session in Task messages (fixes #29350)#29379
levgiorg wants to merge 1 commit into
anomalyco:devfrom
levgiorg:fix/issue-29350-tui-subagent-crash

Conversation

@levgiorg
Copy link
Copy Markdown

Issue for this PR

Closes #29350

Type of change

  • Bug fix

What does this PR do?

Fix TUI crash when rendering Task messages that reference removed subagent sessions by silently handling 404 rejections from the sync call.

How did you verify your code works?

  • TypeScript typecheck passes
  • Existing tests pass

Checklist

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

When the TUI tries to sync a subagent session that has been GC'd or deleted, the 404 rejection propagates as an unhandled error. Added .catch() to silently handle the missing session.

Fixes anomalyco#29350
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.

TUI crashes when opening a session that references a removed subagent

1 participant