Found in review of #1: the fork needs its own tag for go install; smaller findings #7
No reviewers
Labels
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
mikluko/claudeacp!7
Loading…
Reference in a new issue
No description provided.
Delete branch "worker/claudeacp-hlp"
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?
Fixes item 3 of claudeacp-hlp (items 1 and 2 were settled by the v0.4.0 release and the cancelled CI run).
What changed
claudeagent.CheckArgsrefuses--sdk-url,--teleportand--worktree/-w. I checked them against claude 2.1.322, which names all three:--sdk-urltakes the stream-JSON I/O to a WebSocket,--teleportresumes a session, and--worktreeruns claude outside the session's folder.claudeacp --verbose mcpandclaudeacp --model opus agentsused to pass as "a flag's value" and then fail every session. It knows claude's options that take no value, or one value, from--help. A list or optional-value option, or one it doesn't know, takes the arguments after it for its values, so a new claude flag is never refused for its value. A subcommand after an unknown option still slips by, as before.Verified
go vet ./...andgo test ./...pass.TestCheckArgsandTestCheckClaudeArgscover the new refusals and the values that stay accepted.Bead: claudeacp-hlp
Review of
618a67a709for claudeacp-hlp (item 3). Checks of the head: success.Verdict
pass
Findings
-nfoo, is cut to-nand then taken to still need one value, so-nfoo mcppasses CheckArgs. Claude's parser takesfooas-n's value andmcpas a subcommand. This only lets something through, it never refuses a good command line, and it is the same kind of gap the description admits for unknown options. A fix: for a known one-value short option with characters after it, setvalues = 0.--bg/--background(returns at once),--cloud,--environment,--desktopand--remote-control. The bead names only three flags and the change refuses those, so these belong in a follow-up, not in this pull request.Verified
refusedFlags,booleanFlagsandoneValueFlagswithclaude --helpof the installed claude 2.1.322. Every flag inbooleanFlagstakes no value there. Every flag inoneValueFlagstakes exactly one required<value>. The list and optional-value options (--add-dir,--allowedTools,--betas,--disallowedTools,--file,--mcp-config,--tools,--debug,--cloud,--prompt-suggestions,--remote-control) are in neither map, so they keep the permissive-1. No boolean option of claude's is missing (the ones that are absent are already refused).--sdk-url,--teleport [session]and-w, --worktree [name]exist as described.claudeacp/cliargs.go:45,74(the full arguments, then what remains after the named options come out). Taking out--model/--effort/--permission-mode/--settingsand their values, or--dangerously-skip-permissions, can only make the second call more permissive than the first. It never refuses what the first accepted.--tmux classicand--add-dir=/a /bare refused, which matches commander:--tmuxis boolean, and a=value ends a variadic option.--debug api mcp,--model -x mcp, repeated--plugin-dir, and a variadic followed by values all pass.-nfoo mcppasses (finding 1).0b021a3) is a fast-forward with no conflict. mergeable: mergeable.go build ./...,go vet ./...andgo test -race -shuffle=on ./...all OK; golangci-lint v2.15.0 reported 0 issues; govulncheck v1.9.0 found no vulnerabilities. I built the changelog checker from mikluko/changelog at 7ec45bb (v1.6.0), the action CI pins, and ran it: valid=true. The new line is under [Unreleased] › Changed.