Skip to content

fix(web): model picks no longer inherit another model’s traits - #36621

Merged
juliusmarminge merged 5 commits into
pingdotgg:mainfrom
StiensWout:t3/optionless-model-traits
Nov 14, 2026
Merged

juliusmarminge merged 5 commits into
pingdotgg:mainfrom
StiensWout:t3/optionless-model-traits

Conversation

@StiensWout

Copy link
Copy Markdown
Contributor

Picking a model with no remembered traits could inherit the previous model's reasoning effort instead of using its defaults. Base traits now apply only when the draft and base selections identify the same model, using the existing custom-aware identity rule. Saved traits still restore for aliases such as 5.4 and gpt-5.4, and persisted optionless thread defaults stay intact.

Found by the bughunt and independently confirmed by Claude Opus 5.5, then reproduced again on main before fixing.

Proof

  • On main 000d82dc67, pnpm exec vp test run apps/web/src/composerDraftStore.test.ts -t 'an explicit optionless pick' fails: the picked gpt-5.4 carries low from gpt-5.3-codex, for both draft and started thread. The same test passes on the fix.
  • The alias restoration test fails on the first review head and passes with the identity fix.
  • Focused composer and model-selection suites pass. Related browser hook tests pass; related chat browser suites pass on boat.
  • pnpm exec vp run check:changed passes format, lint, knip, affected typechecks, adjacent tests and React compiler.
  • No live provider capture or scenarios:prove: Replay (dev) has no trait descriptors. Actual provider dispatch is source-traced, not runtime-proven.

Fast lane. Medium scope after extracting the existing private identity rule; no new storage, public interface or UI flow. Local cubic found no issues; fork repository context was unavailable.

Follow-up

Pre-existing: a draft's options for an unrelated instance can suppress the base options for the selected instance. This fix preserves that behavior and does not address requested-instance model selection on fallback.

Council review

Reviewer Round 1 Round 2
GPT 6.1 Sol 8/10 9/10
Claude Opus 5.5 8/10 9/10

Alias restoration and its test were fixed. Remaining nits: the options ternary could be extracted for readability; a custom-alias test at this call site duplicates coverage of the shared helper. Neither changes ticket behavior.

Created with GPT 6.1 Sol in Codex and Claude Opus 5.5 in Claude Code, orchestrated through T3 Code. GPT 6.1 Sol led and reviewed; Claude Opus 5.5 built, independently verified, trimmed and reviewed.

Closes #36620

@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Nov 14, 2026
macroscopeapp[bot]
macroscopeapp Bot previously approved these changes Nov 14, 2026
@macroscopeapp

macroscopeapp Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at d52b316

Macroscope's review found this PR approvable — Explicit composer model picks no longer inherit options belonging to the previous model. The change is limited to option resolution and preserves existing model defaults and same-model inheritance.

You can add or adjust custom eligibility rules. Learn more.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 14, 2026
@coderabbitai

coderabbitai Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The composer now compares model identities when applying base selection options and matching fallback instance options. Tests cover explicit optionless model picks and restoration of base traits when the base model uses an alias.

Changes: Composer model options

Layer / File(s) Summary
Model identity and option inheritance
apps/web/src/composerDraftStore.ts, apps/web/src/composerDraftStore.test.ts
The composer uses model identity to decide whether base selection options apply to an active draft and whether fallback instance options match. Tests cover optionless picks and restoring base traits when the base model uses an alias.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix · Severity of issue fixed: Low

Suggested reviewers: f4llenz, juliusmarminge

Merge Risk: Minimal · up to d52b3

