@proagentstore/cli 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -774,7 +774,14 @@ export class LocalRunner {
|
|
|
774
774
|
const mcp = await this.getMcp();
|
|
775
775
|
const res = await mcp.callTool("browser_snapshot");
|
|
776
776
|
const full = this.extractSnapshot(mcp.textOf(res));
|
|
777
|
-
|
|
777
|
+
// The brain must see the WHOLE form or it can't finish. Real ATS forms are big
|
|
778
|
+
// (a single Coles step is ~31k chars); the old 16k cap cut the page in half, so
|
|
779
|
+
// the brain never saw the Submit button or the bottom required/EEO fields and
|
|
780
|
+
// scroll-looped hunting for controls that were truncated out of its view. Claude
|
|
781
|
+
// Sonnet's context easily holds a full page per turn (the accumulating action log
|
|
782
|
+
// is what's bounded, not the one-shot snapshot). Keep a generous ceiling only to
|
|
783
|
+
// guard against a pathological megapage.
|
|
784
|
+
const MAX = 60_000;
|
|
778
785
|
const snapshot = full.length > MAX ? `${full.slice(0, MAX)}\n… [snapshot truncated]` : full;
|
|
779
786
|
return {
|
|
780
787
|
url: page.url(),
|