Skip to content

fix: webui长期记忆为空时, "前往长期记忆控制台" 按钮无效的问题#1736

Merged
SengokuCola merged 3 commits into
Mai-with-u:devfrom
ChinoKou:dev
May 24, 2026
Merged

fix: webui长期记忆为空时, "前往长期记忆控制台" 按钮无效的问题#1736
SengokuCola merged 3 commits into
Mai-with-u:devfrom
ChinoKou:dev

Conversation

@ChinoKou
Copy link
Copy Markdown
Contributor

@ChinoKou ChinoKou commented May 23, 2026

    • main 分支 禁止修改,请确认本次提交的分支 不是 main 分支
    • 我确认我阅读了贡献指南
    • 本次更新类型为:BUG修复
    • 本次更新类型为:功能新增
    • 本次更新是否经过测试
    • 如果本次修改涉及 src/A_memorix,我确认已阅读 src/A_memorix/MODIFICATION_POLICY.md,不涉及则无需勾选
  1. 请填写破坏性更新的具体内容(如有):
  2. 请简要说明本次更新的内容和目的:修复了webui长期记忆为空时, "前往长期记忆控制台" 按钮无效的问题

其他信息

  • 关联 Issue:Close #
  • 截图/GIF
  • 附加信息:

Summary by CodeRabbit

Bug Fixes

  • 优化了知识图谱页面打开控制台时的导航流程。现在从图谱页打开控制台时,将自动激活"导入"标签页,改进了用户的操作体验。

Review Change Stack

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 23, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 26c63c87-eb63-46a6-9813-35e4b2f57143

📥 Commits

Reviewing files that changed from the base of the PR and between 9d9e5a5 and b67ab22.

📒 Files selected for processing (1)
  • dashboard/src/routes/resource/knowledge-base.tsx

Walkthrough

KnowledgeGraphPage 的 onOpenConsole 回调函数被修改,改变了控制台打开时激活的目标标签页:从 graph 改为 import。这是一个行为改动,影响用户从知识图谱页打开控制台时的默认视图。

Changes

控制台标签页行为

Layer / File(s) Summary
控制台默认标签页调整
dashboard/src/routes/resource/knowledge-base.tsx
KnowledgeGraphPage 的 onOpenConsole 回调在第2211行被修改,控制台打开时的默认激活标签页从图谱页(graph)切换为导入页(import)。

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed 标题清晰准确地概括了主要改动:修复长期记忆为空时控制台按钮失效的问题,与代码变更一致。
Description check ✅ Passed 描述遵循了模板结构,完成了必要的检查项和关键信息填写,包括更新类型、测试确认和目的说明。
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@SengokuCola SengokuCola merged commit 9225e42 into Mai-with-u:dev May 24, 2026
3 checks passed
@coderabbitai coderabbitai Bot mentioned this pull request May 25, 2026
6 tasks
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