Skip to content

Clean up event-stream shutdown - #13

Merged
sundruid merged 1 commit into
mainfrom
codex/event-stream-shutdown-cleanup
Jul 31, 2026
Merged

sundruid merged 1 commit into
mainfrom
codex/event-stream-shutdown-cleanup

Conversation

@sundruid

Copy link
Copy Markdown
Owner

What changed

  • tolerate SQLite closure while an event-stream handler performs final IRC
    presence cleanup
  • add a regression test that forces this shutdown order
  • record the cleanup in the 1.6.1 changelog

Why

The full Raspberry Pi suite passed, but its deliberately temporary database
could be removed just before a daemon event-stream thread performed its final
irc_leave. That produced a harmless background traceback after a successful
test. Production storage is persistent, but shutdown should still be clean.

Validation

  • Python compile check
  • 41 tests passing locally (2 Linux-only SO_PEERCRED tests skipped on macOS)
  • dedicated simulated database-close regression test
  • git diff --check

@sundruid
sundruid marked this pull request as ready for review July 31, 2026 04:03
@sundruid
sundruid merged commit aa43896 into main Jul 31, 2026
2 checks passed
@sundruid
sundruid deleted the codex/event-stream-shutdown-cleanup branch July 31, 2026 04:03
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