Files
OmniRoute/config
Rafael Dias Zendron d296bed905 feat: generalize ensureThinkingBudget to all providers + preserve server-side tool invocations on antigravity (#6979)
* fix(6914,6912): enable server-side tool invocations on antigravity + remove clinepass gate from ensureThinkingBudget

#6914: Antigravity executor was not passing include_server_side_tool_invocations:
true in toolConfig, causing server-side tool calls to be silently dropped.

#6912: ensureThinkingBudget was gated to clinepass providers only, leaving
non-clinepass reasoning models (nvidia, deepseek, etc.) vulnerable to empty
content when the thinking budget consumed all of max_tokens. Gate removed so
the budget floor applies universally.

* fix(6914,6912): address code review + CI file-size

antigravity.ts: preserve includeServerSideToolInvocations through
sanitizeAntigravityGeminiRequest by reading it from the raw toolConfig
before rebuilding (gemini-code-assist high).

default.ts: use whichever key (max_tokens or max_completion_tokens)
was already on the body, avoiding re-introducing max_tokens alongside
max_completion_tokens for recent OpenAI models (gemini-code-assist medium).

file-size-baseline.json: rebaseline executor-antigravity.test.ts
942->977 (+35, server-side tool invocation test) and default.ts
877->879 (+2, tokenKey logic).

* fix(ci): update default.ts file-size baseline 879->881 (thinking-budget generalization)

* refactor(executors): compact generalized thinking-budget block (file-size cap)

default.ts is frozen at 877 LOC with zero headroom; the generalized
ensureThinkingBudget() + max_completion_tokens-key handling added ~4 net
lines. Tighten the accompanying comments (no behavior change) so the file
stays within the existing 877 cap instead of raising it.

Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>

* chore(quality): drop obsolete antigravity-test rebaseline, annotate codex-test bump

Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>

* test(antigravity): move #6914 server-side-tools cases to own file (test-size cap)

Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>

---------

Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
Co-authored-by: rafaumeu <53516504+rafaumeu@users.noreply.github.com>
2026-07-18 15:14:32 -03:00
..
2026-07-13 09:12:40 -03:00