Repository navigation
feat: turn filesystem watch back on by default - #4015
Merged
Merged
Conversation
🦋 Changeset detectedLatest commit: b75e16a The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
commit: |
Collaborator
Author
|
@codex Review |
liruifengv
approved these changes
Sep 24, 2026
sailist
marked this pull request as draft
September 24, 2026 06:35
sailist
marked this pull request as ready for review
September 24, 2026 06:35
Contributor
|
@codex review |
This was referenced Sep 24, 2026
Merged
4 of 6 tasks
7723qqq
added a commit
to 7723qqq/kimi-code
that referenced
this pull request
Sep 24, 2026
…tch docs Follows upstream 929403b (MoonshotAI#4013, revert of MoonshotAI#3964): background git invocations no longer override repo-local git config (utils/git/git-args.ts deleted), the codebase scanner and git-status cache drop the config-args wiring, and the hardening-assertion tests are removed. The fail-closed trust prompt and lazy footer git detection stay, matching upstream. The Rust-side half was never committed (the MoonshotAI#3964 port lived only in the working tree), so nothing to revert there; the local.toml feature itself stays ungated. Residual divergence (resolve_for_write realpath vs lexical) is recorded in ROADMAP §6.8.1. Docs for the watch-default-on flip (MoonshotAI#4015) are taken byte-identical from be7d5f5 (2.1.1 final): [watch] enabled defaults to on, KIMI_CODE_WATCH override documented — the code half remains unported (tracked, ROADMAP §6.8.2); the fork has no watcher subsystem and /reload stays explicit. ROADMAP §6.8 records the full 2.1.0..2.1.1 triage; check-upstream-v2-delta reports all deltas triaged.
5 tasks done
7723qqq
pushed a commit
to 7723qqq/kimi-code
that referenced
this pull request
Oct 5, 2026
Step 10 of the incremental sync to 2.1.1: 4 upstream commits over 59 files. The step rolls back the 2.1.0 trust-boundary hardening and turns the filesystem watchers back on by default. Upstream's changes in this step, all absorbed: - roll back the workspace trust-boundary hardening (MoonshotAI#4013): background git invocations no longer override repo-local git config, agent file tools no longer re-resolve paths through symlinks, and project-local local.toml applies without trust gating again - turn filesystem watch back on by default (MoonshotAI#4015) - sync the 2.1.0 changelog into the release notes (MoonshotAI#4006) - release packages (MoonshotAI#4016) Fork behaviour that had to survive: - the fork's node-local → host rename: the test files the revert touches keep importing `#/os/backends/host/...` - the fork's inline media reading: the ReadTool-based symlink-escape test goes away with the guard it covered, and the retired ReadMediaFileTool stays retired - the fork's i18n: the revert restores no user-facing strings, so no new locale keys are needed - the fork's Windows-safe test cleanup and its own workspace and alias test additions stay in place Verified: typecheck clean across every package and app; full suite 17764 passed / 0 failed / 81 skipped / 1 todo, plus kimi-inspect's own 115 tests; lint 0 errors.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requirement or Bug
Turn filesystem watch back on by default, reverting the default-off behavior from #3931.
Bug Reproduction Steps
N/A (behavior-change PR).
Root Cause
N/A (not a bug fix). #3931 flipped filesystem watch to default off five days ago; this PR restores the previous default-on behavior per product decision.
Code Changes
watchEnabledFromConfiginpackages/agent-core-v2/src/human/utils/watch.ts, and the?? truefallback inapplyWatchEnabled()inpackages/agent-core-v2/src/app/config/configService.ts. TheKIMI_CODE_WATCHenvironment variable keeps its higher priority over the config file.watch.test.ts,setWatchEnabledcalls inagentProfileLoader.test.ts/workspaceAliasesService.test.ts,KIMI_CODE_WATCH=1env setup in kap-serverworkspaces.test.ts/modelCatalogCatalog.test.ts). Test count unchanged.docs/{zh,en}/configuration/config-files.md,env-vars.md) back to default on /true.Impact Scope
config.tomlhot-reload) attaches watchers by default again;KIMI_CODE_WATCH=0or[watch] enabled = falseopts out.tsc --noEmitclean for agent-core-v2 and kap-server; full remote suite 16688/16751 with the only 2 failures reproduced as passes in isolated re-runs (load flakes unrelated to this change).Checklist
/approve). — related PR: feat: turn off filesystem watch by default #3931 (the change this reverts)gen-changesetsskill, or this PR needs no changeset.gen-docsskill, or this PR needs no doc update. — docs updated in this PR (zh/en config-files + env-vars)