Skip to content

fix: allow YOLO when starting swarm tasks#645

Merged
kermanx merged 1 commit into
mainfrom
xtr/swarm-yolo-start-option
Jun 11, 2026
Merged

fix: allow YOLO when starting swarm tasks#645
kermanx merged 1 commit into
mainfrom
xtr/swarm-yolo-start-option

Conversation

@kermanx

@kermanx kermanx commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

Related Issue

No linked issue. This PR addresses a small TUI permission-choice gap for /swarm.

Problem

When starting a swarm task from manual permission mode, the prompt let users switch to auto or stay in manual, but it did not offer yolo. That made swarm startup inconsistent with the available permission modes and forced users to switch modes separately when they wanted tool approvals skipped while still allowing questions.

What changed

Added a YOLO choice to the swarm start permission prompt, wired that choice to set the session permission mode before enabling swarm mode, and covered the new flow in /swarm command tests. The slash-command reference docs were updated in English and Chinese, and a patch changeset was added for the CLI package.

Verification:

  • pnpm --filter @moonshot-ai/kimi-code test -- --run test/tui/commands/swarm.test.ts
  • pnpm exec oxlint --type-aware apps/kimi-code/src/tui/components/dialogs/swarm-start-permission-prompt.ts apps/kimi-code/src/tui/commands/swarm.ts apps/kimi-code/test/tui/commands/swarm.test.ts
  • pnpm --filter @moonshot-ai/kimi-code run typecheck
  • pnpm -C docs run build
  • git diff --check

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.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

@changeset-bot

changeset-bot Bot commented Jun 11, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c2a111a

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

@pkg-pr-new

pkg-pr-new Bot commented Jun 11, 2026

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

commit: c2a111a

@kermanx kermanx merged commit 1b58aa8 into main Jun 11, 2026
9 checks passed
@kermanx kermanx deleted the xtr/swarm-yolo-start-option branch June 11, 2026 06:34
@github-actions github-actions Bot mentioned this pull request Jun 11, 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