Skip to content

Commit cbcd846

Browse files
authored
fix(app): retry browser pane when server plugins finish loading (#63500)
1 parent df7911a commit cbcd846

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • packages/gui-plugins/src/browser

‎packages/gui-plugins/src/browser/model.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,9 @@ export function createModel(ctx: SetupContext<typeof definition>) {
379379
setState("pages", sessionKey, undefined)
380380
}
381381

382-
// A server whose plugin lacked the browser RPC may have it once its event stream reconnects or a restarted server
383-
// replaces its controller. Leaving the list ends the watch too: its next session asks again.
382+
// A server whose plugin lacked the browser RPC may have it once its plugins finish loading, its event stream
383+
// reconnects, or a restarted server replaces its controller. Leaving the list ends the watch too: its next session
384+
// asks again.
384385
const watchServer = (serverID: string) => {
385386
servers.get(serverID)?.()
386387
const changed = () => queueMicrotask(() => dispatch({ type: "server.changed", serverID }))
@@ -397,6 +398,7 @@ export function createModel(ctx: SetupContext<typeof definition>) {
397398
(data) => {
398399
if (data !== marked) return changed()
399400
onCleanup(data.on("server.connected", changed))
401+
onCleanup(data.on("plugin.updated", changed))
400402
},
401403
{ otherwise: changed },
402404
)

0 commit comments

Comments
 (0)