MoonshotAI / MoonshotAI/kimi-code
/add-dir 出了会话不可用
Open
Nobody has claimed this yet.
bug
- Dominant language
- TypeScript
- Stars
- 7.5k
- Forks
- 1.2k
- Avg merge
- 11h 53m
- Merged PRs (30d)
- 350
Description
你运行的 Kimi Code 版本是?
2.0.0
你使用的是哪个开放平台/订阅?
第三方供应商
你使用的是哪个模型?
kimi-k3
你的电脑平台是?
Darwin 25.6.0 arm64 arm
你遇到了什么问题?
No additional directories configured.
复现步骤?
给定 parent/repo1 与 parent/repo2 两个 Git 仓库。
在 parent/repo1 下:
/add-dir ../repo2并选择Yes, and remember this directory。- 可见
parent/repo1/.kimi-code/local.toml中有workspace.additional_dir包含 repo2 的绝对路径。 - 在相同会话中执行
/add-dir list可见 repo2。 - 在 repo1 下新建会话,执行
/add-dir list不可见 repo2。
期望的行为是什么?
No response
补充信息
No response
Contribution
- 我愿意自己提交修复此 bug 的 PR(请先等待维护者在本 issue 中批准)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing /add-dir ../repo2, checking parent/repo1/.kimi-code/local.toml, and comparing /add-dir list in the existing and newly created sessions. Trace how workspace.additional_dir is loaded when a new session starts; done means the remembered repo2 directory appears in /add-dir list in that new session.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100