Skip to content

Recover hung GUI stop and stale structured sessions#82

Merged
SDSLeon merged 1 commit into
masterfrom
lightcode/clear-badger-e538aa4c
Jun 1, 2026
Merged

Recover hung GUI stop and stale structured sessions#82
SDSLeon merged 1 commit into
masterfrom
lightcode/clear-badger-e538aa4c

Conversation

@SDSLeon

@SDSLeon SDSLeon commented May 31, 2026

Copy link
Copy Markdown
Owner

Type: Bugfix

  • Stop GUI threads from hanging on "waiting for agent to stop" when a structured session is stale or disconnected and never acknowledges cancel
  • Arm a 10s force-stop watchdog on user stop; reset it on inbound status updates and runtime events so healthy slow cancels are not killed prematurely
  • Dispose the dead structured session and move the thread to a stopped error state when the agent stays silent through the grace window
  • Auto-restart structured threads when the user submits after a force-stop left the session in error without a live handle
  • Add supervisor coverage for stale-interrupt recovery and clear interrupt timers during session teardown, restart, and dispose

- Add structured interrupt watchdog that force-stops after silence
- Reset watchdog on inbound status/runtime activity; clear in teardown
- Restart structured thread on send when session is gone but in error
- Add stale-interrupt watchdog tests for ThreadSessionManager
@vercel

vercel Bot commented May 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lightcode-landing Ready Ready Preview, Comment May 31, 2026 8:04am

@SDSLeon SDSLeon merged commit e5652e8 into master Jun 1, 2026
6 checks passed
@SDSLeon SDSLeon deleted the lightcode/clear-badger-e538aa4c branch June 1, 2026 01:11
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.

1 participant