Skip to content

fix(chat): simplify queue dragging and balance row spacing - #3786

Merged
bobleer merged 2 commits into
openBitFun:mainfrom
bobleer:bob/fix-pending-queue-spacing
Nov 7, 2026
Merged

bobleer merged 2 commits into
openBitFun:mainfrom
bobleer:bob/fix-pending-queue-spacing

Conversation

@bobleer

@bobleer bobleer commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Queued-message drag handles displayed a helper tooltip and reordered messages on Up/Down key presses. Remove the tooltip and arrow-key mutations from desktop, legacy desktop queues, and mobile web; retain pointer dragging and explicit Move up/down menu actions.

Cancellation and lost-capture events now belong to the active drag pointer, so a second touch cannot cancel another pointer’s reorder gesture.

Queue rows also inherited the document's bottom-only li margin. Reset that margin, give rows equal block padding, remove the extra status-only bottom padding, and include the padding in the four-row scroll limit.

Type and Areas

  • Type: bug fix / UI/UX
  • Areas: shared composer UI, Web UI, mobile web, localized accessibility labels

Motivation / Impact

Message content no longer sits against the upper divider while leaving extra space below it. Dragging remains host-authoritative, capability-gated, and cancelled on host revision changes. No persisted shapes, protocol capabilities, or backend behavior change.

Verification

  • pnpm --dir design-system run build:ui — passed.
  • node --test design-system/packages/ui/tests/chat-composer.test.mjs — 11 passed.
  • pnpm --dir src/web-ui exec vitest run src/flow_chat/components/useQueueReorder.test.tsx src/flow_chat/components/HostPendingQueuePanel.test.tsx src/flow_chat/components/PendingQueuePanel.test.tsx — 26 passed, including regressions reproduced before fixing cross-pointer cancellation.
  • pnpm run check:web — passed, including type checking and Appearance/theme gates.
  • pnpm run i18n:audit — passed with zero warnings.
  • pnpm --dir src/mobile-web exec tsc --noEmit — passed.
  • pnpm --dir src/mobile-web run test:host-queue — 24 passed, including pointer reordering, arrow-key pass-through, recovery, capability negotiation, and compact/wide composer layouts.
  • pnpm --dir src/web-ui exec tsc --noEmit — passed after supplying the existing generated API bindings in the isolated checkout.
  • git diff --check — passed.

Reviewer Notes

AI-assisted; automated local testing completed. The mobile layout assertion now checks assistant text against the transcript gutter, matching the existing layout introduced in 20deffeeb; thinking/tool controls retain their separate inset icon column. Product transcript styling is unchanged. DOM and disposable-browser fixtures use simulated host data. Native window appearance and live SSH workspace, Remote Control, Peer Device, and Detached Dispatch scenarios were not exercised.

Checklist

  • This PR is focused and does not include secrets, temporary prompts, generated scratch files, or unrelated artifacts.
  • Relevant verification is recorded above, or skipped checks are explained.
  • User-facing strings, docs, and locales are updated where applicable.

@bobleer
bobleer merged commit 8dd3a8d into openBitFun:main Nov 7, 2026
9 checks passed
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