t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: t3_project_update defaultModelSelection is still ignored after settings are folded (follow-up to #14991)

Open gfuseau opened this issue 1 week ago • 1 comments

[!NOTE] Written by Claude Opus 5.5 on behalf of @gfuseau, and filed at their request.

Follow-up to #14991, which was closed as partly fixed by #39676. The maintainer's closing comment invited a new issue for the part that's left: t3_project_update writes for project defaults are still ignored once settings are folded. This issue covers defaultModelSelection.

Before submitting

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

Area

apps/server

Steps to reproduce

  1. Use an install where settings.json has projectSettingsFolded: true, a global defaultModelSelection of claude-opus-5-5 / effort high, and no projectSettingsOverrides entry for the project.
  2. From an agent thread in full-access mode, call:
    t3_project_update {
      "projectId": "<id>",
      "defaultModelSelection": {
        "instanceId": "claudeAgent",
        "model": "claude-sonnet-5-5",
        "options": [{ "id": "effort", "value": "medium" }]
      }
    }
    
  3. Look at the response, then call t3_project_read.
  4. In the app, start a new thread in that project.

Expected behavior

New threads in the project start on Sonnet 5.5 with medium effort. The update writes to where the app reads project defaults, which is projectSettingsOverrides.<projectId>.defaultModelSelection. If the tool can't change this setting, it should return an error instead of success.

Actual behavior

  • The call succeeds and updatedAt changes. The response and t3_project_read both still show "defaultModelSelection": null.
  • The value is in the legacy project record: projection_projects.default_model_selection_json holds the Sonnet 5.5 / medium selection.
  • settings.json is unchanged, with no projectSettingsOverrides entry.
  • The new-thread composer still defaults to Opus 5.5 / high. The client's resolver ignores the project record when projectSettingsFolded is true and reads only projectSettingsOverrides[projectId].

So the agent is told the change worked, the read-back looks like nothing happened, and the app ignores the stored value. That is three different answers to one question.

Impact

Minor bug or occasional failure

Version or commit

v0.1.11 (server, t3 serve)

Environment

Ubuntu Linux x64 headless server running as a user service, web client. Agent: Claude Code (Sonnet 5.5) through the T3 MCP server.

Logs or stack traces

# t3_project_update response and t3_project_read, after the update:
"defaultModelSelection": null, "updatedAt": "2026-11-24T17:05:19.217Z"

# projection_projects row (read-only sqlite query):
default_model_selection_json = {"instanceId":"claudeAgent","model":"claude-sonnet-5-5","options":[{"id":"effort","value":"medium"}]}

Workaround

Set the project's default model in Settings → Projects in the app. That writes projectSettingsOverrides.


Per CONTRIBUTING: no Gemini models were involved in the making of this issue. 🙂

gfuseau avatar Nov 24 '26 17:11 gfuseau

[!NOTE] Written by Gemini 4 Neon on behalf of @Realauster, and posted at their request.

Confirming this also reproduces on 0.1.12-nightly.20261124.5191 (Linux, multi-instance Antigravity setup).

Calling t3_project_update with defaultModelSelection (including options: [{"id": "thought_level", "value": "medium"}]) updates updatedAt in SQLite (ProjectStoreV2), while t3_project_read and new threads keep returning the previous projectSettingsOverrides[projectId] value from ServerSettingsService whenever projectSettingsFolded: true.

One extra symptom with multi-instance Antigravity: when a project's projectSettingsOverrides entry has no options, the primary instance (antigravity) falls back to thought_level: high while secondary instances default to medium, so t3_project_update silently failing to persist options also leaves reasoning effort mismatched.

Workaround confirmed: setting the project default in Settings → Projects updates projectSettingsOverrides and persists cleanly.

Realauster avatar Nov 24 '26 17:11 Realauster