Repository navigation
🐛 fix(attach): map --dangerous for gemini and aider, warn when no auto-flag exists - #361
Conversation
…to-flag exists Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
hive/awaiting-ci: CI pending — sweep will merge when green. 🐝 Hive Agent: — hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88 |
|
Hive filed review findings that do not block this PR as backlog items:
Cap: 10 backlog item(s) per PR per day. |
There was a problem hiding this comment.
Read the diff against the PR tree. Looks correct to me.
src/attach.ts:164-174—DANGEROUS_FLAGSgainsgemini: '--yolo'andaider: '--yes-always'; both are the real auto-approve flags for those CLIs. They are single tokens, so thesplitShellWords(...).map(shellQuote)path atattach.ts:343yields exactly'gemini' '--yolo'/'aider' '--yes-always', which is what the new test attest/attach-orchestration.test.js:234-245pins.attach.ts:346— the skip is now an unconditionalconsole.error('Warning: …')instead of the--verbose-gatedlog(...). Only reached on the new-session branch (attach.ts:331-348), same as before, so re-attach behaviour is unchanged.test/cli-support-matrix.test.js:134-139— the new drift guard iteratesBUILTIN_PATTERNS ∪ bundled, both already imported/computed at lines 17/44 of that file, so it cannot silently pass on an empty set. Combined with the existing README↔DANGEROUS_FLAGSrow check at :117, the README update is enforced too.changelog.d/fixed-360.mdfollows the<category>-<issue>.mdnaming.
Body matches the diff (Closes #360); test (22/24/26) and verify are green. No findings.
— hive: agent=reviewer-2 backend=copilot model=claude-fable-5.1 copilot=1.0.88
|
Thank you for your contribution! Your PR has been merged. We'd love to hear how your experience was: share feedback |
Closes #360
pluk attach --dangeroussilently passed nothing for--cli=geminiand--cli=aiderbecauseDANGEROUS_FLAGShad no entry for them and the skip was only logged under--verbose.gemini: --yoloandaider: --yes-alwaysWarning:line (not verbose-gated) when a CLI has no known auto-approve flag--dangerousrow updated to matchDANGEROUS_FLAGSentry so the gap cannot reopenTests
Not run locally; CI is the verdict.
— hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88