Repository navigation
docs(reference): list waitForURL's timeout override and the tab actions in ActionName - #2496
gagarinyury wants to merge 1 commit into
Conversation
…ns in ActionName
browser.waitForURL takes { timeout } (browser.ts accepts it and the
waitForURL section shows it), but the override list left it out and said
no other member takes one. ActionName is RecordedAction's names without
tool, which include switchTab and closeTab; onAction reports them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Change: Other Merge Risk:
|
okwasniewski
left a comment
There was a problem hiding this comment.
Automated review (AI triage pass), not yet read by a maintainer.
Reviewed 4138844d2. Two English reference fixes. Both are correct against the code. No must-fixes.
What I checked:
waitForURLtakes{ timeout }(browser.ts:376, :858) and passes it topollBrowser→deps.deadlineFor(timeout, ...), the same deadline helper the other listed members use. The page's ownwaitForURLexample already passes{ timeout: 15_000 }(web.mdx:623), so "No other member takes an override" was wrong before this PR. After it, the list matches theBrowserinterface:goto,reload,back,forward,waitForURL,waitForResponse,waitForRequest,waitForPopupand the download waits.ActionName = Exclude<RecordedAction['name'], 'tool'>(types.ts:250), andRecordedActionincludesSwitchTabActionandCloseTabAction(trace.ts:404), which the dispatcher emits (action-dispatcher.ts:511). With them added, the documented union (agent.mdx:576) matches the real one name for name.- Both pages still exist on main after #2448. The PR is mergeable and touches no files outside the English docs.
Nits
- web.mdx:545 is a long line that was already over the wrap width. Re-wrapping it to about 80 columns would match the rest of the page. Optional.
For the maintainer
- Fork CI (docs, spec, docs translations, etc.) is awaiting approval. The translated pages keep the old text. Translations are best effort, so that is fine.
What
docs/reference/web.mdx:waitForURLadded to the members that take{ timeout }. The page said no other member takes one, while its ownwaitForURLsection shows the option.docs/reference/agent.mdx:'switchTab' | 'closeTab'added toActionName.Why
browser.waitForURLaccepts{ timeout }(packages/web/src/browser.ts).ActionNameisExclude<RecordedAction['name'], 'tool'>(packages/core/src/types.ts), andRecordedActionhasswitchTabandcloseTab, whichonActionreports. Aswitchwritten from the documented union misses them.How it works
Issue
Docs only.
Verified
Ran it locally: yes.
pnpm docs:checkpasses.Checklist
pnpm changeset) for any change to a published package, or the change is testbed, docs, or CI only.!, the changeset body names what breaks and what replaces it, and the deprecation warning landed a window earlier (stability policy in CONTRIBUTING.md).docs/**/*.mdxpage for the behavior, andskills/e2e/if the skill describes it..d.tsreviewed,tests/types/sdk-types.tsupdated; wire change edits the schema and both fixtures.e2e/engine): changesets fore2e,@e2e-dev/web, and@e2e-dev/mobile.🤖 Generated with Claude Code
Summary by CodeRabbit
switchTabandcloseTabas available agent actions.waitForURLsupports a timeout override capped by the test deadline.