gsxdsm
03bca1787b
FN-7907: Add project chat default (model/agent) setting and New Chat default behavior
Adds a project-scoped Direct-chat default (model pair or durable agent) plus a New Chat behavior toggle (prompt vs. always-use-default), surfaced in Project Models settings using the standard model dropdown.
- Add ProjectSettings fields: chatNewSessionMode, chatDefaultKind, chatDefaultAgentId, chatDefaultModelProvider, chatDefaultModelId, chatDefaultThinkingLevel
- Extend settings-schema validation for the new chat default fields
- Add a "Chat" subsection to ProjectModelsSection with New Chat behavior selector, model/agent target toggle, and the standard CustomModelDropdown for model selection
- Update ChatView.tsx handleNewChat() flow to honor the configured default (prompt vs. immediate session creation)
- Add i18n strings across en/es/fr/ko/zh-CN/zh-TW locales and regenerate resources.d.ts
- Add changeset (@runfusion/fusion minor) and update docs/settings-reference.md and docs/dashboard-guide.md
- Add settings-parity, ChatView new-chat-default, and ProjectModelsSection chatDefault test coverage
Files changed:
.changeset/fn-7907-chat-default.md | 7 +
docs/dashboard-guide.md | 3 +-
docs/settings-reference.md | 8 +
packages/core/src/__tests__/settings-parity.test.ts | 20 ++
packages/core/src/settings-schema.ts | 6 +
packages/core/src/types.ts | 15 +
packages/dashboard/app/components/ChatView.tsx | 93 +++++-
packages/dashboard/app/components/__tests__/ChatView.new-chat-default.test.tsx | 357 +++++++++++++++++++++
packages/dashboard/app/components/settings/sections/ProjectModelsSection.tsx | 77 +++++
packages/dashboard/app/components/settings/sections/__tests__/ProjectModelsSection.chatDefault.test.tsx | 193 +++++++++++
packages/i18n/locales/en/app.json | 20 +-
packages/i18n/locales/es/app.json | 20 +-
packages/i18n/locales/fr/app.json | 20 +-
packages/i18n/locales/ko/app.json | 20 +-
packages/i18n/locales/zh-CN/app.json | 20 +-
packages/i18n/locales/zh-TW/app.json | 20 +-
packages/i18n/src/resources.d.ts | 18 ++
17 files changed, 899 insertions(+), 18 deletions(-)
Fusion-Task-Id: FN-7907
Fusion-Task-Lineage: 86a81b9c-7e0c-4033-9e2a-6f7380810fe9
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
2026-07-12 20:54:10 -07:00
..
2026-07-12 20:54:10 -07:00
2026-07-04 13:09:29 -07:00
2026-07-11 18:07:00 -07:00
2026-07-09 19:58:03 -07:00
2026-07-04 13:09:29 -07:00
2026-07-04 13:09:29 -07:00
2026-07-10 01:15:40 -07:00
2026-07-04 13:09:29 -07:00
2026-07-05 11:31:47 -07:00
2026-07-04 21:28:19 -07:00
2026-06-26 02:30:34 -07:00
2026-07-10 12:02:46 -07:00
2026-07-04 21:28:19 -07:00
2026-07-08 09:19:42 -07:00
2026-07-09 23:40:02 -07:00
2026-07-07 07:34:16 -07:00
2026-07-11 22:16:48 -07:00
2026-06-26 01:04:03 -07:00
2026-06-26 01:04:03 -07:00
2026-07-04 13:09:29 -07:00
2026-07-04 13:09:29 -07:00
2026-07-04 13:09:29 -07:00
2026-07-11 18:44:57 -07:00
2026-06-20 08:57:45 -07:00
2026-06-26 02:30:34 -07:00
2026-07-12 20:54:10 -07:00
2026-07-04 13:09:29 -07:00
2026-07-04 13:09:29 -07:00
2026-07-04 13:09:29 -07:00
2026-07-04 13:09:29 -07:00
2026-06-20 08:57:45 -07:00
2026-07-04 13:09:29 -07:00
2026-07-08 00:23:32 -07:00
2026-07-05 18:56:24 -07:00
2026-07-04 13:09:29 -07:00