Repository navigation
fix(acp): new-file kinds, steered-away commands, retired plugin leftovers - #5817
Merged
Merged
Conversation
…vers Three small issues found while driving Cursor and OpenCode through the rebuilt ACP adapter. - New files showed as edits. Cursor marks a created file with the diff `oldText: "-- /dev/null"` and a `++ b/<path>` header line in `newText`; bb took both as content. OpenCode's write tool sends no diff, and sends its tool events only after the write, so existence cannot be read from them. The bridge now reads the /dev/null form as a new file and drops the header; for an edit with no diff it reports `add` when the file's creation time is after the turn started and the turn has not touched it before (unknown where the filesystem has no creation time, which keeps `update`). - A command running when a steer cancelled the prompt was closed as `completed` when the turn later finished, because Cursor never closes a tool call on cancel. The bridge now emits `acp/prompt/interrupted` when a cancelled prompt hands over to a queued steer, and the translator closes that prompt's open tool calls as `interrupted`. The acp-cursor/steer parity lane is rerecorded; its only change is that close. - Retiring bb--provider-acp-next left its registry cache in plugin storage and links to /settings/plugins/bb--provider-acp-next pointing nowhere. The handover now deletes a retired plugin's storage, and the app redirects any path segment naming a retired plugin to its successor. The retired list lives in @bb/domain (RETIRED_PLUGIN_SUCCESSORS) so server and app share it.
ymichael
added a commit
that referenced
this pull request
Oct 20, 2026
## Human comments ## What was wrong #5817 changed `dist/provider-bridge-acp.js` and `dist/provider-bridge-acp-next.js` in `@get-bb/plugin-sdk` but did not bump the SDK version. Main has failed the "Check plugin SDK npm version guard" step since `9e5c8a945d`, and every PR opened since inherits that failure: `0.6.59` is already published, and the package would now differ from it. ## What changed Ran `node scripts/bump-plugin-sdk.mjs --patch`, which moves `packages/plugin-sdk/package.json` and `packages/domain/src/plugin-sdk-version.ts` to `0.6.60` together. ## How you verified `node packages/plugin-sdk/scripts/check-npm-version-guard.mjs` now prints `PASS — @get-bb/[email protected] is not on npm yet`. Before the bump it failed with the two differing files listed above. > AGENT GENERATED Co-authored-by: Claude Opus 5.5 <[email protected]>
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
Three issues found while live-testing #5775 with Cursor and OpenCode.
oldText: "-- /dev/null"and a++ b/<path>header line innewText; bb took both as file content.completed. Cursor never closes a tool call on cancel, so the bridge closed it ascompletedwhen the turn later finished.bb--provider-acp-next(Make the rebuilt ACP adapter the only ACP adapter #5775) left two things behind. Its registry cache stayed in plugin storage, and links to/settings/plugins/bb--provider-acp-nextpointed nowhere.What changed
tool-classification.tsreads the/dev/nulldiff form as a new file and drops the header.birthtimeMs) after the turn started, and not touched earlier in the turn. If so, it reportsadd. Where the filesystem has no creation time, the result is unknown and staysupdate.acp/prompt/interrupted, and the translator closes that prompt's still-open tool calls asinterrupted.acp-cursor/steerparity lane is rerecorded. Its only change is that one command now closesinterruptedwhen the steer happens, instead ofcompletedat turn end.@bb/domain(RETIRED_PLUGIN_SUCCESSORS), shared by server and app.deleteAllPluginKvValues).useRedirectRetiredPluginPaths(mounted inAppLayout) rewrites any path segment naming a retired plugin to its successor.How you verified
/dev/nullform, an update diff, a diff-less write with created true/false/unknown, and a file written twice in a turn (addthenupdate);interrupted(it wascompletedbefore the change);@bb/provider-bridge-acp: 531 passed, 4 skipped;@bb/provider-parity: 59 passed;@bb/domain: 256 passed;@bb/db: 632 passed;@bb/serverand@bb/app;addwith diff--- /dev/null / +++ b/… / +hello cursor;addand a later edit of it in the same turn isupdate;sleep 40records the command asinterrupted.