Repository navigation
fix(chat): simplify queue dragging and balance row spacing - #3786
Merged
Merged
Conversation
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
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
limargin. 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
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