Browse Source

Update BrowserSession.ts

One-line change to improve Roo-Cline's eyesight.

Aside: the above improves an AI's vision; the below works for people.  My prescription has gone from -4.50 to -2.50 in a year, and I only do the exercises once a month or so, after the first few weeks of once a day:

https://www.youtube.com/watch?v=7TU7o5E3QuU
LibertyTeeth 1 year ago
parent
commit
72eadedcd4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/services/browser/BrowserSession.ts

+ 1 - 0
src/services/browser/BrowserSession.ts

@@ -134,6 +134,7 @@ export class BrowserSession {
 		let screenshotBase64 = await this.page.screenshot({
 		let screenshotBase64 = await this.page.screenshot({
 			...options,
 			...options,
 			type: "webp",
 			type: "webp",
+			quality: 100, // Set maximum quality to prevent compression artifacts
 		})
 		})
 		let screenshot = `data:image/webp;base64,${screenshotBase64}`
 		let screenshot = `data:image/webp;base64,${screenshotBase64}`