Repository navigation
fix(composer): keep the queued card on the message box, below the skill chips - #77
Merged
Merged
Conversation
…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.
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.
What changed
FrequentSkillChipsnow renders beforeQueuedComposerMessagesinComposer.tsx, not after it. One line moved. The line also moves pastTeamAudienceLabel, 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-3tucks 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: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 hassocratic-tutorenabled. 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/main5e466f7): the card covers the chip's top half.getBoundingClientRect/elementFromPoint, 1280×800After, Simple mode:
After, Advanced mode (same numbers: 8 px gap, 12 px tuck, chip hit at all three points):
After, 390 px frame (phone single-row layout, same numbers):
The transcript text behind the chip in this frame is a separate, existing behaviour described below, not this change.
Also checked after the change:
/socratic-tutorin the draft. The card's Steer, Edit and Delete buttons all take the click.tsc -bpasses, andoxlint --deny-warnings src/components/Composer.tsxis clean.NODE_OPTIONS=--no-experimental-webstorage vitest run src/components/Composer src/components/ComposerQueuedMessages.test.tsonmain32fb531: 12 files, 98 tests pass. Without the flag,ComposerContextMenu.test.tsfails all 15 tests on this Mac's Node v26.10.0 ("localStorage is not available because --localstorage-file was not provided"): Node 26's ownlocalStorageshadows the test environment's. CI andenginesuse Node 24.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-apiand 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:
mb-2);pinOn: [bot.busy, composerDock.pad]inChatView.tsxis 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.