Skip to content

Configurable visible-DOM caps in cua's browser service (re-homed from #113's spec, not in #116) #147

Open

Description

@SSFSKIM

Origin

The own browser service spec (docs/doperpowers/specs/2026-10-13-own-browser-service-design.md, #113) listed "configurable visible-DOM caps" as out of its scope and assigned them to #116. #116's approved design (own REPL host, ported facade, vendor wording verbatim) does not include them, so they are re-homed here.

What

The browser service projects page content for the model under fixed caps inherited from the vendor (visible DOM snapshot size and the serialised projection limits: depth 8, arrays 2,000, keys 200, strings 200,000). Make the visible-DOM caps configurable per call or per session, with the current values as defaults, so a task on a large page can raise them deliberately and a constrained context can lower them.

Constraints

Acceptance

A unit test per cap showing the default, a raised and a lowered value; the #113 corpus at defaults still reports 0 unexpected differences.

Activity

  1. added
    enhancement
    status:deferred
    priority:P3
    on Oct 16, 2026
  2. SSFSKIM commented on Oct 16, 2026

    @SSFSKIM
    OwnerAuthor

    [board] deferred: Re-homed by the session on 2026-10-16: #113's spec assigned it to #116, whose approved design does not include it.

  3. SSFSKIM commented on Oct 23, 2026

    @SSFSKIM
    OwnerAuthor

    2026-10-20 browser comparison evidence: the owner-supplied cua_repl browser field report dated 2026-10-20, Frictions §4, asks for whole-frame observation instead of viewport-only controls. The comparison the owner-supplied Playwright extension-bridge field report dated 2026-10-20, Observation/What worked, found full frame body snapshots useful. No site/account/profile details are needed.

    Confirmed: visible-dom.mjs intentionally clips to the viewport and caps 200 elements/20,000 characters, with bounded child-frame work. This is by design, not proof the DOM reader cached an old render. A configurable broader/bounded observation is a feature request adjacent to this ticket; raising count/character caps alone does not remove viewport clipping. Keep default output unchanged and choose the breadth contract explicitly. Missing eligible custom widgets and pointer interception are a separate actionable-observation investigation; the implementation already includes button/combobox roles and input.mjs already scrolls a known node into view. Recommended P2; do not infer Playwright speed superiority from these non-controlled runs.

    Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpriority:P3status:deferred

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions