Skip to content

The side chat resizes by mouse; a picture zooms by pinch; a file opened from the conversation adds a tab - #928

Merged
SSFSKIM merged 9 commits into
masterfrom
ux-wave/resize-pinch
Dec 1, 2026
Merged

SSFSKIM merged 9 commits into
masterfrom
ux-wave/resize-pinch

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Three changes the owner asked for on 2026-12-01, from the running app.

What it does

  • The side chat resizes with the mouse.
    • The floating card is anchored at the bottom right. It resizes from its left edge, its top edge and the corner between them.
    • The edges use the app's Resizer: separator role, arrow steps, Enter to reset. The corner is pointer only.
    • Limits: at least 280 × 200, at most the pane less its insets. The card shrinks with the pane and returns to the chosen size when the pane grows.
    • One size serves every side chat and is kept across launches, under its own layout key btw.size.
    • A double-click on a handle returns to the default. A card nobody has resized looks as before.
    • The card in the right column's foot takes the top edge for its height.
    • A log that was showing the newest answer keeps it in view while the card is resized.
  • A picture zooms with a trackpad pinch.
    • A pinch, or ⌘/Ctrl with the scroll wheel, zooms smoothly around the pointer within the 10% to 1600% range. The % label follows.
    • A gesture never moves against its direction, even from a fit outside that range.
    • A plain scroll still pans. −/+ step to the next stop. Fit and Actual size are unchanged.
    • The window itself never zooms.
    • It covers images and video in file tabs, beside the chat and in artifacts.
  • A file opened from the conversation adds a tab.
    • A person's click on a file in the transcript or in a side chat answer opens a kept tab beside the preview tab, so the earlier tab stays.
    • Unchanged:
      • ⌘-click opens a main tab;
      • a file that already has a tab selects it;
      • the Files tree still uses the preview tab;
      • an open the agent asked for still uses it too.
    • The ruling is recorded as U6b-1 Decision Log 27.

Proof

  • Head 9a802b2bfda5452194f738761ca8595c2393db7e on ux-wave/resize-pinch, holding master 6e1bc8551a3d4746b5cf7885179adc07f801df55.
  • Reviews: two medium rounds and one low round, each round's findings fixed:
    • the pinch direction outside the range;
    • a corner drag writing a side it didn't change;
    • a pointer anchor left behind;
    • the log's place across a resize;
    • a resize before the first stored read.
  • One row went to docs/tech-debt-tracker.md: the pane changing size during a corner drag.
  • Tests: unit tests for the zoom math and wheel handling, the side chat's size store, handles and log, and the tab placement. Each fails without its change. There are e2e cases in e2e:code (a CDP pinch, and a transcript link adding a tab) and e2e:side (a corner and keyboard resize, and the stored size).
  • GitHub at the head: class 1a 46575886022 on hosted Linux (the architect's route while the pool is down), success. Its tree equals the head's. At 1597083cd the same route was green apart from the assistant-ink 5 s timeout the outage rule names.
  • Mac (CI-opt, host lane):
    • e2e:code at ea3ff8217: 60 passed.
    • e2e:side at 1597083cd: 13 passed.
    • Neither was retried. Later commits touch only side/ or merge master's test-only changes.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)

The owner, 2026-12-01: with a file in the session's preview tab, a click on
another file in the transcript replaced it, so the first file's tab was lost.
The transcript's open (`codeTranscriptActions.openFile`: the path link, the
Read and Edit chips, a prompt's anchor chips) now passes `apart`: the tab is
kept and `placeOpen` passes over the preview tab, so it keeps its file. A file
that has a tab is still selected (now kept); ⌘-click, the tree's single and
double click, and an open the agent asked for are as they were.

U6b-1's Decision Log 27 records it. e2e:code's U6b-1 scene reads the link's
kept tab, then a second link's tab added beside the preview.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…nter

The owner, 2026-12-01: the file viewer's image zoomed only by its buttons and
the click toggle. The stage's wheel listener (not passive) now takes a wheel
with ctrlKey or metaKey, which is how Chromium delivers a trackpad pinch, and
scales by e^(-deltaY / 100) per event (one to one with the fingers; a mouse
notch moves at most e^0.5), within the ladder's ends, keeping the point under
the pointer where it was. The label reads the scale live; - and + go on to the
next rung; Fit and Actual size are as before. A plain scroll still pans, and
every other wheel is left alone.

The window takes no pinch: Electron's visual zoom is off unless a page asks
(nothing here calls setVisualZoomLevelLimits), and the app window's
webContents has no zoom-changed handler, so a pinch elsewhere zooms nothing.

It serves every ZoomStage: the image in a file's tab beside the chat, in a
main tab and in the File artifact's view, and a video in the artifact store's
viewer and in a file's frame. e2e:code gains a scene that pinches through
DevTools' synthesizePinchGesture and Ctrl/⌘ wheels, and checks the page's and
the window's zoom stay as they were.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…ery side chat

The owner, 2026-12-01: the side chat over the pane's corner was a fixed 320 px
wide and up to 360 px tall. It is anchored at its bottom right, so it is now
resized from its left edge, its top edge and the corner between them; at the
card column's foot it keeps the column's width and its top edge sets its height
(the cards above give way as the column's list scrolls, so no new layout).

The edges are the app's one Resizer (separators with the pane resizers' 8/32 px
arrows, Home, End, Enter; a captured drag that selects no text); the corner,
two axes and so no separator, is a pointer handle beside them that counts its
drag on the document as Resizer's drags do (dragStarted/dragEnded, exported).
A double-click on any handle, or Enter on an edge, returns the default.

Held to at least 280 x 200 and at most the pane less the corner's insets
(24 px across, 68 px down; the column's half at the foot); the classes' caps
shrink it with its pane, and the size as dragged is kept. Undragged, each side
is as before (320 px; the content's height up to 360).

One size for every side chat, under the layout key `btw.size` (BtwSizeSchema),
read once and written 250 ms after the last change and at unload, as
`summary.sections` is: a key of its own, since a field in `regions` would make
an older build refuse that whole value. e2e:side's case 5 drags the corner
across the transcript, keys an edge, reads the key, and double-clicks back.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…nks kept

1. A pinch from a fit outside the ladder (a large picture fits under 10 %, a
   small one over 1600 %) no longer jumps to the ladder's end against its own
   direction: `pinchedScale` stops only at the end it moves toward, and one
   away from the ladder leaves the scale as it is.
2. The side chat's corner writes only the sides its drag has moved, so a width
   held narrower by a small pane, or a height that is the content's, keeps
   what is stored.
3. The pinch's pointer is dropped with every zoom drawn, one whose events end
   at the scale they began from too (the effect follows the zoom state, not
   the scale), so the next gesture never scrolls toward an old pointer.
4. The side chat's answer links (`answerFiles`, in the card and under a side
   thread) open a kept tab of their own, as the transcript's do; U6b-1's
   Decision Log 27 says so.

Each has a test that fails without its fix.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
1. The corner writes a side only once its drawn size has moved from where
   the drag began, so a slip of the pointer along a side the pane holds at
   its cap (a 700 px width drawn at 476) writes nothing there.
2. As the card is resized, a log at its end stays at its end, the newest
   answer in view; a log scrolled up to an older exchange keeps its place.
3. A change made before the first read of `btw.size` wins for the sides it
   set, and the read gives the others; a reset before the read is an edit of
   both, so the read's size does not replace it.

Each has a test that fails without its fix.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…w logged

Review round 3. The log's at-the-end intent was read from every scroll event,
so in a drag the pin written on one resize, heard after the next shrink had
been laid out, read the shorter viewport and dropped the intent; and a grow's
clamp to the bottom, heard late, made a scrolled-up log jump to the newest
answer on the next shrink. A resize's own scroll events are dispatched in the
frame after it, so every scroll event until a frame has passed since the last
resize now leaves the intent as it was. Two tests, each failing without it,
deliver the scroll events late against a log that clamps as a browser does.

Logged, not fixed: the pane's cap changing during a corner drag reads the
capped side as moved (docs/tech-debt-tracker.md).

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-01T04:43:24.420924Z 9a802b2 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

SSFSKIM added a commit that referenced this pull request Dec 1, 2026
master-first; the tree is 08b69cd's gated tree (hosted Linux class 1a 46578572913, all green) plus master's docs-only #929.

Sminos-Session: master-landing-architect#37052769 (MAWS on macbook)
@SSFSKIM
SSFSKIM merged commit 08b69cd into master Dec 1, 2026
@SSFSKIM

SSFSKIM commented Dec 1, 2026

Copy link
Copy Markdown
Owner Author

Landed on master as 4efa319 (the gated merge 08b69cd, hosted Linux class 1a 46578572913 all green, plus #929's docs).

@SSFSKIM
SSFSKIM deleted the ux-wave/resize-pinch branch December 1, 2026 05:07
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