Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): idle agent tabs free a slot when the server's 32-tab browser limit is full #24186

Mergedshivamhwp(GitHub profile, opens in a new tab)merged 9 commits intomain fromrefs/pull/24186/headmerged by shivamhwp(GitHub profile, opens in a new tab) View on GitHub

Showing 13 changed files with 50 additions and 0 deletions (loading 10).

x
0 of 13 viewed, 13 left
11 additions and 0 deletionsapps/desktop/src/ipc/methods/preview.tsModified
View file
@@ -9,6 +9,7 @@
DesktopPreviewRegisterWebviewInputSchema,
DesktopPreviewScreenshotArtifactSchema,
DesktopPreviewSetAudioMutedInputSchema,
+ DesktopPreviewSetShownInputSchema,
DesktopPreviewSetColorSchemeInputSchema,
DesktopPreviewSetZoomFactorInputSchema,
BrowserImportResult,
@@ -193,6 +194,15 @@
yield* manager.setAudioMuted(tabId, audioMuted);
}),
});
+const setShown = DesktopIpc.makeIpcMethod({
+ channel: IpcChannels.PREVIEW_SET_SHOWN_CHANNEL,
+ payload: DesktopPreviewSetShownInputSchema,
+ result: Schema.Void,
+ handler: Effect.fn("desktop.ipc.preview.setShown")(function* ({ tabId, shown }) {
+ const manager = yield* PreviewManager.PreviewManager;
+ yield* manager.setShown(tabId, shown);
+ }),
+});
const openDevTools = tabMethod(
IpcChannels.PREVIEW_OPEN_DEVTOOLS_CHANNEL,
"desktop.ipc.preview.openDevTools",
@@ -432,6 +442,7 @@
setColorScheme,
setZoomFactor,
setAudioMuted,