refactor(web): consume owner remote events directly

This commit is contained in:
imccyu
2026-08-11 19:25:42 +08:00
parent 80f1a064f5
commit e0bbe42242
75 files changed
+353 -350

No files matched your search

@@ -131,7 +131,7 @@ export class CommandService extends Service implements CommandServiceContract {
// registers nothing globally, so the registry-wide signal above never
// fires for it: repull that key alone, soft, so the old snapshot serves
// the menu until the new one lands.
ctx.on('session/preset-changed', (sessionId) => { void this.directory.refresh(sessionId) })
ctx.remote.$on('agent-preset/selected', (sessionId) => { void this.directory.refresh(sessionId) })
ctx.on('connection/reset', () => { this.directory.resetConnected() })
}