Skip to content

fix: clear stale sessions on crash recovery#1317

Open
akasha-scheuermann wants to merge 2 commits intoqwibitai:mainfrom
akasha-scheuermann:fix/clear-stale-sessions
Open

fix: clear stale sessions on crash recovery#1317
akasha-scheuermann wants to merge 2 commits intoqwibitai:mainfrom
akasha-scheuermann:fix/clear-stale-sessions

Conversation

@akasha-scheuermann
Copy link
Copy Markdown
Contributor

Type of Change

  • Feature skill - adds a channel or integration (source code changes + SKILL.md)
  • Utility skill - adds a standalone tool (code files in .claude/skills/<name>/, no source changes)
  • Operational/container skill - adds a workflow or agent skill (SKILL.md only, no source changes)
  • Fix - bug fix or security fix to source code
  • Simplification - reduces or simplifies source code
  • Documentation - docs, README, or CONTRIBUTING changes only

Description

When a container dies and ⁠ recoverPendingMessages() ⁠ finds unprocessed messages, it enqueues them for reprocessing but doesn't clear the session ID. This causes the recovered messages to resume the old (potentially bloated) session, which often churns without producing output.

Fix: clear the session ID before enqueuing, so recovery spawns a fresh container.

For Skills

  • SKILL.md contains instructions, not inline code (code goes in separate files)
  • SKILL.md is under 500 lines
  • I tested this skill on a fresh clone

akasha-scheuermann and others added 2 commits March 21, 2026 18:14
When a container dies and recovery finds unprocessed messages, clear
the session ID so recovered messages get a fresh container instead
of resuming a bloated session that churns without producing output.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Previously, agent-runner source was only copied to per-group directories
on first run. Updates to agent-runner (new IPC tools, bug fixes) never
propagated to existing groups until their agent-runner-src/ was manually
deleted.

Now copies on every spawn so upstream changes take effect immediately.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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