Repository navigation
Conversation
|
@codex review |
Codex Review Summary: ✅ CompletedThis 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: aace68f1b4
ℹ️ 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".
|
@codex review |
for more information, see https://pre-commit.ci
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
…ent retries Budget the post-compaction whole-document retry against the compaction headroom and the conversation-recall reserve on every fit, including boundary replays, so the next tool round and the recall that follows the fit still fit. Cap that fit's recall below the headroom line only when the document grew the prompt, skip the retry when audio or video parts are present (every fit leaves them uncounted), and keep a forced search_knowledge_base choice forced. Drop the trim_target field the rolling fit no longer needs to report.
|
Pushed a follow-up commit (cf2dca7) and merged the latest What changed in the whole-document retry:
|
|
@codex review |
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
The enabled-tool gate is now built by a helper the tool loop shares with the whole-document retry, so the source check anchors on that helper; it is still fed the sanitized catalog.
|
Pushed 4adc980. It updates |
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
Review summary for head Codex: converged. "Didn't find any major issues" on CI (staging copy, same head, based on current
What changed during review:
|
…ent retries A checkpoint fit reserves nothing for recall, and the recall right after an accepted document is already capped below the headroom line, so subtracting the reserve on checkpoint fits only refused documents that fit (at 8k the accepted prompt dropped from 4,608 to 2,560 tokens).
The tool loop prices the request for the shared KV cache at the top of each round, before the fit. An accepted whole-document retry grows the prompt after that point, so re-run the same recost hook before the payload is sent.
…dling Only tool_choice="required" is satisfied by an accepted document, which leaves the round's tool catalogue unchanged and only switches the choice to auto, so drop the candidate catalogue, the document_satisfies_choice parameter and the _round_tool_names helper (restoring the original execution-gate code and its source check). Recost admission only when the document grew the prompt.
…mission priced Admission prices the request on the unfitted prompt at the top of the round, and a refused recost is not acted on. So instead of recosting, accept a whole document that grows the fitted prompt only up to the unfitted prompt's size; automatic compaction always starts above that line, so this binds only when a short chat is compacted by hand.
… unfitted prompt On a hand-compacted short chat the recall that follows the fit could still push an accepted whole document past the prompt admission priced; cap that recall under the same ceiling as the document.
|
Pushed review fixes on top of
|
|
@codex review |
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
Codex converged on CI (staging run on the same head and current main, since upstream runners were queued): 14 jobs passed. Three failed, and none of them comes from this branch:
What changed in this workflow: see #19841 (comment). In short, the whole-document retry is held to the fit's own target (headroom, plus the recall reserve on rolling fits) and to the size admission already priced, recall and the transcript link are counted inside that bound, the tool-choice handling matches main again, and there are tests for each. |
Lyxot
left a comment
There was a problem hiding this comment.
LGTM. The whole-document retry after compaction stays within the fit's target and the size admission already priced; Codex and staging CI are clean apart from failures that also happen on main.
Match the whole-document retry from unslothai#19841 by message source, so an excerpt search call that argument compaction replays as a copy is replaced with its result instead of being left as an unanswered call.
When a local GGUF chat compacts, Studio selects attachment passages using the history before compaction. It can fall back to ranked excerpts even when the full attachment would fit in the prompt after older turns are removed.
Retry whole-document retrieval against the fitted prompt after compaction removes turns. Use the full attachment when it fits the prompt budget, with the ranked excerpts as a fallback. The document source card shows the passages that actually went to the model.
Before and after
Both chats compact with the same attached file. After the fix, the source card lists both passages and the answer quotes both headings.