Repository navigation
Conversation
The custom agent docs named permissionCli but did not say where bb puts the flags. The default insertAfterArgs of 0 puts them before all args, so a /bin/sh -c wrapper fails at start. Describe full, workspaceWrite and insertAfterArgs, with a shell wrapper example.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human comments
What was wrong
The custom ACP agent docs listed
permissionClias "permission-mode launch flags" with no fields.insertAfterArgswas not documented, and its default0puts the flags before allargs(applyPermissionCliArgs). A custom agent that starts through/bin/sh -c '...'therefore failed on each thread start in thefullmode.What changed
docs/configuration.md: describesfull(thefullmode),workspaceWrite(theaccept-editsmode) andinsertAfterArgs, with a shell wrapper example. It also says thatinsertAfterArgsmoves only thepermissionCliflags (bb putsmodelCliandreasoningCliflags before allargs), and that a value larger thanargsis capped.plugins/provider-acp/skills/acp-provider/SKILL.md: the same rules in short form.permissionCli.readonlyis accepted by the schema but no ACP permission mode uses it, so the docs do not mention it.Docs: this PR is the docs change.
How you verified
Base: e0c49e2.
bridge.ts(permissionCliArgsForMode,applyPermissionCliArgs, launch args built as[...prefixArgs, ...agentArgs]) andpackages/domain/src/acp-cli.ts./bin/sh -c 'exec echo my-agent acp "$@"' my-agent --dangerously-skip-permissionsprintsmy-agent acp --dangerously-skip-permissions. With the flag first,/bin/shprintsinvalid optionand exits.antigravitycustom agent (agy1.5.20) failed every thread start until"insertAfterArgs": 3was set. After that change, a thread started and replied.oxfmt --checkon both files: clean.Fixes #8505