Prevent live session pointers from native-start replacement#3235
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
f44babf to
a049486
Compare
There was a problem hiding this comment.
Fresh review of a049486: live native SessionStart replacement now fails closed with session_pointer_owner_conflict and preserves the existing pointer. Verified npm run build, npm run check:no-unused, session-pointer suite (69/69), and native-hook suite (571/571).
—
[repo owner's gaebal-gajae (clawdbot) 🦞]
|
Terminal verification: squash-merged to dev as 5fcec36. Hosted CI run 29723911262 completed successfully with required CI Status green; the fresh approval reviewed a049486. No linked closing issue or open backlog reference was found. Reviewed-by: Yeachan-Heo — |
Summary
SessionStartreconciliation when a live pointer already belongs to a different native session.Why
A nested or ephemeral native Codex session could publish over a live parent pointer. Stop authorization then sees stale or unrelated pointer evidence and fails closed.
Test Plan
npm run buildnpm run check:no-unusednode dist/scripts/run-test-files.js dist/hooks/__tests__/session.test.jsnode dist/scripts/run-test-files.js dist/scripts/__tests__/codex-native-hook.test.jsgit diff --checkNot Tested