Repository navigation
fix(catalog): preserve context inference through provider edits - #7077
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
✅ Deterministic PR hygiene checks passed. |
✅ READY
Review readiness checklist
✅ 4/4 boxes ticked. This pull request is already Ready for Review. |
c667570 to
01d806f
Compare
Keep both management-api paragraphs: dev's inferContextWindow note (#7077) and this carry's per-model quota note. Co-authored-by: bi-boo <bi-boo@users.noreply.github.com>
Integrate upstream dev 0b13396 with current lidge-jun#6454/lidge-jun#6594, lidge-jun#6381, lidge-jun#5947, lidge-jun#7120 and maintainer lidge-jun#7147. lidge-jun#7077 is already in upstream. Use lidge-jun#7147 recovery without restoring the obsolete lidge-jun#7098 prefix gate. Preserve previous personal dev as first parent and retain its DSH profile patch and real-home write protection through the newer upstream implementations. Keep backup/dev-before-integration-20261015. Validated typecheck, structure, privacy and file-size gates, plus focused isolated synthetic/local-fixture regression tests. This is source integration only; no release, installation or deployment.
Summary
Follow-up to #7024: preserve
inferContextWindowthrough provider management edits.trueandfalsevalues inGET /api/providers.nullthrough PATCH, rejecting other types before saving sibling fields. Clearing restores the default-off behavior.The contributor implementation was reviewed and retained unchanged during maintainer triage; no replacement PR or rewritten contributor history was needed.
Verification
Validated head
01d806fbc3a7436a93615d3350b186cd42094c45, based on dev7640a942b35044c974e534b84d5a8049f4a8ae9a, with Bun 1.4.3 on macOS on 2026-10-15.bun install: passed without dependency changes.bun run typecheck: passed.bun scripts/test.ts ./tests/server/management-provider-context-inference.test.ts ./tests/codex-integration/vendor-context.test.ts ./tests/responses/responses-compaction-http-isolation.test.ts ./tests/test-layout.test.ts ./tests/test-layout-tooling.test.ts ./tests/ci-workflows/file-size-ratchet.test.ts: 63 passed, 0 failed; 1,202 assertions across 6 files.bun run test:changed: 8,073 passed, 32 skipped, 0 failed; 57,465 assertions across 351 files, compared against the dev merge base above.origin/dev; all 8 route regressions failed on the original behavior. Restored the exact PR sources and ranOCX_TEST_NO_QUEUE=1 bun scripts/test.ts --parallel=1 ./tests/server/management-provider-context-inference.test.ts: 8 passed, 0 failed; 103 assertions. The tiny red/green runs used one worker with intentional overlap after waiting for the shared test lock; broader verification respected the shared queue. The worktree matches the PR head.bun run structure:check,bun run privacy:scan, andgit diff --check: passed.bun run testwas intentionally not run. The changed graph plus explicit source-oracle/layout/ratchet guards and focused catalog/compaction coverage were run instead. Broader Ubuntu coverage remains with CI; macOS/Windows dispatch belongs to the orchestrator.Checklist
Review readiness checklist