Skip to content

feat(gateway): new conversation panel behind the rail +, attachment controls in the control row, one-row phone bar, per g1 - #157

Merged
InfiniteInsight merged 2 commits into
mainfrom
gateway/175-176-chat-column-fold-and-phone-bar
Oct 28, 2026
Merged

InfiniteInsight merged 2 commits into
mainfrom
gateway/175-176-chat-column-fold-and-phone-bar

Conversation

@InfiniteInsight

@InfiniteInsight InfiniteInsight commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

Closes InfiniteInsight/Qwen-Code-Remote#175
Closes InfiniteInsight/Qwen-Code-Remote#176
Refs InfiniteInsight/Qwen-Code-Remote#151 (its 66px reading is superseded; the 390 band assertion it held is now in P126)

Two commits, one per issue. Everything is in public/index.html plus the verifier. Rebased onto #156 (InfiniteInsight/Qwen-Code-Remote#178, the hermetic viewer harness), whose P127 comes first; this PR's scenarios are P128 to P130.

What moved where

#175 (a): New conversation behind the rail's +. #dir-picker is still the same <details> with every id (#dir-current, #dir-list, #dir-use, #new-session-cwd, #new-session, #dir-recent, #past-filter, #past-list, #past-pager, help text), so no handler changed. It is now hidden at rest, so it costs 0px and draws no summary row, and the rail's + is its only door:

  • + toggles it and carries aria-controls="dir-picker" and aria-expanded. On open, focus moves to the panel's summary. The summary, Escape, or the + again shut it and return focus to the +.
  • When opened it appears where the details was, at the top of the Chat column. It scrolls only if its top is off screen, with a scroll margin below 860px so it never lands under the sticky rail strip.
  • It shuts when startWatch arrives in a different conversation (Use this folder, typed path, past row). A refused create keeps it open.
  • The rail now stays up when there is no folder, showing only its header and +. Before, it disappeared until the first browse succeeded, and that would have taken the panel's only door with it exactly when a failed browse makes the typed path the way in.
  • #past-list gets contain: inline-size. Opening the panel at 390 pushed the page to 940px wide: the nowrap preview lines became the list's min-content, and the phone column shrink-wraps to that. This predates the change, but the panel is now what + opens.

#175 (b): Attach / Files / Artifacts in the control row. One .agroup after auto-send and before the session verbs. Above 860px they read Attach, Files, Artifacts. Below it they are 📎 🗂 📦 at the 44px floor. At every width the full phrase is in both title and aria-label (the label contains the visible word). The #stored / #artifacts boxes stayed where they were, so they open between the field and the row. The composer is now three rows: field, control row, idle row.

#175 (fold): the transcript cap is fitted, not a flat 75vh. With a full transcript, (a) and (b) alone leave the composer 175px, 152px and 356px under the fold (table below). So #transcript now has max-height: var(--tx-cap, 75vh), and fitTranscript() sets --tx-cap to whatever room is left in the viewport after the bands above and below it, bounded to 30vh..75vh.

  • It runs from a ResizeObserver on #pane-chat, the bar and the rail, plus window resize, batched to one frame.
  • It measures from the transcript's edges, never from the transcript's own height, so a resize cannot feed back into the cap.
  • It is still a max-height on a box that sizes to its content, never a flex basis.
  • After a change it calls followIfPinned, so a reader at the end keeps the newest row in view. Without that, the virtualized path left the in-progress tool row hidden under the box at 1280x720.

#176: phone bar. Below 860px:

  • The three .pin-cb boxes are hidden. Above 860px they still pin and unpin.
  • #bar-search shows a magnifier (🔍) instead of ⌘K, with aria-label="Search across sessions".
  • Tab side padding drops to 0.5rem.

The word "search" was the other allowed option, but in this bar's 14.4px system font the four tab words alone are 258px at 390, and the word left no room. Above 860px the bar is unchanged: ⌘K search and the pins.

Measured

The audit's capture frames, with the drawer band drawn as the page draws it. composerUnderFold = #composer bottom minus innerHeight. Before is fork main 9046aa4af2.

viewport composer bottom, before (a)+(b) only, flat 75vh after composerUnderFold before -> after transcript before -> after
1280x720 1000 895 704 280 -> 0 540 -> 349
1280x810 1068 962 794 258 -> 0 608 -> 439
390x844 1342 1200 827 498 -> 0 633 -> 298

