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 — fix(web): open Files tree clicks in the thread you are viewing by saphid · Pull Request #16044 · pingdotgg/t3code

fix(web): open Files tree clicks in the thread you are viewing #16044

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
saphid wants to merge 23 commits into pingdotgg:main from saphid:stack/06a-files-late-actions

Uh oh!

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

Closed

fix(web): open Files tree clicks in the thread you are viewing #16044

Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
920770b
refactor(web): register the Diff side panel
saphid Oct 2, 2026
e1ae808
refactor(web): register the Preview side panel
github-actions[bot] Oct 4, 2026
4851ae8
perf(web): keep the panel host stable across chat view renders
github-actions[bot] Oct 7, 2026
30972c6
fix(web): send a late annotation only to the thread it was picked in
github-actions[bot] Oct 7, 2026
52a78e7
fix(web): lend the annotation sender only after the chat view commits
github-actions[bot] Oct 7, 2026
7be7fb5
refactor(web): move the thread terminal panel and drawer out of ChatView
github-actions[bot] Oct 4, 2026
a0ea164
refactor(web): open the right-panel terminal through the panel host
github-actions[bot] Oct 4, 2026
02d7fe8
fix(web): keep a local-checkout terminal launch off the thread's work…
github-actions[bot] Oct 6, 2026
ca03345
fix(web): keep a terminal the server opened on the checkout off the t…
github-actions[bot] Oct 7, 2026
4b7aa2e
fix(web): keep device results in the thread that started them
github-actions[bot] Oct 4, 2026
a1d256b
refactor(web): open the Device side panel through the panel host
github-actions[bot] Oct 4, 2026
bcb7b41
refactor(web): open the pull request side panels through the panel host
github-actions[bot] Oct 4, 2026
cfd56f6
test(web): build the pull request panel fixture against current main
github-actions[bot] Oct 11, 2026
4a90882
refactor(web): open the Files side panel through the panel host
github-actions[bot] Oct 4, 2026
3fe8920
test(web): stub the server environment atoms in the Files panel test
github-actions[bot] Oct 12, 2026
8cf75b7
fix(web): drop Files actions that settle after leaving the thread
github-actions[bot] Oct 4, 2026
4f15c62
fix(web): open tree clicks in the thread the Files panel shows now
github-actions[bot] Oct 6, 2026
0e86f37
fix(web): keep a Files browser open across composer draft switches
github-actions[bot] Oct 6, 2026
419306d
fix(web): point tree clicks at the new thread as soon as it commits
github-actions[bot] Oct 10, 2026
6b41356
Merge upstream main and drop the stacked layers from this branch
github-actions[bot] Oct 14, 2026
65d281b
fix(web): open Files tree clicks in the thread you are viewing
github-actions[bot] Oct 14, 2026
6055cdc
chore: integrate upstream main for fix(web): open Files tree clicks i…
github-actions[bot] Oct 17, 2026
52b08d8
merge: preserve current-thread Files clicks with updated drag controller
saphid Oct 17, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

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

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

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

Diff view
Diff view
Prev Previous commit
Next Next commit
perf(web): keep the panel host stable across chat view renders
ChatView built a new PanelHost on every render, so every usePanelHost
consumer re-rendered even when no host field changed. Memoize it on its
fields and send annotations through onSendRef so the sender stays stable.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
  • Loading branch information

Uh oh!

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

@github-actions @claude
github-actions[bot] and claude committed Oct 11, 2026
commit 4851ae8c5034aa89f1201917c03b311d764a4581

There are no files selected for viewing

32 changes: 19 additions & 13 deletions 32 apps/web/src/components/ChatView.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -11071,6 +11071,25 @@ export default function ChatView(props: ChatViewProps) {
pendingSidebarFileDrops,
]);

// Memoized so mounted panels re-render only when a host field changes.
const panelHost = useMemo<PanelHost | null>(
() =>
activeThreadRef
? {
threadRef: activeThreadRef,
visible: rightPanelOpen,
composerDraftTarget,
workspaceMutationId,
// PreviewView drops a pick that settles after a thread switch, so the
// latest send only ever receives picks for the thread it belongs to.
sendAnnotation: (annotation, image) => {
void onSendRef.current(undefined, "auto", "foreground", { annotation, image });
},
}
: null,
[activeThreadRef, composerDraftTarget, rightPanelOpen, workspaceMutationId],
);

// Empty state: no active thread
if (!activeThread) {
return <NoActiveThreadState />;
Expand Down Expand Up @@ -11220,19 +11239,6 @@ export default function ChatView(props: ChatViewProps) {
</Suspense>
) : null
) : null;
const panelHost: PanelHost | null = activeThreadRef
? {
threadRef: activeThreadRef,
visible: rightPanelOpen,
composerDraftTarget,
workspaceMutationId,
// PreviewView drops a pick that settles after a thread switch, so this
// render's closure only ever sends for its own thread.
sendAnnotation: (annotation, image) => {
void onSend(undefined, "auto", "foreground", { annotation, image });
},
}
: null;
const rightPanelContent = (
<PanelHostContext value={panelHost}>{rightPanelSurfaceContent}</PanelHostContext>
);
Expand Down
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 01402809 — 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.