WeKnora/frontend/src/components
wizardchen d199628701 fix(agent): exclude wiki-only KBs from quick-answer (RAG) mode
Quick-answer agent mode retrieves purely through vector/keyword chunk
search and ships with no `allowed_tools`, so the existing capability
filter (which only reads from `allowed_tools`) let wiki-only KBs through
in every entry point. End result: users could @-mention, select, and
receive suggested questions from wiki-only KBs in quick-answer mode,
but the underlying retrieval always returned empty.

Treat "RAG-only" as an implicit property of `agent_mode = quick-answer`
and union it with the tool-derived filter. The same predicate is now
used everywhere the user can pick or be steered toward a KB:

Backend
- `tools.DeriveKBFilterForAgent` / `KBSatisfiesAgentRequirements`
  layer the implicit quick-answer requirement on top of tool derivation.
- `ListKnowledgeBases`, `SearchKnowledge` (shared-agent `@file`),
  `resolveKnowledgeBasesFromAgent` (chat runtime), `/search` IM command,
  and `GetSuggestedQuestions` now all use the agent-mode-aware variant.
- `GetSuggestedQuestions` also skips the wiki-page fallback for
  quick-answer agents to cover the `selected` / explicit-kb-ids paths
  where a wiki-only KB could still slip through.

Frontend
- `deriveKbFilterForAgent` / `kbSatisfiesAgentRequirements` mirror the
  Go helpers.
- `@` mention dropdown (`Input-field.vue`) uses the new helper.
- Agent editor's "specified KB" picker (`AgentEditorModal.vue`) grays
  out wiki-only KBs for quick-answer agents with a tooltip, and the
  pre-save warning fires for quick-answer mode too.
- i18n: add `agentEditor.agentType.kbMismatch.quickAnswer` across all
  four locales.
2026-05-12 16:27:28 +08:00
..
GlobalCommandPalette feat(frontend): replace standalone search page with global command palette 2026-05-06 16:26:22 +08:00
css feat(frontend): unify font rendering and add font picker in settings 2026-05-05 00:48:40 +08:00
settings refactor(frontend): unify Model/WebSearch/MCP settings pages with shared card + drawer 2026-04-29 22:34:39 +08:00
AgentAvatar.vue feat(frontend): unify font rendering and add font picker in settings 2026-05-05 00:48:40 +08:00
AgentSelector.vue fix: standardize border styles across components 2026-03-05 18:14:14 +08:00
AgentShareSettings.vue feat(frontend): unify font rendering and add font picker in settings 2026-05-05 00:48:40 +08:00
AttachmentUpload.vue fix(frontend): route chat drag-and-drop uploads correctly 2026-04-30 10:43:03 +08:00
FAQTagTooltip.vue feat(frontend): unify font rendering and add font picker in settings 2026-05-05 00:48:40 +08:00
GlobalCommandPalette.vue feat(frontend): replace standalone search page with global command palette 2026-05-06 16:26:22 +08:00
IMChannelPanel.vue feat(frontend): unify external doc-link style and outline add buttons 2026-05-07 21:51:22 +08:00
IMChannelsOverviewPanel.vue feat(im): tenant-wide IM channels overview under the user menu 2026-04-30 15:29:14 +08:00
Input-field.vue fix(agent): exclude wiki-only KBs from quick-answer (RAG) mode 2026-05-12 16:27:28 +08:00
KnowledgeBaseSelector.vue fix: standardize border styles across components 2026-03-05 18:14:14 +08:00
ListSpaceSidebar.vue feat(frontend): unify font rendering and add font picker in settings 2026-05-05 00:48:40 +08:00
MentionSelector.vue feat(frontend): unify font rendering and add font picker in settings 2026-05-05 00:48:40 +08:00
ModelEditorDialog.vue fix(frontend): polish model settings UI and fix disabled brand color 2026-05-07 21:51:22 +08:00
ModelSelector.vue feat(asr): integrate Automatic Speech Recognition (ASR) support 2026-04-02 21:27:27 +08:00
PromptTemplateSelector.vue feat: enhance localization and configuration support 2026-03-17 22:23:24 +08:00
ShareKnowledgeBaseDialog.vue fix(frontend): unify radio button theme and disabled selection 2026-05-07 21:51:22 +08:00
SpaceAvatar.vue feat(frontend): unify font rendering and add font picker in settings 2026-05-05 00:48:40 +08:00
TenantSelector.vue fix: standardize border styles across components 2026-03-05 18:14:14 +08:00
UserMenu.vue feat(im): tenant-wide IM channels overview under the user menu 2026-04-30 15:29:14 +08:00
doc-content.vue fix(markdown): 修复小概率情况下公式加载失败问题 2026-05-07 16:34:20 +08:00
document-preview.vue fix(markdown): 修复小概率情况下公式加载失败问题 2026-05-07 16:34:20 +08:00
empty-knowledge.vue feat(frontend): unify font rendering and add font picker in settings 2026-05-05 00:48:40 +08:00
manual-knowledge-editor.vue feat(frontend): unify font rendering and add font picker in settings 2026-05-05 00:48:40 +08:00
menu.vue fix(frontend): make general-settings font picker actually work 2026-05-07 15:07:24 +08:00
picture-preview.vue feat: Enhance image preview functionality in WikiBrowser component 2026-04-22 21:17:28 +08:00
upload-mask.vue feat(frontend): unify font rendering and add font picker in settings 2026-05-05 00:48:40 +08:00