zan-browser 3.0.44 → 3.0.45
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.
|
@@ -158,11 +158,11 @@ class AgentOrchestrator {
|
|
|
158
158
|
seenUrls.add(r.url);
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
-
// Path 3: successful fetch_url in the last
|
|
161
|
+
// Path 3: successful fetch_url in the last 5 steps of a successful run
|
|
162
162
|
// fetch_url bypasses the browser — its results never appear in the interceptor.
|
|
163
163
|
// If the agent succeeded and a recent fetch_url returned data, accept it directly.
|
|
164
164
|
if (agentResult.success) {
|
|
165
|
-
const recentSteps = agentResult.steps.slice(-
|
|
165
|
+
const recentSteps = agentResult.steps.slice(-5);
|
|
166
166
|
for (const step of recentSteps) {
|
|
167
167
|
if (step.toolName === "fetch_url" &&
|
|
168
168
|
step.result.success &&
|