Skip to content

feat(chat): add session-level model picker#360

Open
slicenferqin wants to merge 3 commits intoValueCell-ai:mainfrom
slicenferqin:codex/feat-session-model-picker
Open

feat(chat): add session-level model picker#360
slicenferqin wants to merge 3 commits intoValueCell-ai:mainfrom
slicenferqin:codex/feat-session-model-picker

Conversation

@slicenferqin
Copy link
Contributor

Summary / 摘要

This PR adds a session-level model picker to the chat toolbar.
Users can switch the current session to another allowed model, or reset it back to the agent default model without leaving the chat view.

这个 PR 为聊天工具栏增加了“会话级模型选择”。
用户可以直接在当前会话里切换到其他允许的模型,或者一键恢复为 agent 默认模型,而不需要离开聊天页面。

What Changed / 改动内容

  • Added session model option loading in the chat store via models.list

  • Added current-session model update flow via sessions.patch

  • Synced model and modelProvider metadata back into the current session state

  • Added a compact model selector to ChatToolbar

  • Added zh/en/ja i18n strings for the new UI

  • Added unit tests for model option normalization and session metadata updates

  • 在 chat store 中接入 models.list,加载可选模型目录

  • 在 chat store 中接入 sessions.patch,更新当前会话模型

  • model / modelProvider 同步回当前会话状态,保证选中态稳定

  • ChatToolbar 中增加紧凑的模型选择器

  • 补充中英日三套文案

  • 增加单测,覆盖模型列表解析与会话元数据更新

Scope / 范围说明

This PR intentionally only covers the session-level model picker part discussed in #339.
It does not include agent switching during new session creation, backup/restore, or broader multi-agent workflow changes.

这个 PR 有意只覆盖 #339 中“会话级模型选择”这一子项。
不包含“新建会话时切换 agent”、备份恢复、或更大范围的多 agent 工作流改动。

Testing / 验证

  • pnpm run lint
  • pnpm run typecheck
  • pnpm test

Related to #339

@slicenferqin slicenferqin force-pushed the codex/feat-session-model-picker branch from bf42c50 to dcc71cf Compare March 9, 2026 05:59
@slicenferqin slicenferqin mentioned this pull request Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant