fix: allow YOLO when starting swarm tasks#645
Merged
Conversation
🦋 Changeset detectedLatest commit: c2a111a The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
commit: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related Issue
No linked issue. This PR addresses a small TUI permission-choice gap for
/swarm.Problem
When starting a swarm task from
manualpermission mode, the prompt let users switch toautoor stay inmanual, but it did not offeryolo. 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
/swarmcommand 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.tspnpm 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.tspnpm --filter @moonshot-ai/kimi-code run typecheckpnpm -C docs run buildgit diff --checkChecklist
gen-changesetsskill, or this PR needs no changeset.gen-docsskill, or this PR needs no doc update.