You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Command outcomes: prove Codex and Claude transcripts through one descriptor and return its identity #3402
Follow-up from #3399 (#3398, command-outcome tracking held to the authorized transcript), by the maintainer's decision. Not blocking: the merge pass did not reproduce these two.
#3399 has the OMP, Pi and GJC transcript resolvers return the exact dev:ino of the file they proved through one held descriptor. The outcome read checks that identity before reading. Codex and Claude still prove their file by path, across separate reads:
Codex (codexTranscriptPath): it reads /proc/<pid>/fd links, then matches the screen against a by-path codexHistoryTail(path).
Claude (claudeTranscriptPath, also used by claudePaneSession): it calls stat(path).isFile(), then reads the file's tail by path in continuedInSession(path).
Neither holds a descriptor whose identity it could pass on. For now the guard is the exact bigint stat in readCommandTranscript, plus the bound-handle check on every byte. A file renamed over the transcript between the resolver's content proof and that stat can't be told apart from the agent's own rewrite.
Fix:
Run each resolver's content proof through ONE opened descriptor (O_RDONLY | O_NONBLOCK).
Repro for this work, from the merge pass's Codex review of #3399 at ad59c07 (route: axwith), reproduced:
Claude and Codex transcript resolution returns only a path, so the command-outcome reader (server/conversation.ts:2685) accepts whichever file occupies that path at its first stat. Renaming a foreign Claude transcript containing a /context echo and its output over the resolved path between the resolver's return and that stat made /api/pane/prompt report /context as result-observed with transcript evidence from the foreign file; the same swap makes Codex's reader return foreign evidence. Pi, OMP, GJC and OmO are already bound to their resolver's held-descriptor identity after #3399; Claude and Codex need the same (resolve once into a held descriptor and read the outcome from it).
Activity
fix(conversation): hold command outcomes to the exact file gjc's and …
devswha commentedon Nov 8, 2026
Repro for this work, from the merge pass's Codex review of #3399 at ad59c07 (route: axwith), reproduced:
Claude and Codex transcript resolution returns only a path, so the command-outcome reader (
server/conversation.ts:2685) accepts whichever file occupies that path at its first stat. Renaming a foreign Claude transcript containing a/contextecho and its output over the resolved path between the resolver's return and that stat made/api/pane/promptreport/contextasresult-observedwith transcript evidence from the foreign file; the same swap makes Codex's reader return foreign evidence. Pi, OMP, GJC and OmO are already bound to their resolver's held-descriptor identity after #3399; Claude and Codex need the same (resolve once into a held descriptor and read the outcome from it).fix(conversation): prove Claude's tail and Codex's held rollout to th…