Repository navigation
fix(gateway): adapt legacy thinking for aliased Claude models - #4913
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 4 Skipped Deployments
|
Warden review summary — ClearNative findings: 0. Blocking policy matches before consolidation: 0. Full finding text remains in Warden's native checks and review threads. This comment retains only native IDs, severity, skill attribution, and safe locations. Analysis run Reported trigger coverage (not proof of complete repository or context coverage): diff-security-review (13509 ms), confidentiality-review (10728 ms). Blockers
Advisories
Needs recheck
Observed review-thread metrics
Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority. |
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (0925225858e0eece476905e144636057970e910b). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
|
Passed · 12/12 tests · 18/18 assertions · 8 images Commit |
Problem
Gateway model aliases introduced in #4358 hide the upstream Claude identity from client-side thinking compatibility. The authorized upstream model is restored, but legacy
thinking.type: enabledcan still reach adaptive-only Claude models and be rejected.Change
Verification
Proof verdict: Incomplete — focused Gateway route tests pass; cold-boot testkit journey evidence and end-to-end desktop chat reproduction are deferred for this quick fix. No deployment performed.
Passed:
NODE_OPTIONS=--conditions=development pnpm --filter @openwork-ee/gateway exec tsx --test test/gateway.test.ts— 84 passed, 0 failed, 0 skipped; includes 36 new compatibility cases.pnpm --dir evals typecheck— 414 evals source files, no errors.git diff --check.The new conversion cases failed against the unmodified implementation. An initial Vertex test expectation omitted URL encoding for dated model IDs; that assertion was corrected and the full Gateway test file then passed. Checks ran on the committed tree contents; rebase against refreshed dev was a no-op.
Deferred: extend and run
evals/specs/inference-gateway-org-provider.test.tswith the alias plus legacy-thinking upstream witness assertion, and publish exact-head evidence. Required CI remains unchanged.UI/UX impact
None — existing UI/UX preserved. No model-picker layout, labels, controls, or interaction changes.