GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(clients): keep model selection sticky across threads by StiensWout · Pull Request #9163 · pingdotgg/t3code

Conversation

@StiensWout

@StiensWout StiensWout commented Sep 2, 2026 •
edited by macroscopeapp Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

PR #6011 made every project default override the user's current and app-wide model choice. Because projects are commonly created with a stored model, new threads kept snapping back to that model and reasoning effort.

Restore the precedence used by the composer on web and mobile: explicit draft or current-thread selection, then the app-wide sticky selection, then the project default, then the provider default. Project defaults still apply when the user has no active global choice.

Focused verification:

  • pnpm exec vp test run apps/web/src/lib/chatThreadActions.test.ts apps/mobile/src/lib/modelOptions.test.ts
  • pnpm typecheck in apps/web
  • pnpm typecheck in apps/mobile

Implemented with GPT-5.6 Sol in the Codex harness through T3 Code.


Note

Medium Risk
Changes default model behavior for new threads/tasks across web and mobile; resolveNewThreadModelSelectionOverride now requires stickySelection, though in-repo callers are updated.

Overview
Restores composer-aligned model precedence after project defaults began overriding the user’s app-wide sticky choice when starting new tasks or threads.

On mobile, resolveNewTaskModelSelection and related fallbacks now resolve draft → sticky → project → provider, including buildModelOptions fallback ordering and comments/migration for stale new-task: drafts on disk.

On web, resolveNewThreadModelSelectionOverride gains a stickySelection argument and orders carried current-thread model (when switching drafts) → sticky → project default. useHandleNewThread reads sticky state from the composer draft store when minting or refreshing empty drafts.

Tests on both platforms assert sticky beats project default and that project still applies when sticky is absent.

Reviewed by Cursor Bugbot for commit 9188f9d. Bugbot is set up for automated code reviews on this repo. Configure here.

Note

Fix model selection to stay sticky across threads before project default

  • Reorders the model fallback chain in both mobile and web new-thread/new-task flows so the sticky app-wide selection outranks the project default. Draft selection still wins first, provider fallback remains last.
  • Mobile resolveNewTaskModelSelection in modelOptions.ts and the NewTaskFlowProvider in new-task-flow-provider.tsx apply the new precedence.
  • Web resolveNewThreadModelSelectionOverride in chatThreadActions.ts and the handler in useHandleNewThread.ts now take the active sticky provider's model selection as input; carried cross-thread selection still outranks sticky.
  • Behavioral Change: new threads/tasks that previously fell back to the project default model will now pick up the last user-selected sticky model instead.

Macroscope summarized 9188f9d.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@StiensWout
fix(clients): keep model selection sticky across threads
1785c72
@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 Sep 2, 2026
macroscopeapp[bot]
macroscopeapp Bot reviewed Sep 2, 2026
View reviewed changes
Comment thread apps/web/src/hooks/useHandleNewThread.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@StiensWout
fix(web): read current model after async draft setup
9188f9d
@macroscopeapp

macroscopeapp Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Not approved

Macroscope's review found this PR not approvable — The PR changes model-selection precedence across mobile and web thread creation, causing a persisted sticky model to override a configured project default. Because this changes product defaults and affects existing user flows, human review is required.

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@StiensWout StiensWout closed this Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

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

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@StiensWout
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.