Skip to content

fix(workspace): inherit trust in subdirectories - #2980

Open
atirna wants to merge 8 commits into
MoonshotAI:mainfrom
atirna:fix/inherit-workspace-trust
Open

fix(workspace): inherit trust in subdirectories#2980
atirna wants to merge 8 commits into
MoonshotAI:mainfrom
atirna:fix/inherit-workspace-trust

Conversation

@atirna

@atirna atirna commented Aug 16, 2026

Copy link
Copy Markdown

Related Issue

Fixes #2976

Problem

See linked issue.

What changed

I made workspace trust checks recognize a trusted parent directory for nested workspaces, while keeping same-prefix sibling paths untrusted.

Verification

  • pnpm --filter @moonshot-ai/agent-core-v2 test
  • pnpm --filter @moonshot-ai/agent-core-v2 typecheck
  • pnpm --filter kimi-code-docs build

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, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

@changeset-bot

changeset-bot Bot commented Aug 16, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: a740006

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

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bd4e0e336e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/agent-core-v2/src/workspace/workspaceTrust/workspaceTrustService.ts Outdated
Comment thread packages/agent-core-v2/src/workspace/workspaceTrust/workspaceTrustService.ts Outdated
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.

Workspace trust is not inherited by subdirectories, forcing a trust prompt for every dynamic worktree

1 participant