Skip to content

fix: ignore an answer for a selection the panel has left - #24

Merged
heoblitz merged 2 commits into
toss:mainfrom
wjdtjq6:fix/panel-stale-selection
Oct 15, 2026
Merged

heoblitz merged 2 commits into
toss:mainfrom
wjdtjq6:fix/panel-stale-selection

Conversation

@wjdtjq6

@wjdtjq6 wjdtjq6 commented Oct 13, 2026

Copy link
Copy Markdown

Summary

The Files and Network panels load a row's detail when it is selected and wrote the answer to the pane whenever it came back. Requests to the device overlap, so the answer for a row the user had already left could arrive last and replace what the selected row shows. In Files that puts one file's text under another file's name, where Edit + Save would write it over that file, and Delete acts on the selected path. Files also kept directory listings by path alone, so a listing still on its way when the root was switched landed under the new root.

An answer is now applied only while its row (and root) is still selected, as the Events panel already does in open(); a save or delete that finishes after the selection moved no longer touches the new selection's pane.

Changelog

Fix the Files and Network panels showing a previously selected row's detail under the current one.

Test Plan

  • yarn typecheck, yarn test, node script/check-panel-assets.mjs: passed. Sources/NectoDefaultPlugins/Panels/{files,network-logger} are the rebuilt output of yarn build.
  • Reproduction, from reading the code (the panels have no DOM test harness): in Files, click a large text file and then a small one before the first preview arrives; when the first answer lands last, the pane titled with the second file shows the first file's text.
  • Not verified in the running app.

소정섭 added 2 commits October 13, 2026 22:28
Files and Network load a row's detail when it is selected, and wrote
the answer to the pane whenever it came back. Requests overlap, so the
answer for a row already left could arrive last and replace what the
selected row shows. In Files that put one file's text under another
file's name, where Edit and Save would write it over that file.

An answer is now applied only while its row is still selected, as the
Events panel already does, and a save or delete that finishes after the
selection moved no longer changes the new selection's pane.
Files keeps listings by path alone. One still on its way when the root
was switched landed under the new root, which then listed the old
root's files as its own.
@heoblitz
heoblitz merged commit 9c93180 into toss:main Oct 15, 2026
5 checks passed
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.

2 participants