Picking a different model in the composer no longer carries over the previous model's traits, and saved traits still restore for aliases of the base model. I found no concrete merge-blocking risk in the supplied change. Provider dispatch was not runtime-verified.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title states the primary change: model picks no longer inherit another model's traits. It is concise, follows conventional commit form, and matches the objectives and the summarized composer deriv…
Description check Passed The description follows the template well. It states the problem and the change, links issue #36620 as the scoped bug, and gives detailed verification: a failing test on main, passing on the fix, and …
Linked Issues check Passed [#36620] The issue requires that an explicit pick of a model with no remembered traits uses that model's defaults, and that returning to the stored base model restores its saved traits. At the reviewe…
Out of Scope Changes check Passed All changes relate to #36620. The composerModelIdentity helper is extracted from the inline modelIdentity closure in withFallbackInstanceOptions with the same logic. The incremental change since the p…
Full details: Title check

Explanation

The title states the primary change: model picks no longer inherit another model's traits. It is concise, follows conventional commit form, and matches the objectives and the summarized composer derivation changes.

Full details: Description check

Explanation

The description follows the template well. It states the problem and the change, links issue #36620 as the scoped bug, and gives detailed verification: a failing test on main, passing on the fix, and the checks run. It also notes what was not verified (no live provider capture, provider dispatch source-traced only) and includes the model and harness attribution. The template's Problem section is not headed explicitly, but the opening paragraph covers it, so the description is mostly complete.

Full details: Linked Issues check

Explanation

[#36620] The issue requires that an explicit pick of a model with no remembered traits uses that model's defaults, and that returning to the stored base model restores its saved traits. At the reviewed head d52b316, deriveEffectiveComposerModelState computes draftPicksOtherModel by comparing composerModelIdentity for the active draft pick and the base selection. When these differ, optionSelections uses null for base options, so base traits do not reach the different model. When they match, base selections still apply, so aliases such as 5.4 and gpt-5.4 keep saved traits. The incremental change since the previous review (2267ded to d52b316) only moves the comment and extracts the draftPicksOtherModel expression. It does not change behavior. The earlier PASS conclusion for the identity logic and the composerDraftStore.test.ts cases still holds. Live provider dispatch was not runtime-verified, as the PR states. Non-coding checks are not assessed.

Full details: Out of Scope Changes check

Explanation

All changes relate to #36620. The composerModelIdentity helper is extracted from the inline modelIdentity closure in withFallbackInstanceOptions with the same logic. The incremental change since the previous review only reorders a comment and extracts draftPicksOtherModel, both within the same shared composer derivation. The fallback-instance behavior and the pre-existing unrelated-instance suppression behavior, which the PR description says is unchanged, are not altered by this incremental diff. No unrelated file changes were identified in the reviewed diff.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Usage-based review receipt

Note

This review was completed with usage-based billing: files reviewed beyond your plan's included limits are billed at $0.25/file. View usage-based billing.

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 2267ded and d52b316.

Files selected for processing: 1

  • apps/web/src/composerDraftStore.ts

Limit details: You’ve used all 10 included reviews currently available.

@macroscopeapp
macroscopeapp Bot dismissed their stale review November 14, 2026 09:38

Dismissing prior approval to re-evaluate d52b316

@juliusmarminge

Copy link
Copy Markdown
Member

Evidence

Real web client, Chromium 1280×800, light theme, fresh isolated state on both commits. The installed Codex catalog omits these legacy models, so both runs used supported custom-model entries with Medium as their default; no provider turns were sent.

Steps: save GPT-5.3-Codex at Low as the project default; create an unsent thread; select GPT-5.4 without remembered traits; inspect reasoning; return to GPT-5.3-Codex. Repeat after changing the stored base slug to the equivalent 5.3 alias.

State Before After
Commit d6244ac5a3 d52b3165d6
Pick GPT-5.4 Before: GPT-5.4 inherits Low After: GPT-5.4 uses Medium
Pick GPT-5.4 with aliased stored base Before: aliased base leaks Low After: aliased base preserves GPT-5.4's Medium default
Return to aliased base Before: saved Low restored After: saved Low restored
Recording, startup trimmed Before interaction After interaction

Scenario source · Model setup script

scenarios:prove exited 0: fails on base, passes on head.

Not shown:

  • Native legacy Codex catalog defaults were not verified: the installed catalog omits GPT-5.3-Codex and GPT-5.4, so their entries and Medium defaults were configured through supported custom-model settings.
  • Existing-thread behavior during successful or failed model saves was not exercised; captures cover the unsent-thread path.
  • Traits reaching dispatch were not exercised because no message was sent.

@juliusmarminge juliusmarminge added takeover:ready Takeover done; auto-lands when gates pass and removed takeover:in-progress A takeover lead is working on this PR labels Nov 14, 2026
@juliusmarminge
juliusmarminge merged commit 820f620 into pingdotgg:main Nov 14, 2026
53 checks passed
@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Nov 14, 2026
Pipyakas pushed a commit to Pipyakas/t3code that referenced this pull request Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M 30-99 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Picking a model with no traits inherits the previous model’s effort

2 participants