[Agent Wallet] Browser sign-in loops after Google auth: /end?code=... bounces back to /agentic/login, Authorize / CLI token never shown
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- javascript, node.js
- Domain
- authentication, backend-api-design
Research direction
Start by tracing the browser login callback from /end?code=... through the dashboard session handling and the mm login browser flow in @metamask/agent-wallet 7.3.0. Check how the authorization code and session are carried into /agentic/login, then reproduce the loop with a fresh session. Done means Google sign-in reaches the Authorize prompt and displays the CLI token.
Written by the indexing model from the issue text.
Description
Summary
mm login browser sign-in cannot be completed. After successful Google authentication, the dashboard redirects to https://developer.metamask.io/end?code=... and within a few seconds automatically returns to https://developer.metamask.io/agentic/login (no query parameters). The Authorize screen and the CLI token are never displayed, and no error message is shown. The loop repeats indefinitely.
Environment
- Date/time: 2026-11-08, approx. 16:15–16:24 JST (UTC+9), Japan
- OS: macOS 27.2, Apple Silicon
- CLI:
@metamask/agent-wallet7.3.0 (mm), Node.js v26.12.0 mm doctor: cli 7.3.0, env prod, authenticated: false, initialized: false- Browsers reproduced in (all with cookies enabled):
- Safari
- Google Chrome
- Comet
- An automated Chromium browser (separate machine profile)
Steps to reproduce
- Run
mm login browser --no-waitand open the printed URL
(https://developer.metamask.io/agentic/login?anonymous_id=...&session_id=...).
(Also reproduced with the interactivemm login browserflow.) - Click Continue with Google and complete Google sign-in, including
authenticator-app 2-step verification when prompted. - Select the Google account.
- Observe the redirect to
https://developer.metamask.io/end?code=.... - Within a few seconds the page automatically returns to
https://developer.metamask.io/agentic/loginwith no query parameters. - Repeat from step 2 — the same loop occurs.
Expected behavior
After Google authentication, the dashboard shows the Authorize prompt and then displays a CLI token (cliToken:cliRefreshToken) to paste into the terminal, as documented in the CLI setup guide.
Actual behavior
- Redirect loop between the Google account selection,
/end?code=..., and/agentic/login. - Authorize is never presented; no CLI token is issued.
- No error message, region/availability notice, or console-visible explanation in the UI.
- Google authentication itself succeeds (including 2FA); the failure appears to be in the dashboard's post-auth callback/session handling.
Reproduction details
- Reproduced with 3 fresh login sessions (new
session_ideach time) and in 4 different browsers, including browsers with no extensions and no prior MetaMask state. - Because it reproduces across browsers and fresh sessions on the same account, it does not appear to be a local cookie/extension issue.
- Session IDs and the account email can be provided privately on request (withheld here).
Impact
New users cannot complete Agent Wallet CLI onboarding via Google sign-in at all; mm init and all wallet operations are unreachable.
- Dominant language
- Python
- Stars
- 30
- Forks
- 16
- Avg merge
- 11h 59m
- Merged PRs (30d)
- 5
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MetaMask/agent-skills
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
MetaMask/agent-skills#57 · 1 comment ·
-
GetOpen
Difficulty 5/5 Over a week Newbie friendliness 5/100
MetaMask/agent-skills#62 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
MetaMask/agent-skills#60 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 1/100
MetaMask/agent-skills#50 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
MetaMask/agent-skills#45 ·
All issues in MetaMask/agent-skills
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
btclib-org/btclib#3062 ·
Maintainers usually reply within 1 day
-
area:evals area:infra enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
jse-avl/support-bot#4 · 1 comment ·
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
qte77/agentic-job-offer-to-application-kit#487 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
btclib-org/btclib-wallet#801 · 1 comment ·
Maintainers usually reply within 1 day
-
documentation good first issue
Difficulty 1/5 1-3 hours Newbie friendliness 94/100