Skip to content

Guarantee startup message delivery - #199

Merged
Time4Mind merged 2 commits into
mainfrom
fix/startup-message-delivery
Aug 6, 2026
Merged

Guarantee startup message delivery#199
Time4Mind merged 2 commits into
mainfrom
fix/startup-message-delivery

Conversation

@Time4Mind

Copy link
Copy Markdown
Owner

Problem

Messages received after pressing Start could be routed before the new Codex session was actually ready. Voice, text, photos, documents, and commands could therefore be lost or land in the previous session.

Fix

  • capture every inbound update in a per-user FIFO from the beginning of the new-session flow
  • stop queued updates from leaking into the previous active session
  • keep the startup gate closed until a real Codex input screen is detected
  • replay only after the new tmux window is bound and ready
  • require transcript acknowledgement for normal prompts and retain the queue head on failure
  • handle Codex update/trust startup screens safely
  • preserve provisional session state until the session map appears

Verification

  • ruff check src tests
  • pytest -q: 1001 passed
  • targeted pyright: 0 errors
  • isolated live tmux/Codex probe: two FIFO prompts delivered and observed exactly once in the transcript

@Time4Mind
Time4Mind merged commit c9aa09c into main Aug 6, 2026
4 checks passed
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