MoonshotAI / MoonshotAI/kimi-code

/add-dir 出了会话不可用

Open
#3,898 0 comments 0 reactions 0 assignees View on GitHub

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/repo1parent/repo2 两个 Git 仓库。
parent/repo1 下:

  1. /add-dir ../repo2 并选择 Yes, and remember this directory
  2. 可见 parent/repo1/.kimi-code/local.toml 中有 workspace.additional_dir 包含 repo2 的绝对路径。
  3. 在相同会话中执行 /add-dir list 可见 repo2。
  4. 在 repo1 下新建会话,执行 /add-dir list 不可见 repo2。
期望的行为是什么?

No response

补充信息

No response

Contribution
  • 我愿意自己提交修复此 bug 的 PR(请先等待维护者在本 issue 中批准)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.