Skip to content

Side chat hides queued messages while a question is pending #2869

Description

@ymichael

Summary

When a side chat has both an unanswered provider question and a queued user message, the UI shows the pending-question card but hides the queued-message UI. The message submission reports Message held until the pending question..., so the held message exists but cannot be reviewed, edited, reordered, sent, or deleted from the side chat. Both the question and queue should remain visible while the composer is unavailable.

Versions and environment

  • bb from source at 278112a313c1cc27dc8a80b3b6c71f560f1b7987
  • bb CLI 0.40.0
  • macOS 26.5.1 (25F80), Node.js 22.23.1
  • Claude Code 2.1.257
  • Source dev server shared through bb Connect; personal workspace

Steps to reproduce

  1. Start the source dev app with scripts/bb-dev-app current, then run eval "$(scripts/bb-dev-app env)".
  2. Start a Claude Code thread, wait for its first response, and open a side chat from that response.
  3. In the side chat, send: Use the AskUserQuestion tool now. Ask exactly: Which release channel should I use? Offer exactly two choices: Stable (recommended), described as Use the production-ready channel.; and Beta, described as Use the preview channel. Do not choose or answer it yourself; wait for my selection.
  4. While the question is pending, submit Please also prepare the release notes after I answer.
  5. Confirm the server state with pnpm bb:dev thread interactions list <side-chat-thread-id> and pnpm bb:dev thread queue list <side-chat-thread-id>.
  6. Inspect the side-chat footer on desktop and at a 390 x 844 mobile viewport.

Expected vs actual

Actual submission feedback: Message held until the pending question...

The CLI confirms both records exist. In the confirmed repro, pint_2ucaa7gzpj is a pending question and qmsg_xdik7jkwfe is waiting for a pending interaction, but only the question card appears in the side-chat footer. Once both surfaces are rendered together, the queue card's composer-attached negative margin also overlaps and clips the top of the question card.

Expected: the queued-message card remains visible above the pending-question card, queue actions stay disabled until the question is answered, and the cards do not overlap. The normal no-interaction composer layout should remain unchanged.

Evidence

  • Main thread: thr_hij9bmi6dc; side chat: thr_8e7sywytkp; pending interaction: pint_2ucaa7gzpj; queued message: qmsg_xdik7jkwfe
  • The side-chat footer uses nullish selection between the interaction and the entire prompt box, so a pending interaction removes the prompt box's queue stack:
    const queuedMessagesStack = useMemo(
    () =>
    queuedMessages.length > 0 ? (
    <QueuedMessagesList
    queuedMessages={queuedMessages}
    resolveMentionLink={resolveMentionLink}
    inlineEditor={inlineEditor}
    sendDisabled={isProvisioning || queuedMessageActionPending}
    actionDisabled={queuedMessageActionPending}
    processingMessageId={processingQueuedMessage?.id ?? null}
    processingAction={processingQueuedMessage?.action ?? null}
    onSendImmediately={handleSendQueuedImmediately}
    onReorder={handleReorderQueuedMessage}
    onSetGroupBoundary={handleSetQueuedMessageGroupBoundary}
    onEdit={beginEditQueuedMessage}
    onDelete={handleDeleteQueuedMessage}
    />
    ) : null,
    [
    beginEditQueuedMessage,
    handleDeleteQueuedMessage,
    handleReorderQueuedMessage,
    handleSendQueuedImmediately,
    handleSetQueuedMessageGroupBoundary,
    inlineEditor,
    isProvisioning,
    processingQueuedMessage?.action,
    processingQueuedMessage?.id,
    queuedMessageActionPending,
    queuedMessages,
    resolveMentionLink,
    ],
    );
    const surfaceClassName =
    surfaceTone === "sidebar" ? "bg-sidebar" : "bg-background";
    const pendingInteractionBanner =
    activePendingInteraction === null ||
    activePendingInteraction.payload.kind === "plugin" ? null : (
    <ThreadPendingInteractionBanner
    interaction={activePendingInteraction}
    threadId={threadId}
    />
    );
    const footer = (
    <div className={cn("relative", surfaceClassName)}>
    <OverflowFade placement="above" tone={surfaceTone} />
    <div className="px-4 pb-4 pt-2">
    {pendingInteractionBanner ?? (
    <FollowUpPromptBox
    attachments={bottomAttachmentsConfig}
    stack={queuedMessagesStack}
    composer={bottomComposerConfig}
    pluginComposerHost={activeBottomPluginComposerHost}
    pluginComposerScope={activeBottomPluginComposerHost?.scope ?? null}
    textEffects={bottomComposerTextEffects}
    environmentSummary={composer.environmentSummary}
    contextWindowUsage={null}
    execution={bottomExecutionConfig}
    permission={bottomPermissionConfig}
    permissionReadOnly={composer.permissionPolicy === "snapshot"}
    typeahead={typeaheadConfig}
    promptActions={promptActions}
    collapseResetKey={surfaceKey}
    focusEndKey={
    composer.focusRequestKey === undefined
    ? composerFocusNonce
    : `${composerFocusNonce}:${composer.focusRequestKey}`
    }
    isPrimaryComposer={false}
    />
    )}
  • The queue card unconditionally uses a negative bottom margin whenever it has no inline editor, assuming it is attached to a composer:
    return (
    <PromptStackCard
    rootRef={surfaceRef}
    ariaLabel="Queued messages"
    style={{ height: surfaceHeight }}
    className={cn(
    "relative z-10 flex min-h-0 flex-col overflow-hidden bg-surface-raised-solid shadow-lift",
    inlineEditor
    ? "mb-0 rounded-xl pb-4"
    : "-mb-5 rounded-xl rounded-b-none border-b-0 pb-3",
    !surfaceDragging &&
    "transition-[height,margin,border-radius,padding] duration-[260ms] ease-[cubic-bezier(0.16,1,0.3,1)] motion-reduce:transition-none",
    )}
  • Live DOM geometry measured a 12 px overlap before the layout correction: the queue card's -mb-5 contributes -20 px against an 8 px stack gap. With standalone queue-card styling the cards have an 8 px gap.

What you ruled out

  • No matching open or closed issue was found for the side-chat pending-question plus queued-message UI.
  • This is not Threads awaiting user interaction are invisible to CLI and block programmatic steering with HTTP 409 #1655: the CLI exposes the pending interaction and queue correctly; the failure is isolated to side-chat rendering.
  • The state was reproduced with real provider interaction and persisted server records, rather than mocked frontend data.
  • Main-thread queue rendering and a side chat with no pending interaction continue to use the normal composer-attached layout.

Suggested priority and effort

High user impact with no in-UI workaround: the app tells users their message was held but conceals the held message and all queue controls. The fix is localized to side-chat composition and queue-card layout.

AGENT GENERATED

Activity

  1. added
    bug
    ask-user-question
    ui
    side-chat
    confirmed-repro
    on Sep 1, 2026
  2. added theissue type on Sep 1, 2026
  3. bb-slop-cop commented on Sep 1, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

  4. added a commit that references this issue on Sep 2, 2026
    e7598f8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ask-user-questionbugconfirmed-reproside-chatui

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions