Repository navigation
fix(codex): a last-turn binding holds against redrawn answers, late picker resumes and loaded conversations - #3615
Conversation
…f binding Follow-up to #3582, for the three MEDIUMs of its merge note and the LOW beside them, and for what an adversarial pass on this branch found. - With the prompt not in the read, an answer whose end Codex draws another way (short autolinks, a table as records, two wrapped columns, dense named entities) left no stretch of the screen in the pane's own record, so a conversation that only relayed it won by elimination. A read now also counts as having said the text when one of its records holds every word of the end shown (mayShowWords; letters alone, outside parentheses), and an autolink is no longer deleted as a tag. A named entity that is a sign is no wildcard there. - The second match, without the threads that were only started, now weighs the loaded conversations of other folders and the resumed thread, and declines where the loaded threads cannot be read (Windows among them). Where they refuse what this folder's threads alone gave, a binding to that conversation is dropped. - After the pane's last read the loaded threads are read again: a thread loaded since that was not weighed, or a store that cannot be read, answers nothing. The second match is held to the same last read. - The doubt search builds a text's extra forms only where the text has them and keeps one running text; the record a read cut at its start is weighed as a read of its own, so no read is searched twice. Co-Authored-By: Claude Fable 5.2 <[email protected]>
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
Merge passMerged head
Merge pass note (head 7c6318f). Both reviewers CLEAR. The five round-three shapes of #3582 (autolinks, mail autolinks, a table drawn as records, wrapped columns, dense named entities), scrolled, under a tool's row and with the prompt on screen, all answer nothing on this head and bind the relayer on main. Over 800 real last answers the pane's own conversation falls back to the terminal no more often than on main, and no other conversation binds. Left on the session's list for after the release:
Browser regression (other scripts) failed once on this head in background-agent-states-korean-demo-regression and chat-virtual-browser-qa, two scripts on the flake list that this PR (server/codex.ts only) does not reach; the job passed on a rerun. |
Follow-up to #3582, for the three MEDIUMs of its merge note
(#3582 (comment)) and the LOW beside them, plus
what an adversarial review of this branch found. Everything is in the paths #3582 added: a Codex
pane's chat tied to its conversation by the last finished turn on its screen. The rule stays the
one of #3582: answering nothing (the terminal stands in) is always allowed, a conversation the
pane is not in never is.
Findings and how each is resolved
another way lets a conversation that only relayed it bind. Short autolinks, a table drawn as
records, a table whose columns both wrap and dense named entities left no stretch of the screen
in the pane's own record, so the doubt search missed the pane's own conversation and the relayer
won by elimination.
text when one of its records holds every word of the end shown (
mayShowWords, whichloadedConversationalready applies; named entities through itsENTITYform). The words aretheir letters alone, outside parentheses: Codex numbers a list itself, and what it draws in
parentheses after a link need not be in the record.
bareLettersno longer deletes an autolink as a tag (<https://…>,<[email protected]>): Codex drawsits address.
fix(chat): tie a Codex pane to its conversation by its last turn in three more cases (#3262) #3582.
this folder's conversation before the loaded conversations of other folders were weighed. It
now reads the loaded threads first and declines where they cannot be read. It is taken only when
the same match holds with every loaded conversation of another folder (and the thread the
command line resumed) among the candidates; a thread of another folder that was only started is
left out as this folder's are. The answer to the same question is kept, as the last-turn lookup
keeps its own.
screen read was not seen. After the last read of the pane (screen and processes), the loaded
threads are read a second time: a thread loaded that was not weighed, or a store that cannot be
read then, answers nothing. A thread unloaded meanwhile changes nothing (it was weighed). The
second match of finding 2 is held to the same last read, since it now waits on the store too.
folders. The doubt search builds the extra forms of a text (numeric entities, reference links,
memory citations, fences) only where the text has them, and keeps one running text instead of
two. The record a read cut at its start is weighed as a read of its own, and only once
everything else leaves one conversation, so no read is searched a second time.
From the adversarial review of this branch (a review agent, before the push)
Two states returned a conversation the pane is not in, on this branch and on main alike. Both are
fixed here, each with a test that fails on main:
each address followed by
(mailto:…): no stretch survives, and "mailto" is in no record of thepane's own, so the word rule missed it too. The words are now read outside parentheses, as the
stretch search already reads the text.
beside a second Codex that only started; then a conversation of another folder with the same
exchange is loaded (a picker resume replays the same rows). The second match refused, and the
earlier binding answered. A refusal by the loaded conversations now drops a binding to the
conversation it refused.
Three states where main bound and this branch answered nothing:
,<&>) in anotherconversation's tool output stood for any word of up to nine letters. Named entities that are
signs are no longer read as possible letters.
lies more than 1 MiB back (a long agent turn in any folder), and beside more than 32 loaded
threads. Both are the existing rules of the last-turn lookup, now applied to the second match.
Limits, stated
that only started) now stays on the terminal on Windows, as the first two already did. The
changelog entry of fix(chat): tie a Codex pane to its conversation by its last turn in three more cases (#3262) #3582 (unreleased) says so now; no new fragment.
lsof), once more thanbefore.
footedOwner, on mainsince fix(codex): identify completed rendered replies #2636) binds this folder's conversation in the scenario of finding 2 without any second
Codex: a loaded conversation of another folder that was asked the same prompt and ended on the
same answer is not weighed there either. Same store, same person; no other person's or PC's
conversation.
wrapped columns is modelled from the codebase's own descriptions, as in the review.
Tests
All through
codexTranscriptPathon the fake-herdr harness (server/codex-processes.test.ts):23 new tests, 268 in the file. Run against
origin/main'sserver/codex.ts, 17 of them fail:below a tool's row, for short autolinks, short mail autolinks, a table drawn as records, a table
whose columns both wrap, dense named entities, a table drawn as records below a list Codex
numbers itself and a table of mail autolinks drawn as records (main binds the conversation that
only relayed it); and a scrolled answer beside a conversation one of whose answers holds every
word of its end in another order.
beside a second Codex that only started (main binds this folder's); the same while the loaded
threads cannot be read; the binding of an earlier second match once such a conversation is
loaded.
turn and for the second match; a store that cannot be read at the second read.
thread unloaded between the two reads keeps the conversation; the pane redrawn by
/newwhile thesecond match reads the store; the second match reads no loaded rollout again for the same
question.
Six more pass on both and hold what must not change: the pane's own scrolled answer still binds
beside a conversation that holds its words in records apart, and beside one whose tool printed a
run of sign entities; its fenced answer under its prompt still binds beside one that holds every
word in another order; a loaded thread's cut record is still weighed; a thread of another folder
that was only started raises no doubt; numeric entities are still read as their letters.
Mutation check (one guard removed at a time, then the
#3262tests of both files): 69 guards, the52 of #3582 and 17 new or changed. 60 fail at least one test. Of the other nine:
no slice at the last header,only owners counted,any length).(too few letters, fences, any stretch, digits, an unparsed line's escapes). With the word rule
off, each fails its test again, as on main.
removed, four tests fail.
Measured, read-only, over this PC's real Codex rollouts (counts and times only):
cut read was searched twice on the first tie.
strings of 504 rollouts.
folder: it raised a doubt in 33, all of them already raised by the stretch rule. It added none.
(Measured before the words were read outside parentheses and before sign entities were left out;
the first only adds doubt, the second only removes it.)
Validation
bun run check faston this head (TMPDIR=$HOME/.cache/ovis-tmp/ext-codex): passed. Unit tests 15,448 pass, 0 fail,51 skip in 894 files; workflow syntax, generated types and themes, typecheck and build ok.
HERDR_TEST_MODE=unit bun test ./server/codex.test.ts ./server/codex-processes.test.ts: 385pass, 0 fail.
./server/conventions.test.tsand./scripts/changelog-fold.test.ts: pass.server/codex.tsabove.bun run check full, the integration and browser suites, anything on Windows ormacOS (the macOS reader of the loaded threads,
lsof, is not exercised here), a live Codex.🤖 Generated with Claude Code