mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
hasInitializedRef was set to true before confirming the directory listing request actually succeeded. On page refresh the WebSocket client is still reconnecting, so requestDirectoryListing returned early with "Host is not connected" and the ref stayed true — preventing any retry once the client became available. Fix: make requestDirectoryListing return Promise<boolean> and reset hasInitializedRef on failure so the init effect re-runs automatically when requestDirectoryListing is recreated after the client reconnects. Fixes #441 Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>