[Bug] extra_skill_dirs does not expand Windows-style ~\ paths
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- cli
調査の方向性
Read resolveConfiguredDir in packages/agent-core-v2/src/features/skill/catalog/skillRoots.ts and the existing coverage in packages/agent-core-v2/test/features/skill/catalog/skillRoots.test.ts. Check how configured paths beginning with ~/ are expanded, then run the skill roots tests with a ~\\notes case. Done means the Windows-style path resolves under the home directory and the regression test passes. The author says they already have a local fix and asks maintainers to approve before opening a PR.
索引モデルが issue の本文から書いたものです。
説明
What version of Kimi Code is running?
2.6.3 (source main snapshot, 2026-11-18). Reproduces in the repository's unit tests without a login.
Which open platform/subscription were you using?
None involved.
Which model were you using?
None involved.
What platform is your computer?
Windows 11 x64.
What issue are you seeing?
extra_skill_dirs supports ~ and ~/, but not the Windows-style ~\.
With extra_skill_dirs = ["~\\notes"], the path is resolved relative to the project root as a literal ~ directory instead of the user's home directory, so the skill directory is never discovered.
What steps can reproduce the bug?
-
Create
C:\Users\<name>\notesand put a skill under it. -
In
config.toml, set:extra_skill_dirs = ["~\\notes"] -
Start Kimi in a git repository and check the skill catalog.
-
~\notesis resolved as<project>/~\notes(which does not exist), so the skill is missing.
A unit test reproduces the same behavior in packages/agent-core-v2/test/features/skill/catalog/skillRoots.test.ts:
const roots = await configuredRoots(['~\\notes'], root, homeDir, 'extra');
// before the fix: roots is []
What is the expected behavior?
Paths beginning with ~\ should expand to the user's home directory, the same way ~/ does.
Additional information
Root cause: resolveConfiguredDir in packages/agent-core-v2/src/features/skill/catalog/skillRoots.ts only checks dir.startsWith('~/').
Proposed fix: also accept dir.startsWith('~\\') and join the remainder with osHomeDir.
I have a local fix and a regression test ready. Please /approve this issue if you want me to open a PR.
Contribution
- I am willing to submit a PR for this bug fix myself (please wait for maintainer approval in this issue first)
- 主要言語
- TypeScript
- スター
- 8.3k
- フォーク
- 1.4k
- 平均マージ
- 12時間 6分
- マージ済み PR(30日)
- 596
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
MoonshotAI/kimi-code のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
MoonshotAI/kimi-code#5539 ·
メンテナーはふだん 1 日以内に返信
-
[Bug] Kimi RC workspace folder picker does not display symbolic link directories対応中かも @markankamaransheogarat-sys が 2 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
MoonshotAI/kimi-code#5296 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
MoonshotAI/kimi-code#5256 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
MoonshotAI/kimi-code#5062 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
MoonshotAI/kimi-code#5057 ·
メンテナーはふだん 1 日以内に返信
MoonshotAI/kimi-code の issue をすべて見る
似ている issue
-
Add Alice&Botオープン
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
slavakurilyak/awesome-ai-agents#1048 ·
-
bot:ai-assisted component:faucet github_actions security status:untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
midnightntwrk/midnight-faucet-api#215 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
NanmiCoder/cc-haha#2034 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
mobile prio:low
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
digitalfabrik/entitlementcard#3324 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信