mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
Fixes
This commit is contained in:
@@ -1467,7 +1467,7 @@ export class Cline {
|
|||||||
formatResponse.toolResult(
|
formatResponse.toolResult(
|
||||||
`The browser action has been executed. The console logs and screenshot have been captured for your analysis.\n\nConsole logs:\n${
|
`The browser action has been executed. The console logs and screenshot have been captured for your analysis.\n\nConsole logs:\n${
|
||||||
browserActionResult.logs || "(No new logs)"
|
browserActionResult.logs || "(No new logs)"
|
||||||
}\n\n(Remember: if you need to proceed to using non-\`browser_action\` tools, you must first close the browser.)`,
|
}\n\n(REMEMBER: if you need to proceed to using non-\`browser_action\` tools or launch a new browser, you MUST first close this browser.)`,
|
||||||
browserActionResult.screenshot ? [browserActionResult.screenshot] : []
|
browserActionResult.screenshot ? [browserActionResult.screenshot] : []
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -172,8 +172,8 @@ export class BrowserSession {
|
|||||||
|
|
||||||
// page.goto { waitUntil: "networkidle0" } may not ever resolve, and not waiting could return page content too early before js has loaded
|
// page.goto { waitUntil: "networkidle0" } may not ever resolve, and not waiting could return page content too early before js has loaded
|
||||||
// https://stackoverflow.com/questions/52497252/puppeteer-wait-until-page-is-completely-loaded/61304202#61304202
|
// https://stackoverflow.com/questions/52497252/puppeteer-wait-until-page-is-completely-loaded/61304202#61304202
|
||||||
private async waitTillHTMLStable(page: Page, timeout = 5_000) {
|
private async waitTillHTMLStable(page: Page, timeout = 4_000) {
|
||||||
const checkDurationMsecs = 500 // 1000
|
const checkDurationMsecs = 400 // 1000
|
||||||
const maxChecks = timeout / checkDurationMsecs
|
const maxChecks = timeout / checkDurationMsecs
|
||||||
let lastHTMLSize = 0
|
let lastHTMLSize = 0
|
||||||
let checkCounts = 1
|
let checkCounts = 1
|
||||||
|
|||||||
@@ -494,7 +494,7 @@ const BrowserActionBox = ({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<div style={{ padding: "15px 0 0 0" }}>
|
<div style={{ padding: "10px 0 0 0" }}>
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
borderRadius: 3,
|
borderRadius: 3,
|
||||||
|
|||||||
Reference in New Issue
Block a user