(The audit's "137px under at 1280x810" was the prompt's bottom. The composer's own bottom was 258px under.)

Bar at 390: 72px tall on two rows -> 34px on one row, scrollWidth 390 against 390. At 360 it still wraps (66px). No page overflows sideways at any of the three viewports, with the panel open or shut.

Scenarios

Added:

  • P128: the panel is hidden at rest at 1280 and 390, and never heads the column. A real click or Enter on + opens it with focus inside. The summary, Escape and + shut it back to +. Tab reaches Use this folder. At 390 its summary is on top, both at the top of the page and when opened from further down. Nothing overflows at 390, with past rows carrying long previews drawn through the page's own renderer, since the harness root holds no conversations. The + survives a folderless rail.
  • P129: every path, with real input, from behind the +, over folders planted inside the harness root (not the host's $HOME), with the same refusal feat(gateway): qwen-rc attach, a terminal-first conversation the phone can pick up (#194 slice D) #178's P127 keeps if that root is the real ~/.qwen. A recent entry browses. A folder row browses. Typed path and Use this folder both POST the right cwd (answered 403 by a route). A refusal keeps the panel open. A past row resumes and shuts it.
  • P130: Attach / Files / Artifacts are in the control row, as words at 1280 and 44px glyphs at 390, with title and aria-label. The file picker opens, and both lists open and close. The composer is three rows at both widths. composerUnderFold is 0 at 1280x720, 1280x810 and 390x844 with a transcript long enough to fill its box and the band as drawn and filled taller. The transcript stays within 30vh..75vh, the newest row stays on screen, and nothing overflows sideways.

Changed:

Each new leg was seen red, and the page was restored byte-identical after each probe:

  • The pre-change page fails P123, P125, P126, P128, P129 and P130.
  • A flat 75vh cap fails P130 (composerUnderFold is 175 at 1280x720).
  • Dropping the re-pin fails P130 (the newest row goes off screen when the band grows).
  • Hiding the rail without a folder fails P128.
  • Not shutting on arrival fails P129.
  • Removing the containment fails P128 (940px on the host's rows before feat(gateway): qwen-rc attach, a terminal-first conversation the phone can pick up (#194 slice D) #178; 3209px with the planted previews after the rebase).
  • Removing the scroll margin, alone or with the old scroll call, fails P128's summary legs.

Verification

  • Final run on this head (after the rebase onto test(gateway): give the viewer harness its own runtime root #156), ONLY=P27,P31,P123,P124,P125,P126,P127,P128,P129,P130: 10 passed, 0 failed.
  • Before the rebase, on the same page code: P7, P10, P11, P25 and P28 also passed.
  • Earlier in the work, on the same page code: P1, P2, P6, P8, P9, P14, P16, P17, P19, P29, P44, P55, P57, P58, P62, P85, P86, P117 and P119 also passed.
  • npx vitest run src/transcriptModel.test.ts: 60 passed.
  • Not run, per the brief: the full verifier and the full vitest suite. tsc does not cover scripts/.

Judgment calls

  1. The fitted transcript cap goes beyond the two approved levers. It reopens the 2026-10-21 sizing decision that D94 said not to reopen from inside a layout task. Without it, composerUnderFold stays at 175, 152 and 356. On a phone the transcript goes from 633px to 298px. To keep 75vh and accept a scrolling page instead, revert the fitTranscript block and the --tx-cap rule, and the P130 fold legs.
  2. 30vh is the floor below which a tall band (an open list, a card, a pinned pane) pushes the composer down rather than shrinking the transcript further.
  3. The panel opens in the column, where the details was, not as a popover anchored to the +. That keeps the status line visible and needs no positioning code. On desktop the + sits at the foot of the rail while the panel opens at the top of the column.
  4. The rail is shown without a folder (header plus +), reversing its "stay out until there is a folder" rule.
  5. Below 860px the search control is the magnifier, not the word.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DTgCRQUsB4fohqgy3VLgMH

InfiniteInsight and others added 2 commits October 27, 2026 21:38
…old the attachment row into the control row, per g1

InfiniteInsight/Qwen-Code-Remote#175. The Chat column stacked a closed
#dir-picker summary row (a second door beside the rail's +), a status
line, a transcript capped at a flat 75vh, the drawer band and a
four-row composer, so with a full transcript the composer sat 280px
under the fold at 1280x720, 258px at 1280x810 and 498px at 390x844.

- #dir-picker is hidden at rest and opened only by the rail's +, which
  now toggles it and carries aria-controls/aria-expanded. Every id is
  kept, so the browse, recent, typed-path and past-list handlers are
  untouched. Focus moves to its summary on open; the summary, Escape
  and the + shut it and hand focus back to the +; arriving in another
  conversation shuts it. The rail stays up with no folder so the + is
  never gone, and #past-list contains its inline size so the open
  panel no longer pushes a phone page to 940px.
- Attach, Files and Artifacts move into the control row as one group:
  short words above 860px, glyphs at the 44px floor below it, the full
  phrase in title and aria-label at every width.
- The transcript cap is fitted to the room the bands leave (30vh to
  75vh) instead of a flat 75vh, with a re-pin so a reader at the end
  keeps the newest row in view when the box shrinks.

composerUnderFold is now 0 at all three viewports with the drawer band
drawn. Verifier: P128, P129 and P130 added after #178's P127, planting
the past rows and folders they need inside the hermetic harness root;
P125's row order, P126's fold leg (all states, plus 1280x810) and P31's
bounds updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DTgCRQUsB4fohqgy3VLgMH
…pins below 860px, per g1

InfiniteInsight/Qwen-Code-Remote#176. At 390 the four tabs plus three
"Pin to Chat" checkboxes wrapped the bar to two rows (72px against the
sheet's 53px), with Diagnostics and a bare ⌘K alone on the second row,
naming a key a phone does not have.

Below 860px the pins are hidden (13px targets, and pinning into a 390
Chat column is a desktop move; they still pin and unpin above 860px),
the search control shows a magnifier instead of ⌘K, with "Search across
sessions" as its aria-label, and the tabs' side padding drops to 0.5rem.
The word "search" was the other allowed choice, but the four tab words
alone measure 258px at 390 in this bar's 14.4px system font, and the
word left no room. Measured at 390: bar 34px tall, scrollWidth 390.

Verifier: P123 rewritten for the new phone claims (one row, glyph, no
pins, tapping the glyph opens and focuses the search box) and the kept
desktop ones (phrase, three pins that still pin and unpin).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DTgCRQUsB4fohqgy3VLgMH
@InfiniteInsight
InfiniteInsight force-pushed the gateway/175-176-chat-column-fold-and-phone-bar branch from 997760c to 3ffbac5 Compare October 28, 2026 01:39
@InfiniteInsight
InfiniteInsight merged commit 5e46b3d into main Oct 28, 2026
@InfiniteInsight
InfiniteInsight deleted the gateway/175-176-chat-column-fold-and-phone-bar branch October 28, 2026 01:40
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