Skip to content

fix(sftp): keep the panel file manager bound to its asset - #1734

Merged
ZhaoJiSen merged 1 commit into
devfrom
pr@dev@perf_sftp_panel_session_cache
Sep 23, 2026
Merged

ZhaoJiSen merged 1 commit into
devfrom
pr@dev@perf_sftp_panel_session_cache

Conversation

@fit2bot

@fit2bot fit2bot commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

fix(sftp): keep the panel file manager bound to its asset The cached SFTP surface was keyed by the SSH session id, so any transient session-detail refresh made the entry look like a different pane. The surface unmounted, its websocket dropped, and an in-flight transfer failed with an unavailable endpoint. Key the cache by pane, asset, and account instead. The koko session id now only gates creating a surface, never keeping one, so the file manager survives collapsing the sidebar, switching the right-panel tab, and session-detail churn. A surface is still rebuilt when the pane closes or the asset/account actually changes.

The cached SFTP surface was keyed by the SSH session id, so any
transient session-detail refresh made the entry look like a different
pane. The surface unmounted, its websocket dropped, and an in-flight
transfer failed with an unavailable endpoint.

Key the cache by pane, asset, and account instead. The koko session id
now only gates creating a surface, never keeping one, so the file
manager survives collapsing the sidebar, switching the right-panel tab,
and session-detail churn. A surface is still rebuilt when the pane
closes or the asset/account actually changes.
@fit2bot
fit2bot requested a review from a team September 23, 2026 08:48
@ZhaoJiSen
ZhaoJiSen merged commit f22889e into dev Sep 23, 2026
11 of 14 checks passed
@ZhaoJiSen
ZhaoJiSen deleted the pr@dev@perf_sftp_panel_session_cache branch September 23, 2026 08:48
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants