Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
dbc87fa
fix(cli): mirror programmatic args onto process.argv (hardened)
SmartManoj Jul 14, 2026
d51077f
fix(cli): ssh strip-all dangerous-skip tokens; docs+tests for native …
SmartManoj Jul 14, 2026
e8ff0f8
test(cli): runtime coverage for dangerous-skip strip; share one helper
SmartManoj Jul 14, 2026
af13adc
style(cli): semicolon + strip both spellings in safety-test reset
SmartManoj Jul 14, 2026
98db12a
fix(cli): notice names --yolo; move import out of boot-critical block
SmartManoj Jul 14, 2026
8e87f23
fix(cli): honor -- end-of-options in the raw-argv dangerous-skip scan…
SmartManoj Jul 14, 2026
e3ab3cb
refactor(cli): don't leak args via process.argv; stop simulating comm…
SmartManoj Jul 15, 2026
406934c
docs(cli): clarify main() argv comment — skills/--update do rewrite argv
SmartManoj Jul 15, 2026
643c1e1
fix(setup): name the --yolo alias in the root/sudo bypass error
SmartManoj Jul 15, 2026
18c5b5f
test(cli): import Command from @commander-js/extra-typings, matching …
SmartManoj Jul 15, 2026
61633c2
fix(ssh): don't treat an option value as the permission-bypass alias
SmartManoj Jul 15, 2026
8daaa35
test(cli): update ssh-path source assertion for parseSshFlags extraction
SmartManoj Jul 15, 2026
5e7f212
chore(cli): revert unrelated --bare doc; drop stray blank line
SmartManoj Jul 15, 2026
304ea26
fix(ssh): honor the -- end-of-options marker in the ssh pre-parser
SmartManoj Jul 15, 2026
8048b53
refactor: make --yolo/bypass Commander-authoritative on cc:// connect…
SmartManoj Jul 18, 2026
485c3fc
fixup! address CodeRabbit/Copilot review findings on #2098
SmartManoj Aug 7, 2026
b35217a
fixup! extract hasPrintFlag helper + regression tests
SmartManoj Aug 7, 2026
7a85cfb
fixup! use hasPrintFlag in every startup print-mode check
SmartManoj Aug 7, 2026
157c41f
fixup! align dangerously-skip notice comment with commander-authorita…
SmartManoj Aug 7, 2026
0b33889
fixup! add SIGINT handler to hasPrintFlag source assertions
SmartManoj Aug 7, 2026
4c67321
fixup! restore maxTurns forwarding dropped during rebase
SmartManoj Aug 7, 2026
098d956
fixup! address Copilot suppressed comments on #2098
SmartManoj Aug 7, 2026
aeedca2
fixup: left-to-right SSH parse and fullAccess sandbox warning
SmartManoj Aug 7, 2026
fe7d809
fixup: preserve missing SSH option values and embedded equals
SmartManoj Aug 7, 2026
f52cc3f
fixup: arity-aware print detection and optional --resume for SSH
SmartManoj Aug 9, 2026
61249bc
fixup: handle inline values and -- in hasPrintFlag
SmartManoj Aug 9, 2026
4cead74
fixup! address jatmn review: arity-aware print/SSH parsing + fullAcce…
SmartManoj Aug 10, 2026
03bd540
fixup! correct bypassPermissions notice wording
SmartManoj Aug 10, 2026
e3b9662
Merge branch 'main' into feat/yolo-flag
SmartManoj Aug 16, 2026
a45b808
Address remaining CodeRabbit findings on #2098
SmartManoj Aug 16, 2026
3445875
fix(cli): make hasPrintFlag the single pre-Commander print classifier
SmartManoj Aug 17, 2026
a1e8422
fix(ssh): preserve --resume= values and run headless guard before hos…
SmartManoj Aug 17, 2026
d9716ec
fix(cli): remove repeatable single-value options from VARIADIC_OPTIONS
SmartManoj Aug 17, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/cli/bg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { open, unlink } from 'node:fs/promises'
import { basename } from 'node:path'
import treeKill from 'tree-kill'
import { argsBeforeDelimiter } from '../utils/cliArgs.js'
import { hasPrintFlag } from '../utils/printFlag.js'
import { isProcessRunning } from '../utils/genericProcessUtils.js'
import {
assertBackgroundSessionNameAvailable,
Expand Down Expand Up @@ -335,8 +336,7 @@ function findSessionName(args: string[]): string | undefined {
}

function hasPrintMode(args: string[]): boolean {
const searchable = argsBeforeDelimiter(args)
return searchable.includes('--print') || searchable.includes('-p')
return hasPrintFlag(args)
}

function insertBeforePrompt(args: string[], values: string[]): string[] {
Expand Down
Loading
Loading