Skip to content

fix(web): unify permission mode order and risk colors across settings surfaces - #2125

Merged
wbxl2000 merged 3 commits into
MoonshotAI:mainfrom
bowenliang123:web/agent-permission-order
Jul 31, 2026
Merged

fix(web): unify permission mode order and risk colors across settings surfaces#2125
wbxl2000 merged 3 commits into
MoonshotAI:mainfrom
bowenliang123:web/agent-permission-order

Conversation

@bowenliang123

@bowenliang123 bowenliang123 commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Related Issue

No linked issue — the problem is explained below.

Problem

In Agent settings, the default permission mode selector showed options in the order manual → auto → yolo. This is neither ordered by risk/permissiveness nor consistent with the Composer toolbar, which lists them as manual → yolo → auto.

  • manual: ask for approval on every tool action (safest)
  • yolo: auto-approve tool actions, but still ask questions (middle)
  • auto: fully autonomous, no questions asked (most permissive)

Placing auto between manual and yolo made the risk progression hard to read at a glance.

What changed

  • Reordered permissionModes in apps/kimi-web/src/components/settings/SettingsDialog.vue from ['manual', 'auto', 'yolo'] to ['manual', 'yolo', 'auto'].
  • This matches the order already used in the Composer permission menu and arranges the modes from safest to most permissive.

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. (N/A — small UI ordering change)
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

Screenshots

Before After
Before After

Align the Agent settings default-permission segmented control with the
Composer toolbar order, arranging modes from safest (manual) to most
permissive (auto).
@changeset-bot

changeset-bot Bot commented Jul 24, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 41eb008

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

@bowenliang123
bowenliang123 force-pushed the web/agent-permission-order branch from 46165e8 to 4daf75a Compare July 24, 2026 01:55
@bowenliang123 bowenliang123 changed the title web: reorder default permission options in Agent settings fix(web): reorder default permission options in Agent settings Jul 24, 2026
@bowenliang123
bowenliang123 force-pushed the web/agent-permission-order branch from 725f3d8 to 4daf75a Compare July 24, 2026 02:03
@pkg-pr-new

pkg-pr-new Bot commented Jul 31, 2026

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@41eb008
npx https://pkg.pr.new/@moonshot-ai/kimi-code@41eb008

commit: 41eb008

wbxl2000 added 2 commits July 31, 2026 13:20
The mobile settings sheet still cycled manual → auto → yolo, jumping from
the safest mode straight to the most permissive one on a single tap. Align
the tap-to-cycle order with the Composer menu and Agent settings
(manual → yolo → auto).
Both the desktop status panel and the mobile settings sheet mapped
yolo → danger and auto → warning, the inverse of the Composer menu
(yolo → warning, auto → danger). Since auto is the most permissive
mode, it should carry the danger color everywhere.
@wbxl2000 wbxl2000 changed the title fix(web): reorder default permission options in Agent settings fix(web): unify permission mode order and risk colors across settings surfaces Jul 31, 2026
@wbxl2000

Copy link
Copy Markdown
Collaborator

@codex

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: 41eb008989

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@wbxl2000
wbxl2000 merged commit e111c87 into MoonshotAI:main Jul 31, 2026
15 checks passed
@github-actions github-actions Bot mentioned this pull request Jul 31, 2026
@bowenliang123
bowenliang123 deleted the web/agent-permission-order branch July 31, 2026 05:31
@bowenliang123

Copy link
Copy Markdown
Contributor Author

@wbxl2000 Thanks for the review and refinement. This is my very first PR merged to kimi-code. And I do hope kimi-code all the best and will contribute more my effort to it to bring it as first tier coding agent.

Pidbid added a commit to Pidbid/kkm that referenced this pull request Jul 31, 2026
Pidbid added a commit to Pidbid/kkm that referenced this pull request Jul 31, 2026
Pidbid added a commit to Pidbid/kkm that referenced this pull request Jul 31, 2026
Pidbid added a commit to Pidbid/kkm that referenced this pull request Jul 31, 2026
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.

2 participants