Repository navigation
feat(plugins): support browser annotation context - #3623
Merged
SawyerHood merged 3 commits intoSep 14, 2026
Merged
Conversation
Contributor
|
Thanks @timurkhakhalev for the PR. This repo needs approval before a PR. Join the #contributors channel in Discord (https://discord.gg/kvBU6tJhcJ) and explain what you want to open a PR for and why. A maintainer then adds you to the allow list. This PR now closes on its own. Reopen it or open a new one after approval. |
4 tasks
SawyerHood
force-pushed
the
feat/browser-annotation-context
branch
from
September 14, 2026 20:50
0b1a8b5 to
1716cb3
Compare
Contributor
Author
|
@SawyerHood I updated the PR after your feedback:
The focused API-map test/typecheck passes (73 tests, 3 Turbo tasks). When you have a chance, could you review the current scope and API shape?
|
Collaborator
|
This looks good to me! I can fix the merge conflicts and land! |
SawyerHood
force-pushed
the
feat/browser-annotation-context
branch
from
September 14, 2026 21:38
863b72d to
ac0fc73
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
Plugin mention providers could resolve text context only, so a plugin could not attach per-item screenshots as agent-only inputs. Plugin apps also had no supported slot beside the built-in Browser address bar, which forced Browser-scoped actions into unrelated host UI.
The motivating consumer is Browser Annotate: users select page elements, add comments in trusted BB UI, and send the comments with structured element context and screenshots to the current thread.
Demo:
default.browser-annotate-demo-upload.mp4
What changed
Added
experimental_imagesto mention-provider resolution with bounded validation and conversion into labeled agent image inputs.Added
app.slots.experimental_browserToolbarAction, including tab/thread/URL context, host rendering, responsive layout hints, capability reporting, SDK testing support, API maps, authoring documentation, and audit entries. Bumped@get-bb/plugin-sdkto0.4.93.Keyboard shortcut registration is intentionally outside this PR while Browser plugin shortcuts are considered alongside command palette actions and #3184.
No host-daemon protocol change is required.
Related to #1844 and #3184.
How you verified
After rebasing onto
3262aadccd:0.4.93.Earlier verification:
pnpm exec vitest run apps/server/test/services/plugins/plugin-authoring-docs.test.ts apps/app/src/lib/plugin-app-definition.test.ts packages/plugin-sdk/src/__tests__/public-types.test.ts— 75 passedpnpm exec vitest run apps/server/test/services/plugins/plugin-mention-providers.test.ts— 14 passedpnpm exec turbo run typecheck --filter=@get-bb/plugin-sdk --filter=@bb/app --filter=@bb/server --filter=@bb/plugin-api-map --output-logs=errors-only --summarize=false— 9 tasks passedpnpm exec turbo run test typecheck --filter=@bb/plugin-api-map --output-logs=errors-only— 73 tests and 3 tasks passednode packages/plugin-sdk/scripts/check-npm-version-guard.mjs— 0.4.93 is unpublished and eligible for release