Repository navigation
Studio: stop earlier thoughts from shrinking the thinking budget - #19143
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. |
|
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". |
The budget count now passes the request's continue_final_message and, in tool-loop rounds, the payload's own chat_template_kwargs (MCP discovery overrides its tools). It skips counting once the request is cancelled and lets an in-progress count stop between calls. Tests cover templates that drop and keep earlier thoughts, assert the budget comes from the returned count at the plain, tool-round and final-pass sites, and stub the count instead of reaching a local port.
|
Pushed a follow-up on top of your commit ( What changed:
Verified live with Qwen3.5-0.8B GGUF, 8K context, 5 earlier turns with long thoughts, through
Open tradeoff: on paths without |
|
@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". |
|
Codex review converged on CI: upstream jobs stayed pending, so the same head ran on a staging PR in my fork based on current main
What changed in this workflow: one commit, |
Lyxot
left a comment
There was a problem hiding this comment.
LGTM. The budget is now sized from the prompt the model actually receives. Verified live, Codex converged, and the targeted tests pass on current main.
…-11-23..25) Merge of unslothai/unsloth main 2e1afd5..bd1ddf2. No textual conflicts; audited for Ganjalf invariants (Claude API alignment, thinking budget, Qwen thinking presence 0, check_page, guards, plugins/hooks/run_agent stop, branding via messages.ts, Ganjalf updater): all intact. Taken: llama.cpp/GGUF fixes (thinking budget counted with the real template unslothai#19143, native prompt count in context fit unslothai#19159, host RAM growth priced before pinning unslothai#19231, second quant of a loaded repo unslothai#19169, small Auto context on low-RAM CPU hosts unslothai#19142), security and stability hardening (media bytes checked, remote-code gate, sandbox cache, managed accounts, IPv6 loopback listeners), chat fixes (Files menu, deleted turns from other tabs, composer, tool approvals tied to their tool), MCP, chat templates (phi-3, mistral), training/core kernels, installer AMD/ROCm mixed hosts, Tauri security bumps, unsloth-zoo>=2026.11.11. Branding stays Ganjalf (upstream strings are rebranded at runtime by i18n/messages.ts). Ganjalf follow-up: the thread sampling simulation oracle expects presence 0 for Qwen 3.5/3.6 with thinking (non-thinking 1.5), as the chat table does since 369d05c. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EVYBhJeMQGvLT6Ka4nMMUE
A few turns into a chat with a thinking model, the reasoning got cut short after a few hundred tokens even though most of the context was free. The thinking budget counted every earlier thought in the chat, but Qwen3, Qwen3.5/3.6 and Gemma 4 drop those thoughts from the prompt. The budget is now sized from the prompt the model actually receives. On an 8K context with five earlier long thoughts, the budget goes from 1,010 tokens to 5,987. A first message, thinking off, and an explicit budget behave as before.