Skip to content

feat: add sign-in status to browser agent [DO NOT MERGE] - #625

Open
artiom wants to merge 3 commits into
mainfrom
feat/sign-in-status
Open

artiom wants to merge 3 commits into
mainfrom
feat/sign-in-status

Conversation

@artiom

@artiom artiom commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

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.

@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

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.
Secret-session checks
src/tools/agent.ts, test/tools/agent.spec.ts
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.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Possibly related PRs

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: Passed 3 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Description check Inconclusive 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 Passed checks: 3 passed

Check name Status Explanation
Title check Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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.

@artiom
artiom marked this pull request as ready for review December 3, 2026 23:47

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 2 potential issues.

Devin Review

Comment thread src/skills/autonomous-login.md Resolved
Comment thread src/skills/autonomous-login.md Resolved
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.

2 participants