Skip to content

fix(session): recover orphaned task runs - #42292

Open
0xfed wants to merge 4 commits into
anomalyco:devfrom
0xfed:session-recovery
Open

fix(session): recover orphaned task runs#42292
0xfed wants to merge 4 commits into
anomalyco:devfrom
0xfed:session-recovery

Conversation

@0xfed

@0xfed 0xfed commented Aug 13, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #42286

Type of change

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

What does this PR do?

When a persisted task call outlives its in-memory session runner, abort now marks the stale task part and its parent assistant message as aborted instead of leaving both unfinished. It also avoids the dummy session route during --continue --fork startup and returns to home when no session is available.

How did you verify your code works?

  • Ran native tsgo --noEmit in packages/opencode and packages/tui.
  • Ran focused runner, task, orphan-recovery HTTP, and TUI lifecycle tests.

Screenshots / recordings

Not applicable: terminal startup behavior is covered by a lifecycle test.

Checklist

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

@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels Aug 13, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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.

Abort leaves orphaned task calls pending

1 participant