Skip to content

fix(composer): keep the queued card on the message box, below the skill chips - #77

Merged
zereight merged 1 commit into
mainfrom
fix/queued-card-over-skill-chips
Dec 1, 2026
Merged

zereight merged 1 commit into
mainfrom
fix/queued-card-over-skill-chips

Conversation

@zereight

@zereight zereight commented Dec 1, 2026 •

Copy link
Copy Markdown
Owner

What changed

FrequentSkillChips now renders before QueuedComposerMessages in Composer.tsx, not after it. One line moved. The line also moves past TeamAudienceLabel, so in a team cloud the chips now sit above that label instead of below it (see Not verified).

Why

#74 put the skill chip row between the queued-message card and the message box. The card is built to sit on the message box: its -mb-3 tucks its bottom 12 px under the box's top edge (6bc3c5d, "attach queued messages above composer"). With the chips in between, that 12 px landed on the chips instead:

  • the card covered the top 12 px of every chip, and a click there hit the card, not the chip;
  • the card floated 24 px above the message box instead of resting on it.

A person reported it with a screenshot of a queued message over /socratic-tutor.

Moving the chips above the card gives the card back its neighbour. Outside team clouds, with nothing queued, the order is the same as in #74 (attachments, chips, message box), so that layout does not change.

How it was verified

Isolated fixture (FAKE_CLAUDE_MODE=hang scripts/control-omb.ts launch), Vite on top of it, the built-in browser. The bot has socratic-tutor enabled. I typed /socratic-tutor 첫 질문 (the turn hangs), then queued a message with ⌘↩.

Before shows the card over the chip. After shows the chip whole, above a card that rests on the message box.

Before (origin/main 5e466f7): the card covers the chip's top half.

before

measured with getBoundingClientRect / elementFromPoint, 1280×800 Before After
card bottom over chip top 12 px overlap 8 px gap
card bottom under message box top -24 px (floating) 12 px (tucked, as designed)
chip hit at top / middle / bottom card / chip / chip chip / chip / chip

After, Simple mode:

after, Simple

After, Advanced mode (same numbers: 8 px gap, 12 px tuck, chip hit at all three points):

after, Advanced

After, 390 px frame (phone single-row layout, same numbers):

after, 390 px

The transcript text behind the chip in this frame is a separate, existing behaviour described below, not this change.

Also checked after the change:

  • A chip click with a message queued puts /socratic-tutor in the draft. The card's Steer, Edit and Delete buttons all take the click.
  • After the turn was released and the queue drained, the chips sit 8 px above the message box, as in feat(composer): show the skills a person types most above the input #74.
  • tsc -b passes, and oxlint --deny-warnings src/components/Composer.tsx is clean.
  • NODE_OPTIONS=--no-experimental-webstorage vitest run src/components/Composer src/components/ComposerQueuedMessages.test.ts on main 32fb531: 12 files, 98 tests pass. Without the flag, ComposerContextMenu.test.ts fails all 15 tests on this Mac's Node v26.10.0 ("localStorage is not available because --localstorage-file was not provided"): Node 26's own localStorage shadows the test environment's. CI and engines use Node 24.
  • This PR's CI was cancelled when it merged (ci-stop-closed.yml), so it has no vitest result. main's own CI has been red since before feat(composer): show the skills a person types most above the input #74, with failures outside the composer (CloudAccountSettings, PlacesRail, thread-capacity-api and others).

Not verified: team audience label (TeamAudienceLabel, team clouds only) and the native phone apps. The order in a team cloud was #74: card, label, chips, message box; now: chips, card, label, message box. The label's description is "By the message box", so it now sits where it says, but this was not checked on screen. The label still sits between the card and the message box, so in a team cloud the card's 12 px lands on it; that came with 5fa3092 (milind-soni#5340, 2026-11-11), before #74, and is unchanged here.

Found while verifying, not changed here

When the dock above the transcript grows after the conversation is shown, the transcript stops following its end. It stays exactly that many pixels short, and the last line slides behind the dock. Measured in the 390 px frame:

  • the chips arriving about 0.9 s after load leave it 36 px short (the row is 28 px plus mb-2);
  • a second queued message growing the card from 53 to 94 px leaves it 41 px short.

pinOn: [bot.busy, composerDock.pad] in ChatView.tsx is meant to re-pin on that change. Why it does not was not traced. Since #74 the chip row appears after the thread is shown, so opening a thread with chips likely takes this path (inferred from the 0.9 s delay; the number of reproductions was not recorded).

Merge danger

Door: two-way. Revert the PR, or move the line back.

Blast radius: the order of two siblings in every composer. No state, route or data changes.

…ll chips

The frequent skill chips (#74) sat between the queued-message card and the message box. The card is built to tuck its bottom 12px under the message box (-mb-3, from 6bc3c5d), so it covered the top of the chips instead and floated 24px above the box. The chips now come before the card, so the card sits on the box again and every point of a chip clicks the chip.
@zereight
zereight merged commit 32fb531 into main Dec 1, 2026
15 of 24 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