Skip to content

Fix Codex bridge self-PID restart loop#444

Merged
fujibee merged 1 commit into
mainfrom
fix/442-codex-bridge-self-pid
Jul 19, 2026
Merged

Fix Codex bridge self-PID restart loop#444
fujibee merged 1 commit into
mainfrom
fix/442-codex-bridge-self-pid

Conversation

@fujibee

@fujibee fujibee commented Jul 19, 2026

Copy link
Copy Markdown
Owner

Fixes #442.

The per-role launcher records the spawned bridge PID immediately. If that write wins the startup race, the bridge single-instance check sees its own PID and previously treated it as a competing live bridge. Accept the self-PID as the launcher reservation while retaining rejection of every other live PID.

Regression coverage deterministically pre-seeds the bridge process' own PID before startup.

Tested: bats tests/test_codex_bridge.bats (35/35).

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.

Codex monitor bridge enters rapid restart loop with codex-cli 0.144.6

1 participant