<!-- This is an auto-generated description by cubic. -->
## Summary by cubic
Softened the action-loop and page-stagnation nudges to be
awareness-focused, keeping detection thresholds unchanged and removing
directive language.
- **Refactors**
- Reworded loop nudges at 5/8/12 repeats to use “Heads up” and encourage
checking progress.
- Made page-stagnation message gentler and suggest trying a different
element or approach.
- Updated tests to match new phrasing and confirm no “done” or “cannot
be completed” directives.
<sup>Written for commit 3c57cdc756.
Summary will update on new commits.</sup>
<!-- End of auto-generated description by cubic. -->
<!-- This is an auto-generated description by cubic. -->
## Summary by cubic
Increased the default max_steps from 100 to 500 in agent run and
run_sync to allow longer executions by default.
This lets agents complete more complex tasks without needing manual
configuration.
<sup>Written for commit 995cb0176b.
Summary will update on new commits.</sup>
<!-- End of auto-generated description by cubic. -->
The build context on line 27 was set to ../../.. but the script cd's
into docker/ at the start, so only .. is needed to reach the repo root.
Running it as-is would point docker build to the wrong directory and
fail.
Fixes#4011
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Fixed the Docker build context in docker/build-base-images.sh to use ..
instead of ../../.. because the script runs from docker/. This points
builds at the repo root and avoids failures; fixes#4011.
<sup>Written for commit 1d9ae7e8ca.
Summary will update on new commits.</sup>
<!-- End of auto-generated description by cubic. -->
Include in agent context that new tab was opened
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Notify the agent when a click opens a new browser tab so it knows to
switch to it. Addresses #3657 where the agent stayed on the old tab
after actions that opened a new page.
- **Bug Fixes**
- Detect new tabs by comparing tab IDs before and after clicks in
_click_by_coordinate and _click_by_index.
- Append a note to the action memory with the new tab’s short ID,
prompting the agent to switch.
<sup>Written for commit 99be7b1b48.
Summary will update on new commits.</sup>
<!-- End of auto-generated description by cubic. -->
#3063
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Add HarRecordingWatchdog to capture HTTPS network traffic via CDP and
write a HAR 1.2 file on browser shutdown. Auto-attaches when
browser_profile.record_har_path is set and supports configurable content
storage and capture modes.
- **New Features**
- Records HTTPS requests/responses (bodies and request postData) and
saves to browser_profile.record_har_path on stop.
- Supports record_har_content: embed (text or base64), attach (sidecar
dir: <har_stem>_har_parts), or omit.
- Supports record_har_mode: full or minimal (main doc + same-origin
subresources).
- Adds browser/version metadata, page refs, and DOMContentLoaded/load
timings.
- **Migration**
- Set browser_profile.record_har_path to enable.
- Optional: configure record_har_content (embed|attach|omit) and
record_har_mode (full|minimal).
<sup>Written for commit 9d81f64b2e.
Summary will update on new commits.</sup>
<!-- End of auto-generated description by cubic. -->
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Introduce HarRecordingWatchdog to capture HTTPS traffic via CDP and
write a HAR 1.2 file on shutdown, configurable for content storage and
capture scope, and auto-attached to sessions.
>
> - **Watchdogs**:
> - **HarRecordingWatchdog (new)**:
> - Captures HTTPS requests/responses via CDP (`Network`, `Page`) and
writes HAR 1.2 on `BrowserStopEvent`.
> - Configurable: `record_har_content` (embed/attach/omit) with sidecar
dir for attach; `record_har_mode` (full/minimal).
> - Records response bodies, headers, sizes, compression, timings;
includes pages with titles and DOMContentLoaded/load metrics; embeds
browser metadata.
> - **Session Integration**:
> - Import, initialize, and attach `HarRecordingWatchdog` in
`BrowserSession.attach_all_watchdogs()` (auto-enabled when
`record_har_path` is set).
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
b53a593d33. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
<!-- This is an auto-generated description by cubic. -->
## Summary by cubic
Raised loop detection thresholds and expanded the window to reduce false
positives and make nudges less aggressive. Also updated the simple judge
to include today's date so recent timestamps aren’t flagged as
fabricated.
- **Refactors**
- Increased default loop_detection_window from 10 to 20; repetition
thresholds now trigger at 5/8/12, and page stagnation at 5 consecutive
identical pages.
- Improved action hashing: renamed click_element/input_text to
click/input for hashing, scroll hashes include element index, and
wait/done/go_back actions are excluded from loop tracking.
- **Bug Fixes**
- Fewer false-positive loop warnings, especially around waits, terminal
actions, and repeated scrolls.
- Critical loop message no longer instructs calling “done”; it suggests
trying a different approach or reporting progress.
- Judge prompt includes today’s date and clarifies that near-current
timestamps are not fabricated, reducing false failures.
<sup>Written for commit 332694bf1a.
Summary will update on new commits.</sup>
<!-- End of auto-generated description by cubic. -->
<!-- This is an auto-generated description by cubic. -->
## Summary by cubic
Improves text input reliability by auto-fixing concatenated values when
clearing fails and by adding a short delay for JS-driven autocomplete
fields to let suggestions appear.
- **Bug Fixes**
- Auto-retry: if clear=True and readback shows old+new text, set the
value via the element’s native setter and dispatch input/change events
to match the intended text.
- Autocomplete/combobox: detect these fields and wait 400ms after typing
so the dropdown can populate before the next action. Skip delay for
native datalist inputs.
<sup>Written for commit d24dea0aa4.
Summary will update on new commits.</sup>
<!-- End of auto-generated description by cubic. -->
<!-- This is an auto-generated description by cubic. -->
## Summary by cubic
Adds behavioral loop detection to the agent with escalating context
nudges when actions repeat or the page doesn’t change, reducing wasted
steps. Includes normalized action hashing and page fingerprints, with
settings to enable and size the detector.
- **New Features**
- Added ActionLoopDetector with a rolling window to track action
repetition and page stagnation; nudges at 3/5/8 repeats and after 3
stagnant pages.
- Introduced PageFingerprint and normalized action hashing for search,
click, input, navigate, and scroll.
- Integrated into Agent: new settings (loop_detection_window,
loop_detection_enabled), records actions/page state, and injects nudges
into context messages.
- Added comprehensive tests covering hashing, detector behavior, page
stagnation, and agent integration.
<sup>Written for commit bbf3cc0164.
Summary will update on new commits.</sup>
<!-- End of auto-generated description by cubic. -->
Made read_file smarter for PDFs - instead of just reading the first 20
pgs, it reads up to 60k chars and uses IDF scoring to prioritize pgs w
unique content
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Adds read_long_content to quickly find and extract relevant info from
long webpages and files. Also upgrades PDF reading to prioritize
distinctive pages and respect a 60k-char budget with clear page markers.
- **New Features**
- read_long_content: intelligently reads the current page or files,
extracts 3–5 search terms from the goal, and returns only the most
relevant sections (or PDF pages) up to ~50k chars.
- Smarter PDF reading: reads all content when under 60k chars; otherwise
scores pages using IDF, always includes page 1, and adds page markers
plus a truncation note with skipped pages.
- **Bug Fixes**
- Restricted read_long_content file access to whitelisted paths
(available_file_paths or downloaded files) to mitigate injection risks.
- Prevented negative slice indices when fitting the last page into the
remaining char budget and truncated overbudget pages instead of dropping
them.
<sup>Written for commit f9c36f11a4.
Summary will update on new commits.</sup>
<!-- End of auto-generated description by cubic. -->
Resolves 3619. Elements in iframes beyond viewport threshold are
filtered from selector_map, causing agents to scroll excessively and
blindly to find them.
Added hints to the LLM context indicating hidden content:
- "N more interactive elements below - scroll to reveal" when
buttons/inputs are hidden
- "more content below viewport - scroll to reveal" when only
text/content is hidden
The hints also include the locations of each element, mapping distance
directly to the scroll(pages=N) action, allowing the agent to jump
directly to hidden content instead of scrolling incrementally.
Example:
... (3 more elements below - scroll to reveal):
<button> "Target Button Far Down" ~5.3 pages down
<button> "Submit Final Form Button" ~7.3 pages down
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Fixes#3619 by adding iframe hidden content hints in the DOM context so
agents know exactly how far to scroll instead of searching blindly. Also
makes the viewport threshold configurable.
- **New Features**
- Collect hidden interactive elements per iframe and store details (tag,
text, pages down) in hidden_elements_info.
- Serializer adds context lines: "... (N more elements below - scroll to
reveal)" with per-element hints like <tag> "text" ~X pages down, or a
generic "... (more content below viewport - scroll to reveal)" when only
non-interactive content is hidden.
- New viewport_threshold option in DOM service (default 1000px). Set to
None to disable viewport-based filtering.
<sup>Written for commit a511ba2f1e.
Summary will update on new commits.</sup>
<!-- End of auto-generated description by cubic. -->
- restricted read_long_content file access to only paths in available_file_paths or browser_session.download_files to mitigate injection
- made PDF page selection truncate pages that exceed char budget instead of dropping them entirely
- fixed truncation hint in file_system.py to reference read_long_context instead of search_page
Build context was set to ../../.. but the script cd's into docker/ on
line 31, so only .. is needed to reach the repo root. This caused the
build to fail when running from the repo root.
Fixes#4011
fix: add missing newline at end of file
fix: remove accidental heredoc wrapper from build script
<!-- This is an auto-generated description by cubic. -->
## Summary by cubic
Adds a lightweight, always-on judge that validates agent success using
only the task and final response to reduce false positives. The full
judge now logs verdicts without changing success; the simple judge can
override success when requirements aren’t met.
- **New Features**
- Simple judge: text-only check runs at completion and flips success to
failure when the final result doesn’t fully satisfy the task; adds a
brief note to extracted content.
- New SimpleJudgeResult schema and construct_simple_judge_messages
helper.
- **Refactors**
- Full judge no longer overrides success; it attaches verdicts and logs
differences for telemetry comparison.
- Simple judge runs only when the agent self-reports success and ignores
errors to avoid unintended overrides.
<sup>Written for commit da5b4237ba.
Summary will update on new commits.</sup>
<!-- End of auto-generated description by cubic. -->