Skip to content

fix(codex): preserve thread lock fallback - #1230

Open
Pepen0 wants to merge 1 commit into
kunchenguid:mainfrom
Pepen0:fix/codex-thread-lock-fallback
Open

fix(codex): preserve thread lock fallback#1230
Pepen0 wants to merge 1 commit into
kunchenguid:mainfrom
Pepen0:fix/codex-thread-lock-fallback

Conversation

@Pepen0

@Pepen0 Pepen0 commented Jul 29, 2026

Copy link
Copy Markdown

Summary

Fix Codex API/Desktop-hosted Firstmate sessions becoming read-only when process ancestry inspection is unavailable.

This preserves process-backed harness PID ownership, including the current Claude outermost-ancestry behavior, and adds a CODEX_THREAD_ID fallback for Codex sessions where ps cannot expose a local codex parent process.

Validation

  • FM_HOME=/private/tmp/fm-codex-thread-test-home CODEX_THREAD_ID=fm-test-thread-1 bin/fm-session-start.sh
    • confirmed lock acquired: codex thread fm-test-thread-1
    • confirmed primary harness: codex
  • tests/fm-grok-harness.test.sh

Known unrelated local issue

  • tests/fm-turnend-guard.test.sh fails locally on Pi TypeScript extension import with Node v20:
    • TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts"
  • The same Pi TypeScript import failure reproduces on current main.

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