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 b1b659a
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(preview): server browser tabs and HTML renders share one headless browser
A host that used both downloaded two Chromiums: the server browser's
Sparticuz pack plus fonts, and the HTML renderer's pinned Chrome for Testing
headless shell. PreviewBrowser now lives in preview/ and is provided once in
server.ts, so ServerBrowser and the HTML toolkit run the same install. Its
messages no longer name html_preview, since agents reach it from either
feature. ServerBrowserToolchain and its system-browser discovery are gone.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@@ -113,7 +114,7 @@ export class PreviewBrowserInstallingError extends Schema.TaggedError<PreviewBro
113
114
constprogress=this.unpacking
114
115
? "unpacking"
115
116
: `${megabytes(this.downloadedBytes)} of ${megabytes(this.totalBytes)} MB downloaded`;
116
-
return`T3 is installing its HTML preview browser (${progress}). Call html_preview again in a minute.`;
117
+
return`T3 is installing its headless browser (${progress}). Try again in a minute.`;
117
118
}
118
119
}
119
120
@@ -122,7 +123,7 @@ export class PreviewBrowserUnsupportedError extends Schema.TaggedError<PreviewBr
122
123
{platform: Schema.String,arch: Schema.String},
123
124
){
124
125
overridegetmessage(): string{
125
-
return`HTML previews are not available on ${this.platform}-${this.arch}: Chrome for Testing has no headless shell for it. html_render still works without a preview.`;
126
+
return`T3's headless browser is not available on ${this.platform}-${this.arch}: Chrome for Testing has no headless shell for it.`;
126
127
}
127
128
}
128
129
@@ -141,7 +142,7 @@ export class PreviewBrowser extends Context.Service<
141
142
/** The installed headless shell, if any. Never starts or waits on an install. */
0 commit comments