Repository navigation
Questions: adopt bb 0.43.1 metadata, events, and host icons (WP0 + WP2) - #62
Merged
Merged
Conversation
Synced with bb plugin types against bb 0.43.1. Typecheck and the 106 existing tests pass unchanged. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Replace the copied HugeIcons core map and lazy extended registry with a thin wrapper over experimental_Icon. Names are typed against lib/host-icon-names.ts, generated from bb desktop-v0.43.1 by scripts/host-icon-names.mjs, so an unknown name fails typecheck; every use still passes a fallback. Drops both @hugeicons dependencies. Co-Authored-By: Claude Fable 5.1 <[email protected]>
The Summary tab text now lives in the thread's plugin metadata under
questions.summary as { markdown, updatedAt, version: 1 }, validated on
every read to the 8,000-character bound; malformed or foreign values
count as no summary. Reads try metadata first and fall back to the
pre-metadata summaries table; a write moves the thread over and drops
its legacy row; `bb questions summary backfill [--dry-run]` migrates
the rest once. Rounds, answers, versions, attachments, and submission
receipts stay in the database.
A bb.agents.configure provider keeps the four tools selected and, when
the metadata snapshot holds a summary, adds it to the agent's
instructions framed as the agent's own earlier note, escaped as data,
and clipped to bb's 4,096-character instruction limit. Forks and
handoffs carry no metadata, so they get nothing.
engines.bb moves to >=0.43.1, the first release with the metadata API.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
…oved Submissions record BB's queued-message row id when delivery is queued. On message.cancelled the matching queued submission becomes cancelled with its frozen snapshot kept, and its answers stop counting as submitted unless a newer submission already re-sent them. The panel shows the cancelled attempt with a Resubmit action that restores the frozen answers as drafts and submits the round again; nothing is ever re-sent automatically. Frozen attachments stay attachable afterwards. Co-Authored-By: Claude Fable 5.1 <[email protected]>
An open_holds table records which round's native prompt is open. The marker is written when a wait or hold starts, kept through thread stops, archive interruptions, aborts, and plugin reloads, and cleared only when the round is delivered or the user dismisses the prompt. Archiving an active thread interrupts the pending interaction; on thread.unarchived the marked round's prompt is held open again — never a fresh prompt for every historical round that still lacks answers. A hold that is still alive, a submitted round, and a dismissed prompt all reopen nothing. Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Found while live-verifying questions on 0.43.1: a queue-if-active send that loses the race with a queue-drain turn start 500s, and codex thread/resume accepts but never applies updated developerInstructions. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
The summary rides thread_plugin_metadata for durable storage, but injecting its payload into every turn costs context and only reaches Codex at thread start. The agent can read, set, or clear it on demand through questions_summary, which now returns the current summary when called without arguments. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
erwinkn
marked this pull request as ready for review
September 13, 2026 11:33
#53 landed scripts/host-icon-names.mjs at the repo root; regenerate the plugin's list so --check passes. Same commit, same names — only the provenance label follows the checkout's tag. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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.
Summary
WP0 baseline + WP2 package for plugins/questions on bb 0.43.1 / SDK 0.4.87 (plan "Adopt bb 0.43.x capabilities across the plugins").
engines.bb >= 0.43.1(metadata API required).experimental_Icon; icon names are typed againstlib/host-icon-names.ts, generated fromdesktop-v0.43.1byscripts/host-icon-names.mjs.questions.summary = { markdown, updatedAt, version: 1 }, validated to the 8,000-char bound on every read; malformed or foreign values count as no summary. Dual-read with the legacysummariestable, write-through on set,bb questions summary backfill [--dry-run]migrates the rest once. Rounds, answers, versions, attachments, and submission receipts stay in the database.questions_summarynow reads (no arguments), sets, or clears the summary — the agent's own earlier note that survives compaction. Deliberately not injected into per-turn instructions: the payload would cost context on every turn and only reaches Codex atthread/startanyway (see upstream finding below).message.cancelled. Queued submissions recordqueued_message_id; on the event the matching submission becomescancelledwith its frozen snapshot recoverable and a panel Resubmit action. Never auto-resent.thread.unarchived. Anopen_holdstable records which round's prompt is open (written on wait/hold, cleared on delivery or user dismissal, kept through stops/reloads/archive interruption). On unarchive only that round's prompt reopens — never every historical unanswered round.Test plan
npm run typecheck,npm test(115),npm run buildon the brancha6b2670+README):bb questions summary setwrotethread_plugin_metadata{summary:{markdown,updatedAt,version:1}}with no legacy row;summary showreads it back;backfill --dry-runand real run reported both pre-existing legacy rows failed (threads deleted upstream, HTTP 404) and correctly retained them.questions_summarywith no arguments returns the current markdown, or "No summary recorded" when absent — verified in unit tests (set → read → clear → read).askwrote anopen_holdsrow and a pendingroundinteraction; archiving the active thread interrupted it (Thread stopped by user request) with the marker kept;unarchivecreated exactly one new pending interaction for that sameroundId— no historical rounds re-prompted;interactions responddismissed it and cleared the marker.message.cancelled: with the thread mid-turn, a panel-RPC submit returneddelivery: "queued"and recordedqueued_message_id;bb thread queue deletefired the event → submissioncancelled(frozen snapshot kept,submitted_jsoncleared, draft restored, nothing auto-resent). A manual resubmit queued a fresh message.bb thread deletecascade-verified: pending interactions,open_holds, rounds all cleaned.thread.deleted: deleting a test thread wiped its rounds/answers/open_holds and interrupted its pending interaction.547bf32— Codex'sthread/resumeaccepts but ignores updateddeveloperInstructions, making injection provider-dependent while costing context every turn. Aqueue-if-activesend racing a queue-drain turn start returned HTTP 500 (run.startedonactive); the outbox marked the submissionuncertainwith its frozen snapshot, as designed. Both upstream candidates recorded in README.Generated with Devin