fix(codex): persist visible monitor delivery across restarts#366
Open
ryofukutani wants to merge 2 commits into
Open
fix(codex): persist visible monitor delivery across restarts#366ryofukutani wants to merge 2 commits into
ryofukutani wants to merge 2 commits into
Conversation
Codex has no Monitor tool, and the PATH-shim/app-server bridge only covers CLI-launched sessions. This adds a Desktop-friendly path: - actas-monitor.sh: rebind monitor delivery to an explicit actas identity; app-server sessions keep the bridge, ordinary Codex.app threads fall back to codex-app-monitor.sh - codex-app-monitor.sh: watch inbox rows for one identity and wake the originating Codex.app thread via 'codex exec resume <thread_id>' - restore-actas-monitor.sh: global Codex SessionStart hook that restores the last actas monitor for the project - codex-bridge.js: honor the inbox ids-file so inline-delivered messages are acknowledged read-integrity-safely; add --owner/--claim passthrough; require visible UI acknowledgement in the wake prompt - watch-once.sh: --owner/--claim options for exclusivity claims - dispatch.sh: run the type's actas-monitor hook on 'agmsg actas' - template.md: document the Codex.app wake flow for delivery mode 3 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
actasrole and restore it from SessionStartcodex exec resumeopt-in onlyWhy
A live headless worker can answer agmsg messages outside the visible Codex thread. Rewriting monitor mode to turn mode avoids hidden work but removes SessionStart, so the selected role is not restored after restart. This change keeps monitoring persistent while preserving visible ownership of message handling.
Verification
bash -n,node --check,git diff --check, npm smoke test: passactasrole restored, chat-visible fallback armed, no headless app monitorCloses #365
Refs #263
Refs #361