Repository navigation
Attribute native Codex conversation switches to the mapped launch - #35
Open
penguinboi wants to merge 3 commits into
Open
penguinboi wants to merge 3 commits into
penguinboi wants to merge 3 commits into
Conversation
Use thread/read directly during post-launch capture and reconciliation. Retain terminal-turn, workspace, and session identity checks before import. Add real installed-Codex regressions for reader and canonical capture paths.
Connect native interactive preparation and projection to the running Codex daemon so detached threads retain one writer. Validate its socket and version, and close only the bridge connection on shutdown. Keep standalone control connections process-owned. Check sync response errors in the native smoke and accept Claude screen-reader trust prompts. Real native-owner probes and a three-turn conversational round trip verify capture and context recall in both directions.
Route native daemon launches through a private local connection and persist successful thread selections before delivering their responses. Validate the saved evidence during capture and recovery so unrelated sibling activity does not look like a native conversation switch. Exclude ephemeral title generation from conversation selection. Keep detection of native new, fork, and resume escapes, and block incomplete evidence. Retain the existing conservative check for launches without a relay. Verify durable evidence, real sibling activity, native escape recovery, and conversational context recall in both directions.
penguinboi
force-pushed
the
fix/codex-launch-attribution
branch
from
September 30, 2026 23:10
566456b to
90a7c28
Compare
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.
Activity in another Codex tab changes a sibling thread's timestamp. The workspace snapshot guard then treats that activity as a switch by the mapped CLI and blocks capture or return to Claude.
Route each native daemon launch on Unix through a private local connection and persist successful conversation selections in the existing launch journal. Capture and recovery validate that evidence against the mapped thread. Sibling activity from other connections no longer causes rejection. Native
/new,/fork, and/resumeto another thread remain detectable, including switching away and back. Incomplete evidence blocks automatic capture.The evidence stores thread IDs and completion state. Ephemeral background title generation is excluded only when both
ephemeral: trueandthreadSource: "thread_title"are present. Launches without a native daemon connection retain the existing conservative snapshot check. No database migration is required. Reopen exited sessions throughagentctl open codex --session NAMEbecause the local relay endpoint lasts for one launch.Depends on #34 for the shared native daemon transport. This PR currently includes its two prerequisite commits. Review the attribution change separately in the incremental diff. Merge #34 first; this branch can then be updated to remove the prerequisite commits from the PR diff.
Validation:
/new,/resumeto an existing thread, and/forkwere rejected at exit and again during reconciliation.Live validation used macOS arm64, Codex 0.159.2, and Claude 2.1.286. The attribution change applies to native daemon launches on Unix. Previously journaled launches without evidence retain their existing validation behavior.
Fixes #32.