MoonshotAI / MoonshotAI/kimi-code
Persist runtime permission mode changes as session defaults
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 7.5k
- Forks
- 1.2k
- Avg merge
- 11h 53m
- Merged PRs (30d)
- 350
Description
Problem
Issue #258 covered making /yolo persist across sessions through the default permission configuration. There is still a related gap for permission changes made at runtime inside an active TUI session.
When a user enables /yolo, /auto, or changes mode through /permission, the active session updates immediately, but a newly opened terminal starts from the existing configured default instead of inheriting the most recent permission mode chosen in the TUI.
Expected behavior
Runtime permission mode changes should update the persistent default permission mode in the user config, so new terminals and new sessions start with the same permission mode the user selected most recently.
Suggested scope
- Persist successful
/yolo,/auto, and/permissionmode changes to the config file as the default permission mode. - Do not persist if applying the runtime permission mode fails.
- Report config persistence failures clearly while keeping the already-applied runtime session state.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Trace the /yolo, /auto, and /permission command handlers and the runtime permission application path, then review the persistent default behavior from issue #258. Done means successful mode changes update the user config, failed applications do not persist, and config-write failures are reported without changing the active session state.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100