fix(electrobun): remove double subscribe — CreateSession already auto-subscribes

This commit is contained in:
Hibryda 2026-03-20 03:37:21 +01:00
parent 621e1c5c8c
commit 05b3093945
2 changed files with 2 additions and 2 deletions

View file

@ -231895,7 +231895,6 @@ var rpc = BrowserView.defineRPC({
}
try {
ptyClient.createSession({ id: sessionId, cols, rows, cwd });
ptyClient.subscribe(sessionId);
return { ok: true };
} catch (err) {
const error2 = err instanceof Error ? err.message : String(err);

View file

@ -54,7 +54,8 @@ const rpc = BrowserView.defineRPC<PtyRPCSchema>({
}
try {
ptyClient.createSession({ id: sessionId, cols, rows, cwd });
ptyClient.subscribe(sessionId);
// Don't call subscribe() — CreateSession already auto-subscribes
// the creating client and starts a fanout task.
return { ok: true };
} catch (err) {
const error = err instanceof Error ? err.message : String(err);