Found in the last review of #1: a stale description, override log lines without a session, options not refused #8
No reviewers
Labels
No labels
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
mikluko/claudeacp!8
Loading…
Reference in a new issue
No description provided.
Delete branch "worker/claudeacp-04j"
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 the findings of claudeacp-04j that live in the code.
_metaoverride lines (model, permission mode, settings, an option not applied,CLAUDE_CONFIG_DIRleft out) now carry the session's folder ascwd.TestClaudeArgsOverrideIsLoggedchecks it.claudeagent.CheckArgs(and soclaudeacp, exit 2) now refuses--bg/--background,--cloud,--environment,--desktop,--remote-controland--remote-control-session-name-prefix, which run the session elsewhere than as the agent's child. I took the list fromclaude --help(2.1.322).--verbosestays accepted: the package sets it itself, so a second one changes nothing. A subcommand after a flag (--verbose mcp list),--sdk-url,--teleportand--worktreeare claudeacp-hlp's item 3 and are left to that pull request.Not done:
gc forgejo prhas no edit command and I did not look for a forge token. The description still needs editing by hand.--session-idor--resumeon ACP): gc is not in this repository, and I did not trace it.claudeacprefuses both either way.Checked:
go vet,golangci-lint run,go test ./...all clean.Bead: claudeacp-04j
Review of
e79e3e39b1for claudeacp-04j. Checks of the head: success (they ran before #7 merged).Verdict
fail
Findings
1a8db38(#7, which merged after this branch was cut from0b021a3). Merging the head into origin/main conflicts inclaudeagent/options.go(therefusedFlagsmap, where #7 added--sdk-url,--teleport,--worktree/-wand the newbooleanFlags/oneValueFlagsmaps, and theCheckArgsdoc comment, which #7 rewrote) and inclaudeagent/options_test.go(theTestCheckArgscases next to #7's). The forge also reports the pull requestnot_mergeable. When you resolve it, keep both sets of refused flags and merge the two doc comments into one.--bg,--backgroundand--desktopare already in #7'sbooleanFlags, and--environmentand--remote-control-session-name-prefixin itsoneValueFlags. Those entries do no harm once the flags are refused, but say whether you keep them.CHANGELOG.mdmerges cleanly. Its two new lines stay under[Unreleased]/### Changed.claudeacprefuses, with the reason for each, and #7 extended it for--sdk-url,--teleportand--worktree. This pull request refuses six more options (--bg/--background,--cloud,--environment,--desktop,--remote-control,--remote-control-session-name-prefix), but the README does not list them, so after the merge the list is incomplete. Add them with their reason: they run the session somewhere other than as the agent's child.### Changed, which makes the section a loose list. Remove the blank line during the rebase.cwd=. Two cases pass that should not: an emptycwd="", and the other two lines this change touched ("a session option the agent doesn't apply" and theCLAUDE_CONFIG_DIRwarning). Checking forcwd=followed by the session's folder, and adding an unknown_metaoption to the first case, would cover them.Verified
--verbose mcp listcase was left to claudeacp-hlp and was then fixed on main by #7.o.Cwdis set fromsu.cwdand checked to be absolute in(*agent).optionsbeforeapplyOptionsruns, so every newcwdattribute names the session's folder.CheckArgs, the name is cut at=, so--cloud=a taskand--remote-control-session-name-prefix=boxare refused.--background-xis still accepted.1a8db38) in a clean clone: conflicts inclaudeagent/options.goandclaudeagent/options_test.go.go build ./...,go vet ./...,go test -race -shuffle=on ./...(all packages ok), andgolangci-lintv2.15.0run ./...(0 issues). I could not run the tests on the merge result because it does not merge.e79e3e39b1c09ec85b8eReview of
c09ec85b8efor claudeacp-04j. Checks of the head: success.Verdict
pass
Findings
--verbose mcp list,--sdk-url,--teleportand--worktreeare "left to that pull request", but #7 has merged them. It does not answer round 1's question about the entries for--bg,--background,--desktop,--environmentand--remote-control-session-name-prefixthat stay inbooleanFlags/oneValueFlags(claudeagent/options.go:276-297). They do no harm, becauserefusedFlagsis checked first. Nothing of the description reaches main, so this does not block.strings.Contains(line, "cwd="+dir)would also accept acwdthat only begins with the session's folder (<dir>/sub). Matching"cwd="+dir+" "would close that gap. It is cosmetic, becauseo.Cwdcomes straight from the session.Verified
e79e3e3), and the whole diff (7 files, +51/-14). There is no REVIEW.md, AGENTS.md or CLAUDE.md on main. The README was read from main.1a8db38, and the head fast-forwards it. #7's refused flags and the six new ones are both kept inrefusedFlags, and the twoCheckArgsdoc comments are merged into one.--bg/--background,--cloud,--environment,--desktop,--remote-controland--remote-control-session-name-prefix, with their reason.[Unreleased]/### Changedas a tight list.CLAUDE_CONFIG_DIRwarning, and checks for the session's own folder.cwdtaken off theCLAUDE_CONFIG_DIRwarning,TestClaudeArgsOverrideIsLoggedfails. Withcwd=""on the unknown-option line, it fails too.go build ./...,go vet ./...andgo test -race -shuffle=on -count=1 ./...: all packages ok.run ./...: 0 issues.