Skip to content

fix: preserve Command Code cache affinity - #23

Merged
yansigit merged 2 commits into
devfrom
codex/command-code-cache-affinity-final
Aug 24, 2026
Merged

yansigit merged 2 commits into
devfrom
codex/command-code-cache-affinity-final

Conversation

@yansigit

@yansigit yansigit commented Aug 24, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Stabilize OAuth x-session-id values across Command Code turns using trusted thread, replay, or per-session cache identities.
  • Exclude shared prompt-cache cohorts from session affinity and domain-separate identity hashes.
  • Do not derive session affinity from the first user message; identical opening prompts must remain independent.
  • Enable promptCacheKey forwarding on the Command Code Provider API preset.

Verification

  • bun test tests/command-code-provider.test.ts -t 'session|streaming upstream' (2 passed)
  • bun test tests/commandcode-provider.test.ts (8 passed)
  • bun run typecheck (passed)
  • git diff --check (passed)

Checklist

  • Scope stays focused and avoids unrelated cleanup.
  • Docs or release notes were updated when needed.
  • Security-sensitive changes were reviewed for secrets, auth, and unsafe defaults.

@github-actions

Copy link
Copy Markdown

✅ Deterministic PR hygiene checks passed.

@github-actions github-actions Bot added the bug Something isn't working label Aug 24, 2026
@yansigit
yansigit merged commit f6bbce6 into dev Aug 24, 2026
26 checks passed
@yansigit
yansigit deleted the codex/command-code-cache-affinity-final branch August 24, 2026 19:43
This was referenced Aug 24, 2026
cursor Bot pushed a commit that referenced this pull request Oct 12, 2026
…ge-jun#6091) (lidge-jun#6172)

* fix(devin): resolve models through catalog family metadata

Parse ClientModelConfig #23 ModelInfo, #30 ModelFamilyMetadata and #31
default flag. A family id with no effort now selects the family's default
member (swe-1-7 -> swe-1-7-medium, not the Max row), an effort moves only
the effort axis to the nearest rung, Fast Mode and 1M Context follow only
explicit requests, and resolution never leaves the family. The suffix
fallback's variant scan matches the collapsed base instead of a string
prefix, so claude-opus-5 no longer lands on claude-opus-5-5-*.

The picker collapses by family, reads ladders from the effort axis, and
advertises the family default as defaultReasoningEffort; swe-1-6-fast
stays its own row. swe-1-6 is marked text-only (live: it drops images
silently) so the vision fallback applies.

Uncapped turns send the selected row's catalog maxOutputTokens instead of
8192. CompletionConfiguration #3 is max_newlines, now a fixed value; the
input-ceiling plumbing that fed it a context window is removed.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit 09b9e6d)

* fix(devin): round a missing effort rung up, never down

An effort a family lacks now selects the lowest rung at or above it, then
the highest below. Nearest-rung sent `high` on SWE-1.7 (Medium, Max) to
Medium; it now selects the Max row. A disabled default rounds up the same
way and falls back down only when nothing above it is enabled.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit ed6449e)

* fix(devin): keep a named disabled row and never lower effort for a toggle

A disabled exact uid asked for with an effort that still selects it (swe-2-max
at max) is now sent as named, so the preflight reports that row's refusal
instead of quietly serving swe-2-high. Family selection now ranks "effort not
lowered" ahead of the non-effort axes: a Fast anchor asked for at a rung the
Fast rows lack falls back to the regular row at or above that rung, and an
unranked member counts as lower. none is exempt, so Thinking-off still wins.

Co-authored-by: Sayo <[email protected]>

* fix(devin): advertise minimal family effort

Co-authored-by: Sayo <[email protected]>

* fix(devin): publish effective family default effort

Co-authored-by: Sayo <[email protected]>

---------

Co-authored-by: Sayo <[email protected]>
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant