Skip to content

fix(agent-core-v2): normalize Windows UNC watch paths - #2807

Open
weivwang wants to merge 1 commit into
MoonshotAI:mainfrom
weivwang:fix/windows-unc-watch
Open

fix(agent-core-v2): normalize Windows UNC watch paths#2807
weivwang wants to merge 1 commit into
MoonshotAI:mainfrom
weivwang:fix/windows-unc-watch

Conversation

@weivwang

Copy link
Copy Markdown

Related Issue

Resolve #2771

Problem

See linked issue. Project skill discovery can produce a forward-slash Windows UNC path, which the native recursive watcher does not reliably recognize as a network share.

What changed

Normalize Windows watch roots with platform-native separators at the native filesystem-watch boundary while preserving the logical root used for filtering and emitted invalidations. Add a regression test that proves a forward-slash UNC root reaches the native watcher as \\server\share\repo.

Validation

  • pnpm --filter @moonshot-ai/agent-core-v2 lint:imports
  • pnpm --filter @moonshot-ai/agent-core-v2 typecheck
  • pnpm --filter @moonshot-ai/agent-core-v2 test (311 files, 4900 tests)
  • Focused type-aware oxlint on the changed implementation and test (0 errors)

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • I have added tests that prove my feature works.
  • Ran gen-changesets skill and added a CLI patch changeset.
  • Ran gen-docs skill; this fix does not change documented commands, configuration, or usage.

@changeset-bot

changeset-bot Bot commented Aug 11, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 92bbf75

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@moonshot-ai/kimi-code Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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.

如果在网络共享目录运行 kimi 直接报错了

1 participant