Repository navigation
Plans: adopt bb 0.43.1 metadata pointer, queue-cancel events, and host icons - #61
Merged
Merged
Conversation
Pinned with bb plugin types on bb 0.43.1. Typecheck and tests pass unchanged. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Replace the copied HugeIcons sets with experimental_Icon. lib/host-icon-names.ts is generated from bb desktop-v0.43.1 by scripts/host-icon-names.mjs, so every icon name is checked at compile time and each call still passes a fallback. Keyboard and strikethrough glyphs, which bb does not ship, are registered by the plugin as plans-keyboard and plans-strikethrough. The Comments view icon uses the host MessageSquare. The frontend bundle shrinks from 230 KB to 114 KB. engines.bb is raised to >=0.43.1 for the metadata pointer in the next commit. Co-Authored-By: Claude Fable 5.1 <[email protected]>
…handling
- Submit, update, and approval write { activePlanId, status, version } to the
thread's plugin metadata (plans namespace); deleting a plan moves the pointer
to the newest remaining plan or removes the keys. The database stays
authoritative: bb plans get without an ID resolves the pointer and only
returns the plan when it belongs to the calling thread. Writes are
best-effort and serialized per thread.
- message.cancelled: when the user deletes the plugin's queued row, its batch
becomes a new outbox state 'cancelled', delivery metadata is cleared, nothing
is resent, and the review prompt is restored. Cards show
'Not delivered · cancelled'; a cancelled approval is shown in the footer.
A row cancelled while an append is in flight is no longer treated as
delivered.
- thread.unarchived: clears the unavailable notice and restores the review
hold for an open plan. Feedback dropped at archive time stays dropped.
- Docs: README, PLUGIN_OVERVIEW, and the plan-review skill.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
erwinkn
marked this pull request as ready for review
September 13, 2026 11:36
A message.cancelled for the row send() just created could arrive before deliver() persisted delivery.queuedMessageId; the subscriber's pointer match dropped the event and recovery later reconciled the batch as delivered even though its message was deleted. Sessions now record cancellations that arrive while a send is in flight and settle them when the queued result returns; the subscriber routes every matching-thread cancellation to the session instead of pre-filtering on the persisted pointer. The review prompt is only restored when a cancellation actually applied. Point the icon-name regeneration note at the generator's landing PR until it merges. Addresses Macroscope findings on #61. Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Owner
Author
|
Addressed both findings in fba1db0:
Re-verified live on fba1db0 (plugin reloaded from the worktree): annotation → queued row |
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
- create, update, approve and remove now await the metadata sync so a `bb plans get` issued right after the mutation resolves the fresh pointer instead of reading a stale or absent one. - annotationDeliveryStatus reports only the newest outbox row per annotation, so a cancelled batch superseded by an edited and redelivered annotation no longer keeps the Not-delivered badge. - The per-thread write chain map drops entries once drained, so a long-lived plugin does not accumulate a settled promise per thread. Addresses Macroscope findings on the merged head of #61. 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
Adopts bb 0.43.x capabilities in the
plansplugin (WP0 + WP3 of the approved 0.43 adoption plan):@get-bb/plugin-sdkbumped to 0.4.87;bb plugin typesclean; typecheck + 182 tests pass.experimental_Iconon the host registry.lib/host-icon-names.tsis generated from bbdesktop-v0.43.1byscripts/host-icon-names.mjs; icon names are compile-time checked and every call passes a fallback.plans-keyboardandplans-strikethroughare registered by the plugin since bb does not ship them. Frontend bundle: 230 KB → 114 KB.{ activePlanId, status, version }to the thread'splansmetadata namespace. The database stays authoritative —bb plans getwithout an ID resolves the pointer and only returns the plan when it belongs to the calling thread. Deletes move the pointer to the newest remaining plan or remove the keys. Writes are best-effort and serialized per thread.engines.bbraised to>=0.43.1.cancelled(new outbox state), clears delivery metadata, resends nothing, and restores the review prompt. Cards showNot delivered · cancelled; a cancelled approval showsApproval not delivered · cancelledin the footer.Live verification (bb 0.43.1, plugin running from this worktree)
bb plans submit→thread_plugin_metadatarow for the calling thread:{"activePlanId":"e12d4095…","status":"open","version":1};bb plans getwith no ID resolved the pointer and returned the plan;bb plans update→version:2; a second thread's submit wrote its own row (thr_3tmnkd2672).Review plan: …appears pending on the plan's thread after submit.queued, queue rowqmsg_5fn4d4a3tc.bb thread queue delete→ outbox rowcancelled, delivery cleared, nothing resent, review hold restored (pint_e9rk9ipshm). Panel Comments view shows#1 Comment · Not delivered · cancelled(screenshot).dropped,delivery.notice= "The linked thread is archived or deleted. Feedback was not delivered."bb thread unarchive→ notice cleared, review hold restored (pint_q55hn49pdk), dropped row stays dropped.bb plans review --approvefrom another thread →status:"approved", metadata{"status":"approved","version":2}, hold released, approval event queued for delivery.113290e.Test plan
npm run typecheckclean;npm test182/182;npm run buildcleanbb plans getcancelledstate,Not delivered · cancelledin panel, no resendDraft until Erwin asks for ready.