Skip to content

Move Side Chat message actions out of core - #4698

Merged
ymichael merged 1 commit into
mainfrom
bb/a4-move-side-chat-s-special-cases-out-of-core-thr_5tzkxrtnns
Oct 5, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/a4-move-side-chat-s-special-cases-out-of-core-thr_5tzkxrtnns

Conversation

@ymichael

@ymichael ymichael commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

Core duplicated Side Chat's Send to main action and special full-thread chrome even though the plugin's embedded ThreadChat already supplies the action. Embedded timelines also suppressed slot actions in message rows but leaked them into assistant text-selection menus. Plugins lacked the recorded message sequence needed to use A2's individual-message links reliably for steers.

What changed

  • Remove core Send to main and its hook/prop chain, the side-chat header pill, and the Side chat of composer relationship. Generated handoffs say Message from side chat; the generated-message Forked from path is removed. Full threads use ordinary fork behavior.
  • Honor includePluginMessageActions=false in both selection-menu activation and action collection. Side Chat's existing embedded consumer action remains available, with A3/A2's fitted inline actions and ⋯ ordering preserved. Add to chat stays core.
  • Expose ThreadChatMessageReference.experimental_messageSeq to slot actions, consumer actions, and selections; document it in the Plugin Guide and audit list. Bump Plugin SDK 0.6.21 → 0.6.22. No server/daemon wire change.

Attachment sizes, global Send to main registration, action availability/role/placement fields, and React metadata slots are excluded.

How you verified

Rebased onto main after A2 and portable attachments merged. Only A4 remains; main's final Copy link behavior, portable attachment contract, automation links, and Sent to labels are preserved. Rebased again onto main at c5b97d7 (2026-10-05): main had taken 0.6.20 and 0.6.21, so the SDK is re-bumped to 0.6.22; the Plugin Guide message-actions bullets conflicted with #4611's shorter copy and now use main's wording, extended to say slot actions appear in the main timeline only and that actions receive the message's link sequence.

All affected typechecks/lints passed, along with 105 app, 363 SDK, 20 Side Chat, 75 Plugin Guide, and 22 server documentation tests (585 total):

  • pnpm exec turbo run typecheck lint --filter=@bb/app --filter=@bb/server --filter=@get-bb/plugin-sdk --filter=bb-plugin-side-chat --filter=bb-plugin-plugin-api-docs --concurrency=2
  • pnpm exec turbo run test --filter=@bb/app -- src/components/thread/timeline/ThreadTimelineRows.actions.test.tsx src/components/thread/timeline/MessageActionBar.test.tsx src/components/thread/timeline/GeneratedConversationMessage.test.ts src/components/thread/timeline/GeneratedConversationMessage.test.tsx src/components/thread/timeline/ConversationMessageContent.test.tsx src/components/plugin/docs-anatomy-manifest.test.tsx
  • pnpm exec turbo run test --filter=@get-bb/plugin-sdk --filter=bb-plugin-side-chat --filter=bb-plugin-plugin-api-docs --concurrency=2
  • pnpm exec turbo run test --filter=@bb/server -- test/services/plugins/plugin-authoring-docs.test.ts

The new selection-suppression and recorded-steer-sequence cases failed against the original pre-fix owner and passed with A4.

Final-head live verification used persistent isolated pnpm start:worktree app/server/daemon instances:

  • Matched actual parent/head seeded UI captures reproduce the embedded selection leak and correction; full-thread Send/header/banner cleanup is retained.
  • Real Codex turns through the running BB UI/CLI → server → daemon verified main and Side Chat replies, one Send to main delivery to the correct destination with correct sender identity, and a steer during an active turn.
  • An external disposable observer plugin verified actual slot, main-selection, and separate embedded ThreadChat consumer callbacks. The steer reference keeps recorded sequence 41 separate from fork anchor 42; consumers receive the same message identity. The observer is disabled after QA.
  • Core Add to chat inserts the selected text in the embedded composer. Main selection actions remain. Compact coarse-pointer Chromium retains Copy link/Copy/plugin/Add/Fork controls, with no app-root inert or aria-hidden. Copy link writes the correct #msg=51 URL. No native iOS/Android claim.

Before the latest rebase, the only red check was the SplitWorkspaceRoute bundle budget (0.1 KB over), which also failed on the parent. Main has since raised workspace route budgets by 5% (#4933).

The isolated review fixture remains running locally. Normal BB Connect exposure was rejected by automatic approval review and requires specific destination/payload approval. Reload can temporarily show the existing Agent sender-label fallback until hidden-thread metadata is cached; visiting the source thread restores Message from side chat. This metadata lookup is unchanged by A4.

AGENT GENERATED

@ymichael
ymichael force-pushed the bb/a2-link-to-individual-messages-thr_9347typ82u branch from b30f9d8 to 3603d53 Compare October 2, 2026 18:11
@ymichael
ymichael force-pushed the bb/a4-move-side-chat-s-special-cases-out-of-core-thr_5tzkxrtnns branch from 98ebb58 to 4e9a17f Compare October 2, 2026 18:13
@ymichael
ymichael force-pushed the bb/a2-link-to-individual-messages-thr_9347typ82u branch 2 times, most recently from 9b02ce2 to 02fb7ac Compare October 5, 2026 17:11
Base automatically changed from bb/a2-link-to-individual-messages-thr_9347typ82u to main October 5, 2026 17:30
@ymichael
ymichael force-pushed the bb/a4-move-side-chat-s-special-cases-out-of-core-thr_5tzkxrtnns branch 2 times, most recently from 8d9cab3 to 9738d53 Compare October 5, 2026 23:04
@ymichael
ymichael force-pushed the bb/a4-move-side-chat-s-special-cases-out-of-core-thr_5tzkxrtnns branch from 9738d53 to 9a21b6b Compare October 5, 2026 23:08
@ymichael
ymichael merged commit ef72c90 into main Oct 5, 2026
56 of 61 checks passed
@ymichael
ymichael deleted the bb/a4-move-side-chat-s-special-cases-out-of-core-thr_5tzkxrtnns branch October 5, 2026 23:31
lukes-clanker Bot pushed a commit to banjerluke/bb that referenced this pull request Oct 6, 2026
Message actions, tab pill close buttons, queued message actions, and
selected sidebar row actions stay visible on any coarse-pointer or
non-hover device instead of only on compact viewports. Touch menus also
pass image-only content through to the copy action.

Squashed from feat/tablet-hover-controls (3 commits) while rebasing onto
upstream's message action rework (get-bb#4682, get-bb#4846, get-bb#4698) and queued
message disclosure (get-bb#5015).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant