Repository navigation
Conversation
Agents can now publish an HTML answer ({title, html, width}) alongside native
documents. It renders like bb's inline-vis previews, in a sandbox="allow-scripts"
opaque-origin frame, but chromeless inside a bb card that sizes itself to the
content. A shared kit supplies bb's theme tokens, Inter, a few controls, and a
window.answer bridge that saves state per answer and follows theme changes.
The five demos/ answers redraw the GPT-6 launch cards: bike assembly with an
exploded schematic, a MapLibre San Francisco route with photos, a wall-color
preview, a 12-step origami fox, and a container-garden plan. They replace the
low-fidelity diagram examples.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… the network Co-Authored-By: Claude Opus 5.5 <[email protected]>
Measured our five cards against the GPT-6 launch frames and turned the gaps into rules: card anatomy, a fixed type scale with three ink levels, spacing and radii, visual-choice tiles, illustration and photo/map guidance, motion timings, and a render-and-check step before publishing. The kit gains the matching tokens (--ia-ink/body/meta, --ia-stage, --ia-hairline) and classes (.ia-h, .ia-item-title, .ia-body, .ia-meta, .ia-stage, .ia-photos), pads .ia-panel, and lets .ia-btn-primary stand alone. Cards get a 24px radius. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…id out Co-Authored-By: Claude Opus 5.5 <[email protected]>
demos/room-3d.html renders the wall-color preview as a Three.js scene inside the sandboxed answer: CC0 Poly Haven furniture and textures, sun and window light with soft shadows, GTAO, gentle bloom, a depth-of-field toggle, and Afternoon/Golden/Blue/Night presets in frosted-glass controls. The skill and guide now describe when to use 3D, the rendering and lighting recipe, asset sources and their gotchas, a per-preset check list, and what cannot be matched without scene-specific Blender assets. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Measured from the thread click, answer frames size in 0.2–0.4 s, but the cards' own entrances ran 1.3–2.7 s (garden also waited up to 1.2 s for photos before starting), and the 3D room hid behind a shimmer until all 49 assets had downloaded (~1.6 s). The kit entrance is now 380 ms with a 45 ms stagger, each demo's entrance sequence is roughly halved, garden starts without waiting for photos, and the 3D room draws its shell on the first frame while furniture and textures fade in as they arrive (ready at ~0.5 s). The skill states the timing budget. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e app The bb mobile app wraps the web app in a WebView that only allows frame navigations to the bb server, so srcdoc answers (about:srcdoc) were blocked and stayed blank. HTML answers now load from GET /api/v1/plugins/ interactive-answers/http/frame, scoped to the thread. The response carries Content-Security-Policy: sandbox allow-scripts, so the page keeps an opaque origin even if the URL is opened directly. Saved state and theme travel in the URL fragment, which never reaches the server. Co-Authored-By: Claude Opus 5.5 <[email protected]>
iOS mutes Web Audio in silent mode. The frame bridge now wraps AudioContext so starting audio (always from a tap) sets navigator.audioSession to playback, and on older iOS starts a silent looping clip, which puts the page in a playback session. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Answer state now lives on the bb server instead of each browser, so inputs follow the user across devices, open copies update live, and the agent can see them. New CLI commands: `state` (read or --set), `watch` (event log as JSON lines, long-polls with --wait), `actions` (open copies and what they expose), and `do` (run an action in the most recently used open copy and print its result). HTML answers get window.answer.onState, expose, and emit; native documents expose `set` and `reset`. The card shows "Agent · <action>" whenever the agent acts. State saved in this browser by earlier versions is carried over once. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
window.answer.send(label, data), called from a click, saves the data with the answer and attaches it to the user's next message as a composer pill. A mention provider resolves the pill at send time, so the agent receives the data together with what the user asked for. Instruments use it for Record and Send to agent instead of watching for pauses. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Theme plugins change bb's palette by replacing a stylesheet rather than a root attribute, so open HTML answers kept the old colors. Watch head style changes and the color scheme too, and post a theme only when it changed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The fidelity rules live in the skill, so the plugin no longer ships example answers. The 3D tier now describes lighting and structure for products and sites as well as rooms. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The frame route always passed null state into the bridge, so remove that parameter and the escaping and test that only guarded it. Drop the browser-state migration from pre-release builds, unused exports and defaults, and the orphaned footer style. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner
Author
|
Superseded by get-bb/bb#5293, which ships Interactive Answers as a bundled bb plugin that is not installed by default (install from Plugins or
|
Attachments a user sends from an answer were stored in the capped activity log, so a pill could expire before its message was sent. Exclude them from pruning. The agent indicator floated over the bottom-right of the card and covered controls. It is now a tag on the card's top edge, in space the card reserves, with an outline around the whole card, and it names what the agent did, for example "Agent · set people". Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner
Author
|
Closing as superseded by get-bb/bb#5293, which ships Interactive Answers as a bundled bb plugin and already includes everything from this branch (through 7047727). Per brsbl, it ships bundled-only, so there is no community marketplace listing. |
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.
Agents can answer inside bb messages with interactive interfaces: native calculators and charts, or sandboxed HTML answers such as illustrated assembly guides, maps with photos, and visual previews. Interacting updates the answer immediately, without another agent turn.
sandbox="allow-scripts"opaque-origin frame. The card sizes itself to its content, follows bb's light and dark theme tokens and Inter type, re-themes live when you switch themes, and opens web links in a new tab only after a click.bb interactive-answers state,watch,actions, anddo; the card shows "Agent · " whenever they act. An answer can also attach data to your next message as a pill (window.answer.send), such as a phrase recorded on a synth, and the agent receives it marked as untrusted data.Validation
342188e6a: see checks below.Screenshots
Before:
1edbb8e03(merge base on main; the plugin does not exist, so the threads show the unrendered::interactive-answerdirective) · After:342188e6a· Captured at 2× (desktop 2880×1800 for 1440×900 CSS). Mobile is 760×1646 for 390×844 CSS (1.95×): the sandboxed answer frame ignores device-scale emulation, so density comes from page zoom, and bb switches to its desktop layout above 768 device pixels. Same fixtures, routes, theme, and viewport in each pair.Agent indicator
The tag that appears while an agent acts on an answer used to float over the card's bottom-right corner and cover its controls. It now sits on the card's top edge, in space the card reserves, with an outline around the whole card, and names what the agent did. Captured in the isolated dev app at 2×, synth answer, agent running
preset "Big lead".a9106eaa1)70477277f)User QA and code review remain pending; this PR is a draft.
BB-Thread: Interactive Answers plugin
BB-Thread-ID: thr_e8stp72iet
🤖 Generated with Claude Code