Repository navigation
feat: add compact conversation to the chat menu - #13579
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. |
a18305e to
80f53f8
Compare
|
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". |
80f53f8 to
5ddc1d0
Compare
a904f98 to
6d2af9a
Compare
|
Codex Review: Didn't find any major issues. Keep it up! 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 and staging CI completed for The branch now has one button commit, retaining the verified composer/direct-run busy guards and loaded tool-capability check, with request-only queued feedback in all 14 locales. The command, adapter, backend, divider, and workflows remain unchanged. Eight comments in four unrelated review threads were removed as requested. 102 focused checks, typecheck/build, 40 targeted mutations, and independent review passed locally. Bundle allowances increase only by measured button growth (1,570 raw /535 compressed bytes), preserving both base margins. Staging #157 tested the same head and base and is now closed; the shared head branch is retained. Both PRs have the MLX label. CI finished with 34 passing and 4 failing checks, with no pending jobs. Passing checks include frontend Windows unit tests, cross-platform composer/browser checks, source lint, API/auth, and macOS UI/API/GGUF inference. The four failures were checked and left outside this button scope:
No further monitoring was configured. |
6d2af9a to
f11fd7f
Compare
|
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". |
|
Review and staging CI completed for Codex: Didn't find any major issues on this exact head, first round. No review threads remain open. What changed in this pass:
CI: Staging #161 ran the same head and base: 38 passing, 0 failing. That includes Frontend unit tests (Windows) and Frontend build + bundle sanity, which failed on the previous head only because of an |
5bd6add to
06ce9c8
Compare
|
Codex Review: Didn't find any major issues. Swish! 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 and staging CI completed for Codex: Didn't find any major issues on this exact head, first round. No review threads are open. What changed in this pass:
CI: Staging #165 ran the same head and base (#161 could not be reopened after the force-push): 36 passing, 2 failing. Both failures come from main and reproduce on
Passing checks include Frontend unit tests (Windows), Chat UI, API, Update and GGUF inference, the Python 3.13 a-k, l-r and rest shards, and Repo tests (CPU, rest). The staging PR is closed; the shared head branch is retained. |
# Conflicts: # studio/frontend/scripts/check-bundle-budget.ts
|
Codex Review: Didn't find any major issues. Can't wait for the next one! 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". |
Adds Compact conversation to the Unsloth Studio chat menu. The button queues the same one-shot next-message request as
/compact, reuses the header’s context-usage ring, and translates its label and feedback in all 14 locales.Reuses the manual-compaction foundation merged in #13562. The button is one commit on that foundation; the command, request consumption, backend, and transcript/divider behavior remain unchanged.
The button follows the dependency’s GGUF/MLX and tool-capability requirements. Empty and unsupported chats show feedback; model loading, streaming, composer preflight, and already-issued assistant runs block the action. Queued feedback acknowledges a request; the dependency’s per-turn backend gates decide whether a checkpoint reset can occur.
Fixes #13453.
Validation
After retargeting onto
main, all 18 manual-compaction tests, typecheck, and frontend build pass. The earlier stacked-head validation is recorded below; review and staging CI were not rerun, as requested.UI evidence
Captured on head
06ce9c82f2(latest main) with a local Qwen3.5-2B GGUF at a 2,048-token window, so the ring visibly fills. Headless Chrome, 1280x760 at 2x.The menu item's ring matches the header indicator (1.3k / 2.0k):

After clicking Compact conversation:

The next message carries the compaction: the backend reports it, and the model still answers from the compacted turns (codename and ship date from the first message):

Before / after (merge base 3a6179b vs head 5939ad4)
Two isolated Studio installs, same seeded saved chat, header chat menu opened. The menu gains Compact conversation above Fork, with the context ring as its glyph:
Clicking it with no model loaded explains the GGUF / MLX tool-support requirement instead of queueing a request: