GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(web): drag chips, changed files, header tabs and palette threads into the layout by flamboh · Pull Request #37604 · pingdotgg/t3code

Conversation

@flamboh

@flamboh flamboh commented Nov 16, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Note

🤖 Claude Opus 5.5 on behalf of Oliver

Change for the redesign stack, targets layer 6 (#28845).

Stacked on #37421: this branch contains that PR's commits, so review #37421 first; the diff here shrinks to its own change once that one lands.

Important

Needs Maria's review.

Problem

Sidebar thread rows, pane tabs and (with #37421) pull request badges drag into the layout. Many other things that open a chat or a thread's surface on click do not: thread and file chips in the timeline, the changed files card, the chat header's parent-thread tab and hidden "Terminal" chip, thread results in the command palette, and the pull request rows in thread details. Several of them look like tabs, so people try to drag them and nothing happens.

Change

The layout's drag now takes any thread surface (browser, terminal, the hidden thread terminal, a file at a line, a turn's diff at a file, device, side chat, pull request) and opens it on drop with the same store call a click makes. A thread can also start a drag from anywhere, and it still drops on a composer as a mention.

Element Where A drop opens
Thread results Command palette That thread's chat
Thread chips Thread links in agent replies, thread chips on sent messages That thread's chat
Parent-thread tab Chat header of a subagent thread The parent's chat
"Terminal" chip Chat header, while the terminal is hidden The thread's terminal
File chips File links in agent replies, file chips on sent messages A file tab for the file a click opens, at its line
File rows and "Open diff" Timeline "Changed files" card That turn's diff, at that file
Pull request rows Thread details card That pull request's tab

The chip under the pointer shows the icon and title the new tab gets. A drop places only the dragged surface where it lands; if the thread's panel is closed and holds other surfaces, those reopen where a click would put them. A click, a short accidental move, middle and right click, and keyboard activation behave as before. Touch never starts a drag. Anchors that become drag sources no longer start the browser's own link drag, and text is not selected while a chip is dragged out of a reply.

The command palette closes as soon as a drag leaves the press threshold, so the drop zones are free to use. If the drag is cancelled (Escape, or a release over nothing) it stays closed.

Known limits

  • Thread chips inside the composer's prompt editor do not drag. The editor owns pressing and selecting there.
  • File chips and pull request rows drag only when their click opens inside the app.
  • On the macOS desktop app, a file chip for a file on this machine drags into Finder instead (feat(desktop): drag file pills into Finder on macOS #37768). Both drags start with the same gesture, so the layout drag is off wherever the Finder drag is on. On web, on other platforms and for remote environments, file chips drag into the layout.
  • Pointer only. There is no keyboard path, same as the other layout drags.
  • A command palette result drags with the palette's existing chip, which shows a generic thread icon; the tab that opens shows the project's icon.
  • The parent-thread tab has not been seen dragging in a real browser, only in tests: the free replay provider cannot produce a subagent thread.

Note for merging

#37375 also edits ThreadContextChip.tsx, ChatHeader.tsx and DropZones.tsx. Whichever lands second should keep the chip's onClick from #37375 next to this PR's onPointerDown and inPromptEditor, keep #37375's header without the old "+" menu imports while adding this PR's beginLayoutContentDrag and THREAD_TERMINAL_SURFACE_ID imports, and in LayoutDropZones keep both #37375's blank-tab drop check and this PR's useThreadContextDragGhost check for the thread chip.

Evidence

The chip mid-drag for each of the six sources: command palette result, sent thread chip, header terminal, file link, changed file row, and a pull request row in thread details

Checked in a real browser for every source: a plain click and a 3px move still click; Escape or a release outside any zone changes nothing and leaves no chip; a drop opens only the dragged item; dragging out of a reply leaves no text selected; wheel scrolling over chips, file links and changed-file rows still scrolls.

Command palette thread results

Dragging a result closes the palette and opens that thread beside the chat. Dropping a result on a composer still makes a mention.

https://gh-file-drop-api-prod-galwoqjslzlnws6s.oliver-boorstein.workers.dev/f/db359fede559987b/palette-thread.mp4

Thread chips

The thread chip on a sent message, dragged beside the chat. A thread link inside a reply uses the same component; no sample reply with one was available to record.

https://gh-file-drop-api-prod-galwoqjslzlnws6s.oliver-boorstein.workers.dev/f/22fd768227dc035b/thread-chip.mp4

Chat header parent-thread tab and "Terminal" chip

The chip shows when a thread comes back with its terminal hidden: open the terminal, switch to another thread, reload, and open the first thread again. Dragged below the chat, the terminal lands there with its output intact, and keyboard focus goes to it. The parent-thread tab is not recorded: the free replay provider has no subagent threads.

https://gh-file-drop-api-prod-galwoqjslzlnws6s.oliver-boorstein.workers.dev/f/a38e65240c5a22a8/header-terminal-user-path.mp4

File chips

A file link with a line number dragged beside the chat opens the file at that line; a plain click still opens it as before.

A link written relative to a package (cloud/http.ts for packages/app/cloud/http.ts) drops the same file its click finds in the workspace. Checked in a real browser with a file that exists only at the nested path: the drop opens the nested file, and a click afterwards reuses that tab.

https://gh-file-drop-api-prod-galwoqjslzlnws6s.oliver-boorstein.workers.dev/f/ab247e9ae6909bd6/file-chip.mp4

Changed files card

A folder row still only expands and collapses; a file row dropped beside the chat opens that turn's diff at that file; "Open diff" dropped into the tab row lands as a tab.

https://gh-file-drop-api-prod-galwoqjslzlnws6s.oliver-boorstein.workers.dev/f/67cdaf0029ef19e1/changed-files.mp4

Thread details pull request rows

The pull request row dragged into the tab row.

https://gh-file-drop-api-prod-galwoqjslzlnws6s.oliver-boorstein.workers.dev/f/11e1b303186ee806/details-pr-row.mp4

Validation

  • apps/web/src/layout/layoutDrag.test.ts: drops check the store opener and its scope for a file link at the path its click resolves and its line, a turn's diff at its file and the hidden terminal, plus one browser tab for the surfaces that only open. All 4 rows failed before the change. Two more cases cover a drop that waits on a file lookup: it lands in the workspace focused at the drop even if focus moves meanwhile, and does nothing if its target pane closed; both failed before the fix.
  • apps/web/src/layout/SurfaceHost.browser.test.tsx: "only the dragged surface lands at the drop" now also runs for a file. It failed before the change.
  • apps/web/src/components/chat/threadContextDrag.browser.test.tsx: a thread drag started through the layout's drag start still lands on a composer as a mention. It failed before the change.
  • apps/web/src/components/ChatMarkdown.browser.test.tsx: two file link drops whose lookups are pending at once both open their file, and a click meanwhile does not cancel them; a later click still supersedes an earlier click. It failed before the fix.
  • A real-mouse Chromium run (not committed) on the file link, the changed files card and a thread chip: a click and a 3px move still click, a drag opens the file at its line, the turn's diff and the chat in a new pane, no native link drag starts and no text is selected.
  • vp run typecheck in apps/web, and vp run check:changed b03cd7bddfd: format, lint, knip, typecheck, tests and the React compiler check pass.

Made with Claude Opus 5.5 in Claude Code (T3 Code).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XL 500-999 changed lines (additions + deletions). labels Nov 16, 2026
@flamboh
flamboh marked this pull request as ready for review November 16, 2026 10:24
macroscopeapp[bot]
macroscopeapp Bot reviewed Nov 16, 2026
View reviewed changes
Comment thread apps/web/src/layout/layoutDrag.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@macroscopeapp

macroscopeapp Bot commented Nov 16, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 6f28165

Macroscope's review found this PR approvable — Adds drag-and-drop placement of threads, files, diffs, and PR views into workspace panes. Effects are confined to user-initiated navigation and saved layout arrangement, with existing opening preferences preserved.

You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@flamboh
flamboh marked this pull request as draft November 16, 2026 10:29
@flamboh
flamboh marked this pull request as ready for review November 16, 2026 12:19
macroscopeapp[bot]
macroscopeapp Bot reviewed Nov 16, 2026
View reviewed changes

@macroscopeapp macroscopeapp Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All clear

Posted via Macroscope — Effect Service Conventions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
macroscopeapp[bot]
macroscopeapp Bot reviewed Nov 16, 2026
View reviewed changes
Comment thread apps/web/src/layout/layoutDrag.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread apps/web/src/layout/layoutDrag.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@flamboh
flamboh marked this pull request as draft November 16, 2026 12:23
@flamboh
flamboh marked this pull request as ready for review November 16, 2026 12:34
macroscopeapp[bot]
macroscopeapp Bot reviewed Nov 16, 2026
View reviewed changes
Comment thread apps/web/src/layout/SurfaceHost.browser.test.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

macroscopeapp[bot]
macroscopeapp Bot previously approved these changes Nov 16, 2026
View reviewed changes
@macroscopeapp
macroscopeapp Bot dismissed their stale review November 16, 2026 12:39

Dismissing prior approval to re-evaluate 4220cc6

macroscopeapp[bot]
macroscopeapp Bot previously approved these changes Nov 16, 2026
View reviewed changes
@flamboh flamboh mentioned this pull request Nov 16, 2026
feat(web): drag + to place a new tab where you drop it #37766
Merged
@flamboh
flamboh marked this pull request as draft November 16, 2026 21:33
@flamboh
flamboh marked this pull request as ready for review November 16, 2026 22:08
@flamboh
flamboh marked this pull request as draft November 16, 2026 22:13
@flamboh
flamboh marked this pull request as ready for review November 16, 2026 22:26
@flamboh
flamboh marked this pull request as draft November 16, 2026 22:30
@flamboh
flamboh marked this pull request as ready for review November 16, 2026 22:42
maria-rcks and others added 8 commits November 17, 2026 04:31
@maria-rcks
fix(web): carry fading rims onto every raised surface
5949fae
@maria-rcks
fix(web): align flat control fills with the style card
b4a212d
@maria-rcks
fix(web): preserve surface styles through theme overrides and pane tabs
ca0e797
@maria-rcks
fix(web): keep styled action labels at aa contrast
52e9672
@maria-rcks
fix(web): keep styled labels readable in named palettes
1b74d1d
@flamboh @maria-rcks
fix(web): swap sidebar status and hover actions together (pingdotgg#3…
3a66b4f
…1596)
@flamboh @maria-rcks
fix(web): suppress sidebar hover cards while scrolling (pingdotgg#31603)
c461ae7
@flamboh @maria-rcks
fix(web): pull request header stays on one line in narrow panels (pin…
1aace09
…gdotgg#33529)
maria-rcks added 8 commits November 17, 2026 04:33
@maria-rcks
fix(web): the palette's new pane below shows a rows icon
b0c4613
@maria-rcks
fix(web): the palette's move pane up and down get line arrows like le…
776b590
…ft and right
@maria-rcks
fix(web): a ghost tab's italic title no longer clips its last letter
a213846
@maria-rcks
fix(web): settings model pickers match the dropdowns beside them
3090d81
@maria-rcks
fix(web): source control section titles use sentence case like main
9282ec3
@maria-rcks
fix(web): the MCP button matches the pairing link button beside it
cab43cc
@maria-rcks
fix(web): jumping to a settings search result no longer scrolls the d…
a924cc8
…ialog header away
@maria-rcks
refactor(web): theme-only redesign rules use the dark and light variants
3952b4f
Thirteen rules that keyed on a raw :root.dark or :root:not(.dark) now nest
@variant dark or @variant light, with the same specificity and order.
Rules whose dark branch shares declarations with the light, black chrome
scope stay as they are.
@maria-rcks
maria-rcks force-pushed the maria/redesign/6-workspace-panes branch from 7b62013 to 3952b4f Compare November 17, 2026 04:55
@flamboh
flamboh marked this pull request as draft November 17, 2026 04:58
@flamboh
Merge maria/redesign/6-workspace-panes into t3/redesign-drag-pull-req…
3d31b7c
…uests-into-layout
@github-actions github-actions Bot added size:XXL 1,000+ changed lines (additions + deletions). and removed size:XL 500-999 changed lines (additions + deletions). labels Nov 17, 2026
@maria-rcks
maria-rcks force-pushed the maria/redesign/6-workspace-panes branch from 3952b4f to b03cd7b Compare November 17, 2026 05:01
flamboh added 2 commits November 17, 2026 05:05
@flamboh
Merge maria/redesign/6-workspace-panes into t3/redesign-drag-pull-req…
1c43fd0
…uests-into-layout
@flamboh
Merge t3/redesign-drag-pull-requests-into-layout (on maria/redesign/6…
e5c236a
…-workspace-panes) into t3/redesign-drag-more-into-layout
@github-actions github-actions Bot added size:XL 500-999 changed lines (additions + deletions). and removed size:XXL 1,000+ changed lines (additions + deletions). labels Nov 17, 2026
@flamboh
flamboh marked this pull request as ready for review November 17, 2026 05:22
macroscopeapp[bot]
macroscopeapp Bot reviewed Nov 17, 2026
View reviewed changes
Comment thread apps/web/src/components/ChatMarkdown.tsx Resolved

Uh oh!

There was an error while loading. Please reload this page.

@macroscopeapp
macroscopeapp Bot dismissed their stale review November 17, 2026 05:24

Dismissing prior approval to re-evaluate e5c236a

@flamboh
flamboh marked this pull request as draft November 17, 2026 05:26
@flamboh
fix(web): file link drops resolve on their own and no longer cancel c…
6f28165
…licks
@flamboh
flamboh marked this pull request as ready for review November 17, 2026 05:38
@macroscopeapp

This comment has been minimized.

Sign in to view
macroscopeapp[bot]
macroscopeapp Bot approved these changes Nov 17, 2026
View reviewed changes
@maria-rcks
Merge maria/redesign/6-workspace-panes into t3/redesign-drag-more-int…
c3f9eae
…o-layout
@maria-rcks
maria-rcks merged commit a6d78a0 into pingdotgg:maria/redesign/6-workspace-panes Nov 17, 2026
3 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added size:L 100-499 changed lines (additions + deletions). and removed size:XL 500-999 changed lines (additions + deletions). labels Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:L 100-499 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@flamboh @maria-rcks @Entrpi @SunkenInTime
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.