[Bug]: t3_project_update defaultModelSelection is still ignored after settings are folded (follow-up to #14991)
[!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
- Use an install where
settings.jsonhasprojectSettingsFolded: true, a globaldefaultModelSelectionofclaude-opus-5-5/ efforthigh, and noprojectSettingsOverridesentry for the project. - 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" }] } } - Look at the response, then call
t3_project_read. - 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
updatedAtchanges. The response andt3_project_readboth still show"defaultModelSelection": null. - The value is in the legacy project record:
projection_projects.default_model_selection_jsonholds the Sonnet 5.5 / medium selection. settings.jsonis unchanged, with noprojectSettingsOverridesentry.- The new-thread composer still defaults to Opus 5.5 / high. The client's resolver ignores the project record when
projectSettingsFoldedis true and reads onlyprojectSettingsOverrides[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. 🙂
[!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.