Skip to content

Enable manual compaction for built-in Grok ACP provider - #4386

Merged
SawyerHood merged 1 commit into
mainfrom
slopcop/issue-4378
Oct 5, 2026
Merged

SawyerHood merged 1 commit into
mainfrom
slopcop/issue-4378

Conversation

@bb-slop-cop

@bb-slop-cop bb-slop-cop Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Human comments

What was wrong

The built-in Grok ACP provider inherited the ACP default of supportsManualCompaction: false. The server rejected compaction with HTTP 409 before dispatching to the ACP bridge. The verified reproduction and root-cause report records the failure in two clean checkouts.

What changed

Enabled manual compaction for the built-in Grok ACP provider, extended the public thread compaction test to cover its request, updated the existing provider expectation, and documented the CLI behavior in the ACP provider skill. No protocol or wire fields changed. The bridge already sends /compact as a session/prompt for every ACP agent and treats end_turn as completed for the grok dialect, so no bridge change is needed.

Rebased onto current main (95ec22f22c) to resolve a conflict in the ACP provider skill doc with the OpenCode question-tool paragraph added in #4695. Both paragraphs are kept.

How you verified

  • Before the fix (capability line removed, rebased tree): routes acp-grok compaction onto the bridge's /compact turn fails with {"code":"invalid_request","message":"Provider \"acp-grok\" does not support manual context compaction"}: expected 409 to be 200.
  • After the fix: public-thread-compaction.test.ts and first-party-provider-plugins.test.ts pass (2 files, 8 tests).
  • bb-plugin-provider-acp tests pass (68), and @bb/provider-bridge-acp tests pass (348 passed, 4 skipped).
  • pnpm exec turbo run lint typecheck passes for @bb/server, bb-plugin-provider-acp, and @bb/provider-bridge-acp.
  • git diff --check origin/main passes.

Not verified: a live, long Grok Build session compacting end to end. Grok's reply text for failures or "nothing to compact" is untested, so the grok dialect reports any end_turn as completed.

Fixes #4378

AGENT GENERATED

🤖 Generated with Claude Code

@SawyerHood
SawyerHood merged commit bb96a37 into main Oct 5, 2026
34 checks passed
@SawyerHood
SawyerHood deleted the slopcop/issue-4378 branch October 5, 2026 18:54
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.

acp-grok: enable manual compaction; Grok Build handles /compact over ACP

1 participant