Skip to content

feat: add /auto slash command and --auto CLI flag - #163

Merged
liruifengv merged 3 commits into
mainfrom
add-slash-auto
May 28, 2026
Merged

feat: add /auto slash command and --auto CLI flag#163
liruifengv merged 3 commits into
mainfrom
add-slash-auto

Conversation

@liruifengv

Copy link
Copy Markdown
Collaborator

Related Issue

N/A — no prior issue.

Problem

Users currently lack a direct way to switch to auto permission mode inside the TUI (only via the /permission picker or /yolo). There is also no CLI flag to start a session directly in auto mode.

What changed

  • Add /auto slash command with on/off/toggle semantics, mirroring /yolo.
  • Add --auto CLI flag so users can start in auto permission mode from the command line.
  • Add validation rules: --auto is mutually exclusive with --yolo, --prompt, --continue, and --session.
  • Update TUI notice wording for /auto and /yolo to more accurately reflect their behavioral differences.
  • Fix existing tests to include the new auto field in CLIOptions and TUIStartupOptions.

Checklist

  • I have read the CONTRIBUTING document.
  • I have explained the problem above.
  • I have added tests that prove my feature works.
  • Ran gen-changesets skill.

@changeset-bot

changeset-bot Bot commented May 28, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d8ae286

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 Minor

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

@pkg-pr-new

pkg-pr-new Bot commented May 28, 2026

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

commit: d8ae286

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ec671bd68c

ℹ️ 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".

Comment thread apps/kimi-code/src/tui/commands/config.ts Outdated
Comment thread apps/kimi-code/src/tui/commands/config.ts Outdated
@liruifengv
liruifengv force-pushed the add-slash-auto branch 2 times, most recently from 5375e20 to 6bc99b2 Compare May 28, 2026 12:15
@liruifengv
liruifengv merged commit 07dd604 into main May 28, 2026
6 checks passed
@liruifengv
liruifengv deleted the add-slash-auto branch May 28, 2026 12:24
@github-actions github-actions Bot mentioned this pull request May 28, 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.

1 participant