What Changed#
Changing the model or provider options in an existing Mobile thread updated only the draft for that thread. The app-wide remembered selection stayed stale, so later threads could revert to an earlier reasoning level.
This PR routes explicit Mobile model selections through one draft-state operation. New-task and existing-thread flows now update both the current draft and the remembered selection.
Why#
The documented model-default behavior applies to provider options such as reasoning effort. Mobile already persisted those options when starting a new task, but not when changing them in an existing thread. Sharing the state operation keeps both entry points consistent without adding server state or changing persistence formats.
UI Changes#
None. This changes persistence behavior only.
Verification#
- vp test run apps/mobile/src/state/use-composer-drafts.test.ts
- Targeted lint on the four changed files
- Targeted formatting check on the four changed files
- vp run --filter @t3tools/mobile typecheck
Checklist#
Built with GPT-5.6 Sol using Codex in T3 Code.
Note
Fix model option changes not persisting in existing threads#
Model selections updated in an existing thread were not saved to the sticky atom. Adds a shared setComposerDraftModelSelection helper in use-composer-drafts.ts that updates both the composer draft and the sticky model-selection atom in one operation. Replaces the separate draft-only updates in NewTaskFlowProvider and useThreadComposerState with calls to this helper.
Macroscope summarized e8fe89d.
Approvability#
Verdict: Not approved
Macroscope's review found this PR not approvable — This focused mobile fix changes persisted app-wide model defaults by making selections from existing threads apply to later new tasks. That product-default behavior requires human review under the applicable criteria.
You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).