openclaw - 💡(How to fix) Fix Wiki CLI 仅支持单一 vault 路径,无法指定 office/life 等其他 vault

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Fix Action

Fix / Workaround

当前 workaround: 通过 cd ~/.openclaw/wiki/office && openclaw wiki status 切换目录,但这不是理想的 UX,且某些命令(如 ingest)需要绝对路径。

RAW_BUFFERClick to expand / collapse

问题描述

当前行为: openclaw wiki CLI 仅支持单一 vault 路径(默认 ~/.openclaw/wiki/main/),无法通过参数指定 office/life 等其他 vault 路径。

期望行为: 能够通过 -p / --path-w / --wiki 等参数指定目标 vault,例如:

  • openclaw wiki -w office ingest /path/to/file.md
  • openclaw wiki -w life status
  • openclaw wiki -p /custom/vault/path compile

背景: OpenClaw 多 agent 架构中,每个 agent 可能有独立的 wiki vault:

  • ~/.openclaw/wiki/main/ (main agent)
  • ~/.openclaw/wiki/office/ (office agent)
  • ~/.openclaw/wiki/life/ (life agent)

知识库维护 cron job 需要分别对三个 vault 执行 wiki ingest / compile / lint,但目前只能操作 main vault,这限制了自动化能力。

工作区结构参考:

重现步骤

  1. 初始化多个 vault(main/office/life)
  2. 尝试对非 main vault 执行操作: openclaw wiki -w office status
  3. 观察:参数被忽略或报错

当前 workaround: 通过 cd ~/.openclaw/wiki/office && openclaw wiki status 切换目录,但这不是理想的 UX,且某些命令(如 ingest)需要绝对路径。

环境信息

  • OpenClaw 版本:2026.5.7 (eeef486)
  • 操作系统:Linux
  • Node 版本:v24.15.0
  • 已尝试的 vault 目录均已通过 openclaw wiki init -p <path> 初始化

建议的解决方案

  1. openclaw wiki 命令增加 -p / --path 全局参数,支持指定 vault 路径
  2. 支持通过环境变量 OPENCLAW_WIKI_PATH 设置默认 vault
  3. 子命令(ingest/compile/lint 等)直接继承该路径,无需单独传递

其他

相关讨论或参考:memory-wiki 插件架构硬限制决定当前行为。

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix Wiki CLI 仅支持单一 vault 路径,无法指定 office/life 等其他 vault