can you review the changes in this branch
- User
can you review the changes in this branch
Assistant
I'll use the code-review skill for this.
Assistant
The review is running in the background. I'll report the findings when it completes.
Assistant
Let me sanity-check the headline claim before relaying it.
Assistant
Verified the headline finding myself against the repo's own Codex fixture — it's real, though the leaked text differs from what the review claimed.
Assistant
The branch is a 4-file change (
c495c922f codex title fix) that adds an injected-preamble filter soentire session attachdoesn't title a checkpoint with Codex's instruction preamble. 12 findings above; the three that matter:The fix doesn't fix the bug. I verified this directly rather than take the review's word for it. matches (with that trailing suffix) and . But the repo's own Codex fixture has a user-role message whose first item is a bare — no suffix, no match. Running over the list actually produces for that fixture returns the AGENTS.md block, not the real prompt. The two new tests pass only because their fixtures put first.
- User
Assistant
The Linear issue changes how I read some of this. Let me check the one thing it decides.
Assistant
# AGENTS.md instructions forappears nowhere except this branch's own code and tests — it isn't from a captured transcript. Let me check a real Codex rollout on disk to settle the ordering.Assistant
That's decisive against my headline finding. Let me scan all 164 rollouts to be rigorous.
Assistant
- User
ok, do it
Assistant
I'll apply the fixes. Let me read the current state of the relevant files.
Assistant
Now let me look at the consumers in attach.go before changing turn-count semantics.
Assistant
Now I'll write the shared predicate in
textutil(a leaf package, so bothstrategyandtranscript/compactcan use it).Assistant
Now the strategy side — collapse the duplicate wrapper and delegate:
Assistant
Now
attach_transcript.go— the fallback, the turn-count fix, and the accurate comment:Assistant
Now the agent-extractor branch — same turn-count semantics, and drop the inaccurate parity claim:
Assistant
Now collapse the duplicate classifier in
transcript/compact/codex.go:Assistant
Now correct the two turn-count assertions that locked in the inflated number:
Assistant
Now a test for the shared predicate, covering the real rollout shapes I measured:
Assistant
Now the real verification — run the fixed code over all 164 actual rollouts:
Assistant
Let me confirm those 4 are the legitimate no-genuine-prompt fallbacks, and get a clean before/after:
Assistant
164 → 12 → 4, and the 4 remaining are sessions with no genuine prompt at all, where the fallback is correct by design. Cleaning up the throwaway tests and running the full gate:
Assistant
Lint clean. Now the full test suite:
Assistant
- User
ok, commit and open a PR, we are only working on the CLI side for now
Assistant
That's an unrelated dependency bump the E2E canary run produced — not part of this change, so I'll leave it out:
Assistant
Committed and opened: https://github.com/entireio/cli/pull/2016
- Commit
3001c07bfonsoph/codex-title, pushed on top of the existingc495c922f. - Left the
.opencode/package-lock.jsondependency bump out — the E2E canary run produced it, unrelated to this change. - PR body carries the 164-rollout measurement table and the 164 → 12 → 4 before/after, so a reviewer can see why the extra prefixes were needed rather than take it on faith.
- Scope noted explicitly as CLI-only, with the ingest fallback, namer decline, and backfill called out as still open elsewhere.
- Commit
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.