Repository navigation
feat(kimi-code): show file-change warning when switching to ask-when-needed or never-ask mode #3473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 7 commits
9da3ae9
58d95f5
7613f0c
8d0ce70
7cdb485
08f1eb3
618b501
c7e091a
65b72d6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@moonshot-ai/kimi-code": patch | ||
| --- | ||
|
|
||
| Show a warning after switching to Ask When Needed or Never Ask mode. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,3 +5,6 @@ export const PERMISSION_MODE_DISPLAY_NAMES: Readonly<Record<PermissionMode, stri | |
| yolo: 'Ask When Needed', | ||
| auto: 'Never Ask', | ||
| }; | ||
|
|
||
| export const UNCONFIRMED_FILE_CHANGES_WARNING = | ||
| 'In this mode, Kimi Code can modify or delete files without your confirmation'; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Move AGENTS.md reference: apps/kimi-code/AGENTS.md:L51-L51 Useful? React with 👍 / 👎. |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When a user starts
/goalfrom Always Ask, selects a permissive mode, and goal creation subsequently fails (for example, because a goal already exists), this notice and warning remain in the transcript even thoughstartGoalWithPermissionrestores the session tomanual. Because the rollback calls this helper withmanual, the conditional emits nothing to correct the displayed mode, leaving the user with a persistent message that inaccurately describes their current permissions; emit a matching Always Ask rollback notice or defer the permissive-mode notice until the goal successfully starts.Useful? React with 👍 / 👎.