mateclaw/mateclaw-ui/src
倪程伟 04a9bb9e13
fix(chat): honour per-agent model override in web chat model selector
The web ChatConsole seeded a fresh conversation's model from the global
default, never the selected agent's model override, and handleSendMessage
then pinned that default onto the conversation row. Since a conversation
pin outranks the agent override in the backend runtime resolver
(AgentGraphBuilder.resolveRuntimeBaseModel), the model chosen on the
agent edit page was silently clobbered. IM channels and external webchat
were unaffected — they leave the conversation unpinned.

- applyConversationModel now follows the backend precedence:
  conversation pin > agent model override > global default.
- The agent tier resolves via /agents/{id}/capabilities (authoritative)
  with a synchronous fallback (currentAgent.modelName against the
  enabled-model list) so an agent switch, a capability-fetch failure, or
  a not-yet-hydrated deep-link still honour the override instead of
  dropping to the global default.
- userPickedModel guards the async re-seed from clobbering an explicit
  pick; reset on new/switch/delete conversation.
- Unit tests cover the precedence tiers, the empty-string capabilities
  wire shape, and the synchronous fallback.
2026-07-15 14:51:55 +08:00
..
api fix(wiki): stabilize concurrent raw-material uploads and PostgreSQL-compatible IDs 2026-07-15 14:27:14 +08:00
assets feat(content-studio): 公众号/小红书图文创作场景 + gzh_package 打包与在线预览 2026-07-11 12:01:41 +08:00
components fix(ui): resolve lint errors surfaced by the new ESLint config 2026-07-15 14:26:27 +08:00
composables fix(ui): resolve lint errors surfaced by the new ESLint config 2026-07-15 14:26:27 +08:00
i18n feat(workspace): default storage root setting + desktop local-tools whitelist management (#512) 2026-07-14 18:24:58 +08:00
router feat(workspace): default storage root setting + desktop local-tools whitelist management (#512) 2026-07-14 18:24:58 +08:00
stores feat(wiki): cross-KB wikilinks [[kbId/slug]] and raw-material batch filter/reprocess/delete (#506) 2026-07-10 12:01:48 +08:00
types feat(workspace): default storage root setting + desktop local-tools whitelist management (#512) 2026-07-14 18:24:58 +08:00
utils fix(wiki): stabilize concurrent raw-material uploads and PostgreSQL-compatible IDs 2026-07-15 14:27:14 +08:00
views fix(chat): honour per-agent model override in web chat model selector 2026-07-15 14:51:55 +08:00
App.vue feat(chat): glass-themed preview for uploaded & AI-generated docx/xlsx/pdf (#513) 2026-07-13 18:00:54 +08:00
main.ts perf(ui): on-demand Element Plus, tree-shake unused components 2026-07-08 15:54:18 +08:00
vite-env.d.ts Initial commit: MateClaw — Java + Vue 3 AI Assistant System 2026-04-04 19:03:49 +08:00