Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Project default model is ignored for new threads when another model was selected in a different project #5796

Closedgoggi(GitHub profile, opens in a new tab) opened this issue 2 comments

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. Open Project A.
  2. Configure Luna as Project A's default model.
  3. Open Project B.
  4. In a thread in Project B, select a different model, such as GPT Sol.
  5. Return to Project A.
  6. Create a new thread.
  7. Observe the selected model in the new-thread composer.

Expected behavior

The new thread in Project A should use Luna because it is explicitly configured as Project A's default model.

A project's configured default should take precedence over models previously selected in other projects.

Actual behavior

The new thread uses GPT Sol, the model most recently selected in Project B.

The last-selected model appears to be remembered globally across projects and overrides the current project's configured default model.

Manually changing the selected model occasionally appeared to refresh the selection, but this behavior was inconsistent and is not a reliable workaround.

Impact

Major degradation or frequent failure

New threads can unintentionally start with the wrong model. This may affect model capabilities, usage limits, and cost, especially when moving between projects configured to use different models.

Version or commit

0.0.33-nightly.20260809.1041

Environment

Linux 7.1.4-arch1-1, T3 Code Nightly desktop app

Logs or stack traces

No relevant logs observed.

Screenshots, recordings, or supporting files

Image Image

None currently available.

Workaround

Manually select the project's intended model whenever creating a new thread.

  1. Reproduced on the macOS desktop client 0.0.34-nightly.20260813.1082 while connected to a remote T3 server.

    The server-side project record was already correct: Project A had an explicit custom Claude/Opus default with high reasoning. The empty new-thread composer still displayed GPT-5.6-Sol/High after a reload.

    A read-only inspection of the desktop client's persisted composer state showed why:

    {
      "draftsByThreadKey": {
        "<draft>": {
          "prompt": "",
          "attachments": [],
          "modelSelectionByProvider": {
            "codex": {
              "instanceId": "codex",
              "model": "gpt-5.6-sol"
            }
          },
          "activeProvider": "codex"
        }
      },
      "stickyModelSelectionByProvider": {},
      "stickyActiveProvider": null,
      "version": 8
    }

    So this is not a project-settings write failure. An empty persisted desktop/web draft contains a carried draft-local model, and ChatComposer gives that activeProvider precedence over project.defaultModelSelection.

    PR #6011 fixes future fresh/reused draft initialization, but an already persisted empty draft can remain wrong after upgrading because the currently open/reused path can preserve its stored model and the web composer storage version is unchanged. A reload alone cannot repair it.

    The upgrade path should migrate model state off empty draft-session records (or add selection provenance and treat legacy model-only empty drafts as carried/ambient), while preserving drafts with prompts, attachments, terminal/element/preview context, or review comments. Server-thread composer overrides and deliberately edited non-empty drafts should remain untouched.

  2. Still seeing this in the T3 Code desktop app on macOS:

    1. Start in a project with ChatGPT/Codex selected.
    2. Use ⌘K to start a new chat in another project whose project/environment default is Claude.
    3. The new chat still selects ChatGPT/Codex instead of Claude.

    Repeating the ⌘K → new chat flow sometimes selects Claude correctly on the second attempt. The destination’s configured default isn’t consistently respected on the first attempt.

Sign in to join this conversation.