Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): preview_resize reports measured desktop viewport dimensions #22954

Closedjuliusmarmingewants to merge 2 commits intomain fromfix/issue-22942opened View on GitHub

Showing 5 changed files with 1 addition and 1 deletion (loading 4).

x
0 of 5 viewed, 5 left
1 addition and 1 deletionapps/server/src/mcp/toolkits/preview/tools.tsModified
View file
@@ -109,7 +109,7 @@
const PreviewResizeTool = safeBrowserTool(
Tool.make("preview_resize", {
description:
- "Resize a collaborative browser tab, optionally selected by tabId. Use {mode:'fill'}, {mode:'freeform',width:1024,height:768}, or {mode:'preset',preset:'iphone-12-pro',orientation:'portrait'}. This changes CSS layout breakpoints without changing the desktop browser user agent.",
+ "Resize a collaborative browser tab, optionally selected by tabId. Use {mode:'fill'}, {mode:'freeform',width:1024,height:768}, or {mode:'preset',preset:'iphone-12-pro',orientation:'portrait'}. This changes CSS layout breakpoints without changing the desktop browser user agent. The returned viewport is measured at response time. Desktop sizing applies asynchronously; confirmed:false means the requested fixed size was not observed yet, which can reflect pending application or a size that could not be applied. Call preview_status to recheck the measured viewport rather than repeating resize.",
parameters: PreviewAutomationResizeInput,
success: Schema.Struct({ ...PreviewAutomationResizeResult.fields, ...presentationFields }),
failure: PreviewToolFailure,
apps/server/src/preview/ServerBrowser.test.tsModified
View file
Loading the diff
apps/server/src/preview/ServerBrowser.tsModified
View file
Loading the diff
apps/server/src/preview/ServerBrowserPage.tsModified
View file
Loading the diff
packages/contracts/src/previewAutomation.tsModified
View file
Loading the diff