Repository navigation
Studio: mark where a chat was compacted with an inline divider - #13502
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. |
|
Reached Codex review convergence at oobabooga#360. |
|
Small test-only companion for These extend the divider placement checks to three metadata/revision cases:
All three pass on Windows with Node 24.15.0 and the unchanged source module and On the companion commit, from node --experimental-strip-types --test --test-concurrency=1 tests/compaction-divider-state.test.tsResult: 3 passed, 0 failed, 0 cancelled, 0 skipped. Only the new test file is in |
Review and verification evidenceReviewed and repaired at Repairs
Executed verification
Environment: Ubuntu Linux 7.0 x86_64, Node 26.8.2, npm 11.19.1, Python 3.11.15. All PR code and UI installs ran in task-local sandboxes without user credentials. UI evidenceTwo isolated Studio installs were pinned to the exact merge base and repaired head. At 1440×900, Chromium 151, Firefox 153, and WebKit 26.5 each persisted one divider after reload with no horizontal overflow. At 390×844, touch interaction also exposed the detail tooltip with no overflow. The old four-sentence notice inside the assistant response becomes a single divider above the triggering prompt; keyboard focus and touch reveal 8 dropped messages, 3 recalled passages, and the 2,450 → 980 prompt-token change. Chromium, default state Chromium, keyboard tooltip |
|
@codex review |
|
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". |
mahiatlinux
left a comment
There was a problem hiding this comment.
LGTM! Ready to merge, all manually checked.





When Studio compacts a chat, the transcript now shows a one-line "Context compacted" divider where the compaction happened, directly above the prompt whose request compacted. It replaces the four-sentence box that opened the reply. The explanation and the numbers (messages dropped, passages recalled, prompt tokens before and after) move into a tooltip on the label. The divider uses the same style as the existing "Continued from chat" rule.
Screenshots
Merge base vs this branch, Qwen3.5-0.8B GGUF at a 2,048 token window, same prompts. The first compaction fires on turn 6 on both sides.
The detail behind the label:
Placement
compactionNoticeMessageIds). So the context meter count (Studio: show the compaction count in the context meter #13355) equals the number of dividers on screen.contextTruncationrecord. Nothing new is stored, and nothing reaches the model or the export.At a 2,048 window a marker appears on almost every turn on both main and this branch: 9 boxes vs 8 dividers over 16 turns. Each marker is now a 13 px line instead of a 77 px box.
The label has a padded touch target (33 px tall) without changing the drawn line. Studio's tooltip opens on tap as well as hover and focus.
Validation
tsc -bis clean.npm testpasses 11,707 of 11,719; the 12 failures also fail on the merge base. New tests cover divider placement and that the divider count equals the meter count.