logancyang_obsidian-copilot/docs
Zero Liu 89823e1d03
feat(chat): power legacy chat from the model-management chat backend (#2556)
* feat(chat): power legacy chat from the model-management "chat" backend

Legacy chat, project chat, vault QA, quick command, and quick ask now
select models from the model-management "chat" backend
(backends.chat.enabledModels) instead of the legacy activeModels /
defaultModelKey. A new ConfiguredModel→CustomModel bridge feeds the
existing ChatModelManager (the stubbed v4 ChatModelFactory is untouched),
and a new "Quick Chat" curation section under the Agents settings tab
lets users choose which BYOK/Plus models appear in the chat picker.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* style(skills): apply prettier formatting to builtinSkills.test.ts

Collapse a multi-line expect() onto one line to satisfy the project's
prettier config (surfaced when running npm run format).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(chat): stabilize chat backend model selections

* fix(chat): address chat backend review regressions

* fix(chat): show legacy chat models in a flat list

Drop the per-provider _group on chat picker entries so the legacy chat
model picker renders a single flat list (provider icons inline, no
section headers), matching pre-migration behavior. Agent Mode keeps its
per-backend headers via its own helper.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* refactor(chat): remove dead per-model parameter editing

After the model-management chat migration, per-model parameter editing
is unreachable: the chat selection is now a configuredModelId UUID, so
the ChatSettingsPopover editor (gated on a legacy activeModels match)
never renders, and TokenLimitWarning's activeModels lookup always misses
and falls back to global settings. v4 agent mode no longer supports
per-model parameter editing.

- ChatSettingsPopover: drop the model-param plumbing (originalModel /
  bridgedModel / canEditModelParameters, local-model save/debounce,
  ModelParametersEditor); keep System Prompt + Disable Builtin controls.
- TokenLimitWarning: always open the global Copilot settings tab.
- Delete the now-orphaned ModelEditDialog and ModelParametersEditor.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* refactor(chat): drop dead legacy model-key fallback in streaming session

The streaming chat session's chain cache key fell back to name|provider
when configuredModelId was absent. Both callers (Quick Ask, custom-command
chat) now source their model from useResolvedChatBackendModel ->
configuredModelToCustomModel, which always stamps configuredModelId, so the
fallback was unreachable. Derive the key directly from configuredModelId;
a model without one is treated as no usable model via the existing guards.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* refactor(chat): remove test-only getLegacyChatModelKey helper

The singular getLegacyChatModelKey was exported but had no production
callers — only the barrel re-export and one test assertion referenced it.
Remove it (and its export + assertion); the load-bearing plural
getLegacyChatModelKeys, which powers legacy-key resolution in
isChatModelSelectionForEntry, is kept and now carries the rationale comment.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* refactor(model-management): dedupe catalog-id to provider map

Drop the duplicate CATALOG_ID_TO_LEGACY_PROVIDER table in chatModelSelection
and reuse the now-exported CATALOG_ID_TO_CHAT_PROVIDER from
configuredModelToCustomModel (extended with anthropic/google for the
legacy-key path). Single source of truth for catalog-id to ChatModelProviders.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-06 14:52:50 -07:00
..
agent-mode-and-tools.md docs: Windows setup guide for Claude and Codex Agent Mode (#2542) 2026-05-31 20:53:56 -07:00
agent-mode-windows-setup.md docs: Windows setup guide for Claude and Codex Agent Mode (#2542) 2026-05-31 20:53:56 -07:00
chat-interface.md feat(relevant-notes): dedicated pane with redesigned populated view (#2559) 2026-06-05 06:54:12 +08:00
context-and-mentions.md docs: add user-facing documentation (#2254) 2026-03-03 17:39:00 -08:00
copilot-plus-and-self-host.md docs: add user-facing documentation (#2254) 2026-03-03 17:39:00 -08:00
custom-commands.md docs: add user-facing documentation (#2254) 2026-03-03 17:39:00 -08:00
getting-started.md feat(chat): power legacy chat from the model-management chat backend (#2556) 2026-06-06 14:52:50 -07:00
index.md docs: Windows setup guide for Claude and Codex Agent Mode (#2542) 2026-05-31 20:53:56 -07:00
install-claude-agent-mode-windows.ps1 docs: Windows setup guide for Claude and Codex Agent Mode (#2542) 2026-05-31 20:53:56 -07:00
install-codex-agent-mode-windows.ps1 docs: Windows setup guide for Claude and Codex Agent Mode (#2542) 2026-05-31 20:53:56 -07:00
llm-providers.md feat(chat): power legacy chat from the model-management chat backend (#2556) 2026-06-06 14:52:50 -07:00
miyo-api.md Refactor Miyo integration for folder API (#2331) 2026-03-30 09:05:34 +09:00
models-and-parameters.md feat(chat): power legacy chat from the model-management chat backend (#2556) 2026-06-06 14:52:50 -07:00
projects.md feat(chat): power legacy chat from the model-management chat backend (#2556) 2026-06-06 14:52:50 -07:00
system-prompts.md docs: add user-facing documentation (#2254) 2026-03-03 17:39:00 -08:00
troubleshooting-and-faq.md feat(keychain): migrate API key storage to Obsidian Keychain (#2364) 2026-05-14 13:57:21 -07:00
vault-search-and-indexing.md docs: add user-facing documentation (#2254) 2026-03-03 17:39:00 -08:00