Skip to content

Interrupt stale delegated agents after host restart - #564

Open
SDSLeon wants to merge 1 commit into
masterfrom
poracode/crisp-stork-febe041b
Open

Interrupt stale delegated agents after host restart#564
SDSLeon wants to merge 1 commit into
masterfrom
poracode/crisp-stork-febe041b

Conversation

@SDSLeon

@SDSLeon SDSLeon commented Aug 12, 2026

Copy link
Copy Markdown
Owner

Type: Bugfix

  • Mark live threads inactive and persist interrupted Subagent/Crossagent tool rows when the host restarts, so pre-restart delegated agents no longer appear as still running
  • Share a single interrupt payload helper and user-facing message so desktop, headless, and DB paths report the same terminal state
  • Merge authoritative terminal delegated-agent updates from remote snapshots, even when a live-first merge would otherwise keep older running rows
  • Clear runtime events on remote event-stream reset and remote thread switch (desktop remote store and mobile) to avoid stale Goal/Plan/Subagent UI after reconnect
  • Cover DB boot, remote sync, mobile coordinator, and headless host paths with tests and localize the new interrupt message

… Commits message.fix(runtime): interrupt stale delegated agents after host restart

- Persist completed Subagent/Crossagent rows on DB boot and mark live threads inactive in main
- Share interruptDelegatedAgentToolPayload helper and runtime.delegatedAgentInterrupted message
- Merge authoritative terminal delegated-agent updates from remote snapshots
- Clear runtime events on remote event-stream reset and remote thread switch
- Cover DB, remote sync, mobile coordinator, and headless host paths with tests
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