You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1e192b2
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -657,7 +658,7 @@ export class PreviewAutomationUnavailableError extends Schema.TaggedError<Previe
657
658
},
658
659
){
659
660
overridegetmessage(): string{
660
-
return`MCP credential does not grant the ${this.capability} capability.`;
661
+
return`MCP credential does not grant the ${this.capability} capability: browser preview tools are off for this thread. Do not retry them. To check a page, use a headless browser from the shell, such as Playwright, or curl. The user can turn on "Agent browser access" in Settings; it applies when the agent session next starts.`;
661
662
}
662
663
}
663
664
@@ -722,8 +723,7 @@ export class PreviewAutomationNoAvailableHostError extends Schema.TaggedError<Pr
722
723
},
723
724
){
724
725
overridegetmessage(): string{
725
-
constsummary=`No preview automation host is available for ${this.operation} in environment ${this.environmentId}.`;
726
-
returnsummary;
726
+
return`No preview automation host is available for ${this.operation} in environment ${this.environmentId}. Preview tools run in a T3 Code desktop app that is open and connected to this environment; a headless server has no browser of its own. Do not retry. To check a page, use a headless browser from the shell, such as Playwright, or curl, or ask the user to open this thread in the T3 Code desktop app.`;
727
727
}
728
728
}
729
729
@@ -747,10 +747,9 @@ export class PreviewAutomationTabNotFoundError extends Schema.TaggedError<Previe
747
747
},
748
748
){
749
749
overridegetmessage(): string{
750
-
constsummary=this.tabId
751
-
? `Preview tab ${this.tabId} was not found for ${this.operation}.`
752
-
: `No active preview tab was found for ${this.operation}.`;
753
-
returnsummary;
750
+
returnthis.tabId
751
+
? `Preview tab ${this.tabId} was not found for ${this.operation}. Omit tabId to use the current tab, or call preview_open.`
752
+
: `No active preview tab was found for ${this.operation}. Call preview_open first.`;
0 commit comments