MoonshotAI / MoonshotAI/kimi-code

Persist runtime permission mode changes as session defaults

Open
#914 0 comments 0 reactions 0 assignees View on GitHub

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 /permission mode 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.