Skip to content

fix(agent-core-v2): honor configured permission rules - #2337

Open
gunnlace wants to merge 1 commit into
MoonshotAI:mainfrom
gunnlace:fix/configured-permission-rules
Open

fix(agent-core-v2): honor configured permission rules#2337
gunnlace wants to merge 1 commit into
MoonshotAI:mainfrom
gunnlace:fix/configured-permission-rules

Conversation

@gunnlace

Copy link
Copy Markdown

Related Issue

Fixes #2100

Problem

See linked issue.

What changed

Load configured permission rules into the effective Agent permission rule view alongside live runtime rules.

This keeps configured rules outside the persisted Agent wire state, so resumed agents continue to read the current configuration without duplicating or retaining stale rules.

Added regression coverage for merging configured and runtime rules, and for approving a configured MCP tool before the manual-mode fallback.

Manually verified in kimi web that an MCP call prompts without an allow rule and executes without prompting after adding the matching rule.

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 Jul 29, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ee0cc67

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 web Manual mode ignores user-configured [[permission.rules]] allow rules (over-prompts)

1 participant