Skip to content

docs(agent-browser): fix RenderMode absent-default (iframe, not ab-screencast) - #337

Open
dormouse-bot wants to merge 1 commit into
mainfrom
docs/rendermode-default-iframe
Open

docs(agent-browser): fix RenderMode absent-default (iframe, not ab-screencast)#337
dormouse-bot wants to merge 1 commit into
mainfrom
docs/rendermode-default-iframe

Conversation

@dormouse-bot

Copy link
Copy Markdown
Collaborator

The RenderMode type docstring claimed a mode-less surface defaults to ab-screencast, but the canonical param resolver resolveRenderMode (browser-surface.ts) returns iframe for any params without a recognized renderMode, and BrowserPanel then mounts IframePanel. So a persisted browser surface with no explicit mode actually reads as an iframe, not a screencast — the comment described the opposite behavior.

This corrects the type-level comment to match the resolver and the spec (docs/specs/dor-browser.md → "Canonical Params"). The separate ScreenSnapshot.renderMode glyph field just below genuinely does default absent → ab-screencast (SurfacePaneHeader.tsx uses s.renderMode ?? 'ab-screencast' for the chip glyph), so I left that comment alone and added a note distinguishing the two defaults to prevent the same confusion recurring.

Found during the nightly rolling survey.

No regression test: this is a comment-only change with no runtime behavior. The behavior it now documents is already covered by the browser-surface resolution path.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying mouseterm with  Cloudflare Pages  Cloudflare Pages

Latest commit: bf36d2b
Status: ✅  Deploy successful!
Preview URL: https://65e348bc.mouseterm.pages.dev
Branch Preview URL: https://docs-rendermode-default-ifra.mouseterm.pages.dev

View logs

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant