Repository navigation
Enable manual compaction for built-in Grok ACP provider - #4386
Merged
Merged
Conversation
2 tasks done
SawyerHood
force-pushed
the
slopcop/issue-4378
branch
from
October 5, 2026 18:21
26170f7 to
b09ccc9
Compare
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 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
/compactas asession/promptfor every ACP agent and treatsend_turnas completed for thegrokdialect, 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
routes acp-grok compaction onto the bridge's /compact turnfails with{"code":"invalid_request","message":"Provider \"acp-grok\" does not support manual context compaction"}: expected 409 to be 200.public-thread-compaction.test.tsandfirst-party-provider-plugins.test.tspass (2 files, 8 tests).bb-plugin-provider-acptests pass (68), and@bb/provider-bridge-acptests pass (348 passed, 4 skipped).pnpm exec turbo run lint typecheckpasses for@bb/server,bb-plugin-provider-acp, and@bb/provider-bridge-acp.git diff --check origin/mainpasses.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
grokdialect reports anyend_turnas completed.Fixes #4378
🤖 Generated with Claude Code