You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: add sign-in status to browser agent [DO NOT MERGE] - #625
Merge only after the server-side signInStatus command is live in production.
Description
Expose a bounded signInStatus command for the browser agent after a vault-filled form is submitted. It reports outcome codes without returning page content or unlocking captures. Update the login skill to distinguish a credential rejection or challenge from an inconclusive submission without clearing protection early.
Verification
The command schema and capture gate are covered by the MCP test suite. A test-vault sign-in fixture returned credentials_rejected after a navigation timeout while the same browser session remained open.
Summary by CodeRabbit
New Features
Added a sign-in status check that reports outcomes such as rejected credentials, verification requirements, challenges, or no result.
Documentation
Updated login and registration guidance for handling redirects and in-place updates after submitting an emailed verification code.
Clarified when a fresh snapshot is needed and when captures remain protected during sign-in checks.
Clarified that a redirect or status result alone does not confirm successful sign-in or permit clearing saved credentials.
No actionable comments were generated in the recent review.
Walkthrough
The change adds a typed signInStatus command, permits its use after loadSecret, and updates login and emailed-code instructions to use its outcomes. Tests cover command validation, secret-session behavior, and the revised guidance.
Changes
Sign-in status command
Layer / File(s)
Summary
Command contract and validation src/tools/schemas.ts, src/skills/system-prompt.ts, test/tools/schemas.spec.ts, test/skills/system-prompt.spec.ts
Adds signInStatus with an optional bounded timeout and documents its outcomes and locked captures. Tests check valid and invalid parameters and confirm it is absent from the compliant command surface.
Allows signInStatus after loadSecret and revalidates standalone calls. Tests cover its use after a navigation timeout and reject an unexpected selector.
Login and emailed-code guidance src/skills/autonomous-login.md, src/skills/autonomous-registration.md, test/skills/skills.spec.ts
Updates Submit and emailed-code instructions to use the Submit flow and signInStatus outcomes. The guidance retains separate safe-clear checks, and tests verify the changed requirements.
browserless/browserless-mcp#505: Defines capture-protection clearing semantics that the updated login guidance continues to reference.
browserless/browserless-mcp#470: Changes outcome reporting in the same login skill, which overlaps with the updated sign-in outcome guidance.
Suggested reviewers: xrazik1, xsvfat, andymrtnzp
Merge Risk: Minimal · up to 47fea
This adds a bounded sign-in status check after vault-filled form submission and updates the login guidance to use it. No concrete defect was found in the change. Merge only after the server-side signInStatus command is live, as the author notes.
Pre-merge checks: 3 · 1
Failed checks: 1 inconclusive
Check name
Status
Explanation
Resolution
Description check
The description gives a clear summary of the new bounded signInStatus command and the login skill update. It states a merge precondition and reports test coverage and a manual fixture result. It does …
Add the template sections: Summary (1-3 bullets), Related issues (for example, Refs #625 if applicable), Changes (notable file-level changes such as the schema, agent tool, skill docs, and tests), and Test plan. In the Test plan, check the …
Passed checks: 3 passed
Check name
Status
Explanation
Title check
The title "feat: add sign-in status to browser agent [DO NOT MERGE]" names the main change: a new signInStatus command for the browser agent, which the summary confirms (schema, agent tool, and login …
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "feat: add sign-in status to browser agent [DO NOT MERGE]" names the main change: a new signInStatus command for the browser agent, which the summary confirms (schema, agent tool, and login skill updates). It is a conventional-commit style title. The "[DO NOT MERGE]" tag is a workflow marker rather than a description of the change, and it adds noise. The title is concise and specific enough for a reviewer to identify the primary change.
Full details: Description check
Explanation
The description gives a clear summary of the new bounded signInStatus command and the login skill update. It states a merge precondition and reports test coverage and a manual fixture result. It does not follow the repository template. The Related issues, Changes, and Checklist sections are missing. The Test plan does not use the template checkboxes, and it does not state whether npm test, npm run lint, or npm run coverage passed. Documentation and CHANGELOG updates are not addressed.
Resolution
Add the template sections: Summary (1-3 bullets), Related issues (for example, Refs #625 if applicable), Changes (notable file-level changes such as the schema, agent tool, skill docs, and tests), and Test plan. In the Test plan, check the applicable boxes and state whether npm test, npm run lint, and npm run coverage were run. Describe the manual smoke test against a Browserless token with the command used and the result. Complete the Checklist, including whether documentation was updated and whether new dependencies were introduced. Keep the existing merge precondition note about the server-side signInStatus command going live first.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
A rabbit checks the sign-in trail, While captures stay locked without fail. A timeout brings a status call, Rejected words or challenges fall. Fresh snapshots guide the next right turn, And secrets wait until checks confirm.
Recent review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Team
Run ID: 254e7778-2f15-46b8-badb-b6ec72fb58d5
Commits
Reviewing files that changed from the base of the PR and between 595ab28 and 47fea05.
Files selected for processing: 2
src/skills/autonomous-login.md
test/skills/skills.spec.ts
Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merge only after the server-side
signInStatuscommand is live in production.Description
Expose a bounded
signInStatuscommand for the browser agent after a vault-filled form is submitted. It reports outcome codes without returning page content or unlocking captures. Update the login skill to distinguish a credential rejection or challenge from an inconclusive submission without clearing protection early.Verification
The command schema and capture gate are covered by the MCP test suite. A test-vault sign-in fixture returned
credentials_rejectedafter a navigation timeout while the same browser session remained open.Summary by CodeRabbit