gsxdsm
035caca6c8
FN-7775: Add thinking level selection to new chat model picker
Adds a per-session thinking-level selector to the new chat model dropdown, persisting the choice through the chat store and engine session options.
- Adds thinkingLevel column to chat_sessions with a db migration
- Extends chat-store, chat-types, and chat.ts to read/write thinkingLevel
- ChatView model selector now exposes a thinking-level control alongside model choice
- useChat and register-chat-routes plumb thinkingLevel through session creation/API
- engine/src/index.ts passes thinkingLevel as defaultThinkingLevel session option
- Adds a minor changeset and updates settings-reference/dashboard-guide docs
- Adds/updates unit tests across core and dashboard packages
Files changed:
.changeset/fn-7775-chat-thinking-level.md | 7 ++
docs/dashboard-guide.md | 1 +
docs/settings-reference.md | 2 +-
packages/core/src/__tests__/chat-store.test.ts | 15 +++-
packages/core/src/__tests__/db-migrate.test.ts | 33 ++++++++
packages/core/src/chat-store.ts | 12 ++-
packages/core/src/chat-types.ts | 6 ++
packages/core/src/db.ts | 14 +++-
packages/dashboard/app/api/legacy.ts | 2 +-
packages/dashboard/app/components/ChatView.tsx | 16 +++-
.../__tests__/ChatView.core-interactions.test.tsx | 75 +++++++++++++++---
.../dashboard/app/hooks/__tests__/useChat.test.ts | 17 +++-
packages/dashboard/app/hooks/useChat.ts | 6 +-
.../dashboard/src/__tests__/chat-manager.test.ts | 90 ++++++++++++++++++++++
packages/dashboard/src/chat.ts | 23 ++++++
.../dashboard/src/routes/register-chat-routes.ts | 25 +++++-
packages/engine/src/index.ts | 1 +
17 files changed, 318 insertions(+), 27 deletions(-)
Fusion-Task-Id: FN-7775
Fusion-Task-Lineage: e16c7d3b-361e-4908-87ad-10be17a47c47
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
2026-07-10 08:00:34 -07:00
..
2026-07-09 23:46:21 -07:00
2026-07-08 16:27:10 -07:00
2026-07-10 08:00:34 -07:00
2026-07-10 08:00:34 -07:00
2026-07-09 23:46:21 -07:00
2026-07-08 16:27:10 -07:00
2026-07-10 08:00:34 -07:00
2026-07-10 07:40:22 -07:00
2026-07-08 16:27:10 -07:00
2026-07-09 21:32:59 -07:00
2026-06-08 15:19:27 -07:00
2026-07-10 07:46:52 -07:00