Repository navigation
Studio: size a Deep Research run to the model it actually runs on - #10220
Conversation
54f64a0 to
8807605
Compare
|
@codex review Focus on Worth the most scrutiny:
Please keep reviewing across rounds until you have no remaining findings — I will fix and re-trigger rather than stopping at the first pass. |
GitHub Actions A/B reproductionTwo branches on a disposable fork, both built from this PR's merge-base The probe loads a 4096-token local GGUF, then drives a run whose
Rows 2 and 4 are the guards: a genuinely local run is still clamped to the loaded context The second defect — a cloud run that stopped at its provider's own output cap still being The two red upstream checks — |
|
Codex Review: Didn't find any major issues. Another round soon, please! 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". |
Before/after UI evidenceTwo isolated Studio installs, merge base BEFORE — a cloud run is blamed on a local model, and the reader is sent to a setting
AFTER — the notice names what actually capped the run:
Facts that moved, from
Two honest limits: this scene loads no local model, so |
|
Confirmed this hits research_runs.py where |
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. |
|
Reproduced this myself on both sides, with the llama.cpp backend pinned to a 4096 token context and a run whose
The local row not moving is the part that matters: only runs that do not execute on the loaded model lose the probe. I swept every consumer of On whether a genuinely local run can carry a
30 of the 32 non-skipped checks are green here. The other two, |
|
Thanks @NilayYadav. Deep Research was sizing a run to whatever model happened to be loaded locally, even when the run was pointed at a saved connection and never touched that model. I reproduced it with a 4096 token GGUF loaded and the run pointed at a saved connection. On the merge base the report call was capped at about 2268 output tokens instead of the 16384 it asked for. The truncation notice also told the reader to raise a local Context Length setting that connection does not use. At head the same run gets its full budget, and the notice names the connected model. Runs on the local model are unchanged across every backend shape I exercised, including the MLX path. Older runs saved without an inferenceRequest resume the same as before. |

Deep Research checks the local model to decide how much text it can send, even when the run is pointed at a saved cloud connection. With a 4096 token model loaded, a cloud run got a 6144 character prompt budget and about 2000 output tokens instead of the 16384 it asked for. Unload the local model and the same run behaves differently.
The local check is now skipped when the run carries a providerType. Tested on a running server with a real saved connection: the outgoing request carried max_output_tokens 3595 before and 4096 after.