Skip to content

Knowledge base first-open: default on, mount-first home - #25

Merged
XYAIStudio merged 2 commits into
mainfrom
cursor/kb-mount-first-home-17f5
Sep 16, 2026
Merged

XYAIStudio merged 2 commits into
mainfrom
cursor/kb-mount-first-home-17f5

Conversation

@XYAIStudio

@XYAIStudio XYAIStudio commented Sep 16, 2026 •

Copy link
Copy Markdown
Owner

Summary

Opening 知识库 now lands on a usable mount-first home instead of a buried “turn on knowledge bases” toggle.

  • Desktop / FreeOS first run: knowledge bases are on by default (OCTOP_DESKTOP / FREEOS_DESKTOP). An explicit off switch is still respected.
  • Primary actions on open: 本地文件夹挂接 (folder picker, source stays read-only) and 云知识库挂接 (ima and similar). Distill / parse results still go to a new folder the user chooses.
  • Creating a library no longer waits on embeddings. You can mount first; vector search still needs a model later.
  • Existing settings stay: vector / embedding, image text recognition, and scanned-document OCR are foundation tabs for later cleaning, labeling, and distillation — not removed.
  • Empty-state copy is plain language (zh + en). Sharing talks about colleagues; experts / assistants are not treated as departmental staff.

No Release assets are merged or replaced.

Target branch

  • Base is main (focused product fix from latest main)

Type of change

  • New feature

Test plan

  • uv run pytest tests/unit/knowledge/test_gate.py tests/unit/knowledge/test_service_acl.py tests/unit/knowledge/test_text_documents.py tests/unit/knowledge/test_params.py tests/unit/api/test_knowledge_bases.py tests/integration/test_knowledge_bases_api.py — 56 passed
  • cd dashboard && npx vitest run src/pages/KnowledgeBases — 20 passed
  • uv run ruff check + mypy --strict on changed Python modules
  • cd dashboard && npx tsc --noEmit
  • Full make all not run in this environment (deps were installed on demand; no live desktop UI)

Checklist

  • Updated CHANGELOG.md
  • README / docs (not required)

How to verify in the UI

  1. Open 知识库 on a desktop / first-run instance.
  2. See local folder mount and cloud (ima) mount immediately — no enable toggle first.
  3. Open 基础设置 and confirm vector, image, and scanned-document OCR tabs are still there.
Open in Web Open in Cursor 

cursoragent and others added 2 commits September 16, 2026 05:09
Opening 知识库 now lands on local and cloud mount setup instead of a buried enable toggle. Vector, image, and scanned-document OCR settings stay available as foundation tabs for later cleaning, labeling, and distillation.

Co-authored-by: XYAI Labs <haoboy8@gmail.com>
…ngelog.

Co-authored-by: XYAI Labs <haoboy8@gmail.com>
@XYAIStudio
XYAIStudio marked this pull request as ready for review September 16, 2026 05:12
@XYAIStudio
XYAIStudio merged commit f00ee1a into main Sep 16, 2026
5 checks passed
@XYAIStudio
XYAIStudio deleted the cursor/kb-mount-first-home-17f5 branch September 16, 2026 06:18
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.

2 participants