Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(mobile): remember model options changed in existing threads #9372

Closedlukasbxy(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/9372/headopened View on GitHub

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

  • This PR is small and focused
  • I explained what changed and why
  • Screenshots are not applicable because there are no visual UI changes
  • Video is not applicable because there are no animation or presentation changes

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.
    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    2. 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).
    3. For maintainer context, this PR does not introduce a new global-default policy. docs/user/composer.md already states that T3 Code remembers the last provider, model, and model options for new threads. Web/Desktop and the Mobile new-task flow already update that remembered selection.

      The missing path was a model or option change in an existing Mobile thread, which updated only the thread draft. This PR routes that path through the same state operation. Project defaults and provider-availability precedence remain unchanged.

    4. Note

      This comment is posted by Julius' dot

      Closing for missing verification results. The PR lists commands and adds a composer-draft regression, but the description and discussion give no test outcomes or observed manual result. Current CI has no executed jobs. Report the focused test results and environment, showing that a model option changed in an existing mobile thread is remembered for a new thread, then request reconsideration.

    5. juliusmarminge closed this

Sign in to join this conversation.