mirror of
https://github.com/yigitkonur/cli-continues.git
synced 2026-04-26 00:36:02 +03:00
[PR #33] [MERGED] feat: expand handoff auto-approval defaults to more CLIs #33
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cli-continues#33
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/yigitkonur/cli-continues/pull/33
Author: @yigitkonur
Created: 3/3/2026
Status: ✅ Merged
Merged: 3/3/2026
Merged by: @yigitkonur
Base:
main← Head:feat/handoff-default-flags-more-clis📝 Commits (3)
8883907feat(handoff): add default autonomy flags for more CLIsfea3f46fix(handoff): consume approval-mode passthrough for droid/amp/opencode360cafdfix(handoff): remove implicit unsafe defaults and align tests📊 Changes
3 files changed (+524 additions, -11 deletions)
View changed files
📝
src/__tests__/forward-flags.test.ts(+193 -1)📝
src/parsers/registry.ts(+276 -5)📝
src/utils/resume.ts(+55 -5)📄 Description
Summary
amp,kiro,crush,qwen-code(plus priorcursor/droid/kimisupport)--yolo/auto-approve style flags map to each CLI's documented equivalentsmapHandoffFlagsforamp/kiro/crush/kimiadaptersforward-flagstests for new mappings/defaults and command preview behaviorVerification
pnpm exec biome check src/parsers/registry.ts src/utils/resume.ts src/__tests__/forward-flags.test.tspnpm test -- src/__tests__/forward-flags.test.tspnpm buildNotes
Greptile Bug Review — Carmack Lens 🔬
Both reported issues are real, reproducible divergences — not style nits. Apply both.
src/utils/resume.tsgetDefaultHandoffInitArgs('qwen-code')emits['--yolo']butmapGeminiFlags(whichqwen-codereuses) emits['--approval-mode', 'yolo']— two code paths, different CLI syntax for identical intent['--approval-mode', 'yolo']to match mapper outputsrc/parsers/registry.tsmapDroidFlagsandmapAmpFlagsnever checkapprovalMode === 'yolo', so forwarding--approval-mode yolopasses through unmapped to each target instead of converting to its native flag (--skip-permissions-unsafe/--dangerously-allow-all)approvalModeguard thatmapKimiFlags,mapKiroFlags, andmapCrushFlagsalready haveVerdict: Merge-block until both are patched. Bug 1 causes silent behavioral divergence depending on whether the user supplies explicit forwarding args. Bug 2 silently passes an unrecognized flag to the child CLI, which either errors out or ignores it entirely. Both are one-liner fixes — no design debate needed.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.