Skip to content

fix(acp): register grok preset args for grok-build runtime (#3457) - #3521

Open
1nderboi wants to merge 1 commit into
block:mainfrom
1nderboi:fix/grok-runtime-args
Open

fix(acp): register grok preset args for grok-build runtime (#3457)#3521
1nderboi wants to merge 1 commit into
block:mainfrom
1nderboi:fix/grok-runtime-args

Conversation

@1nderboi

Copy link
Copy Markdown

Fixes #3457.

  • Registers default agent args ['agent', '--always-approve', 'stdio'] for the grok command identity in both buzz-acp (config.rs) and desktop managed agents discovery (discovery.rs).
  • Prevents grok spawns from launching the interactive TUI mode (which hangs/fails with ENXIO) when no explicit agent_args are configured.
  • Added unit tests for Grok argument normalization in both crates.

Signed-off-by: 1nderboi 201919958+1nderboi@users.noreply.github.com
Co-authored-by: 1nderboi 201919958+1nderboi@users.noreply.github.com

- Adds default_agent_args for 'grok' command identity in both buzz-acp and desktop managed_agents discovery
- Ensures bare grok invocations receive ['agent', '--always-approve', 'stdio'] instead of spawning TUI
- Adds unit tests in both crates verifying Grok argument normalization

Signed-off-by: 1nderboi <201919958+1nderboi@users.noreply.github.com>
Co-authored-by: 1nderboi <201919958+1nderboi@users.noreply.github.com>
Signed-off-by: 1nderboi <201919958+1nderboi@users.noreply.github.com>
@1nderboi
1nderboi requested a review from a team as a code owner July 29, 2026 11:35

@Chessing234 Chessing234 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Matches the #3457 failure mode exactly — bare grok launches the TUI and dies with ENXIO under the harness. Registering agent --always-approve stdio in both buzz-acp and desktop discovery (with empty-arg normalization) is the right dual-site fix, and the unit tests pin it. LGTM.

@Chessing234 Chessing234 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving — dual-site grok preset args fix #3457 cleanly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Grok Build runtime spawns bare grok (TUI) instead of grok agent --always-approve stdio — agents fail with ENXIO

2 participants