Repository navigation
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0e4a85d549
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| @@ -17,4 +17,5 @@ an entry. | |||
| - `fix(server): detect Windows npm provider binaries for updates`: Codex instances configured with npm's native executable can update through T3, and manual-only installs no longer suggest an unavailable update action. Issue: none linked. PR: none yet | |||
| - `feat(web): download files from chat file links`: the context menu on chat file links offers "Download file" for any host file the connection can read, including files outside the workspace, so remote clients can fetch agent output. Issue: none linked. PR: none yet | |||
| - `fix(fork): show release deltas and link fork notes`: release notes list upstream changes and only new or updated fork patches since the previous published build, even after rebases; desktop release links follow the configured updater repository. Issue: none linked. PR: none yet | |||
| - `feat(server): skip cache writes on cold Claude compaction`: opt-in Claude setting **Skip cache writes on cold compaction** runs a compaction of a thread idle 70+ minutes, whose Claude process was already released, without prompt caching, so the history the summary replaces is not cached again; the next message reopens Claude with caching (one extra process start). Saves usage only if every gateway or proxy forwards requests without cache markers unchanged. Issue: https://github.com/pingdotgg/t3code/discussions/18069 (was https://github.com/pingdotgg/t3code/issues/18067). PR: none yet | |||
There was a problem hiding this comment.
Fold this entry into the docs commit
This feature commit directly modifies fork/CHANGES.md, but fork/README.md:98-104 requires all entries to be folded into the single docs(fork) commit. Leaving the entry here gives feature commits separate ownership of this file, making an upstream sync conflict-prone when a patch is dropped or reordered; move it with the documented fixup/autosquash workflow.
AGENTS.md reference: AGENTS.md:L1-L3
Useful? React with 👍 / 👎.
0e4a85d to
d14906b
Compare
|
Landed on fork main as 0d299fcd8 (change-list entry folded into the docs(fork) commit). Release run: https://github.com/Alb11747/t3code/actions/runs/38121216140 |
Fork-only feature. Proposed upstream in pingdotgg#18069; no upstream PR.
Problem
When a large Claude thread has been idle past its prompt cache,
/compact(the Compact chip, Compact context, or a typed/compact) writes the whole old history back to the cache, even though the summary replaces it. Claude Code'sskipCacheWriteonly moves the tail breakpoint, so the earlier history keeps its cache markers. In one measured Opus cold compaction, that write was about half the cost.Change
ClaudeAdapterV2.compactThreadtreats a compaction as cold only if both of these hold:@t3tools/shared/claudeCompaction);DISABLE_PROMPT_CACHING=1in that query's env only, plus a distinct query-policy key.X-CPA-Prompt-Cache-Mode: explicittoANTHROPIC_CUSTOM_HEADERS, keeping any headers the instance already sets. CLIProxyAPI treats Agent SDK clients as non-native and adds its own cache markers to markerless requests. A proxy build that maps this header onto its existing explicit cache mode (prompt_cache_options.mode) adds none. Other gateways don't use the header.ProviderTurnStartServicepasseslastProviderTurnActivityAt(the latest provider turn completion, or start for a turn that never completed) throughProviderAdapterV2TurnInput. The adapter loses in-memory state on idle release, so it can't track this itself.forkSessionstill restores the full pre-compaction history.Surfaces
resume_returndialog compacts inside the productive process, so this setting doesn't apply to it.Verification
Adapter tests:
Integration test: the timestamp is forwarded from the projection.
Other tests: the settings default, and the settings form field list.
Typechecks: shared, contracts, provider-core, server and web. Lint and format pass on the changed files.
Mock end to end (loopback, dummy keys; done by GPT-6.1-Sol), using Claude Code 2.1.296
/compactwith this env:prompt_cache_optionsreached upstream.Not verified / limitations
feat/claude-prompt-caching-optout, not deployed). Other gateways that add defaultcache_controlwould still cache the compaction.Landing
The second commit is
fixup!for thedocs(fork)change list. Land withGIT_SEQUENCE_EDITOR=true git rebase -i --autosquash "$(git merge-base HEAD fork/upstream-main)", then pushmainperfork/README.md.🤖 Generated with Claude Code (Claude Opus 5.5 in T3 Code)