Skip to content

fix(chrome-extension): keep the dev-server hint to local Cap URLs - #3418

Open
patrickballard wants to merge 1 commit into
CapSoftware:mainfrom
patrickballard:fix/extension-sign-in-message
Open

patrickballard wants to merge 1 commit into
CapSoftware:mainfrom
patrickballard:fix/extension-sign-in-message

Conversation

@patrickballard

@patrickballard patrickballard commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Closes #3417.

When the auth route can't be reached, the popup now says:

Could not reach Cap at https://cap.so. Check your connection and the Cap URL in the extension's options, then try again. (Failed to fetch)

The existing dev-server message stays when the Cap URL is localhost, 127.0.0.1 or [::1], where it's the right advice.

Tests

  • New src/shared/api.test.ts: a production and a self-hosted URL get the new message with the underlying error; a local URL keeps the dev-server hint. The first case fails without the change.
  • bun run --cwd apps/chrome-extension test: 41 passed. typecheck clean. Biome clean.

RetriggerView in GreptileConfidence Score: 5/5

This PR appears safe to merge.

Summary

The extension now gives connection advice when sign-in fails for a remote Cap URL.

  • Failed sign-in checks give local and hosted Cap URLs different advice.

Reviews (1) · Last reviewed commit: "fix(chrome-extension): keep the dev-serv..." · Reviewed by Greptile

A sign-in that couldn't reach the auth route told every user to start the
local web server with bun run dev:extension. Keep that hint for a local
Cap URL, and otherwise ask the user to check their connection and the Cap
URL, with the underlying error.
@vercel

vercel Bot commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
cap-status Skipped Skipped Oct 26, 2026 7:03pm UTC

@vercel
vercel Bot temporarily deployed to Preview – cap-status October 26, 2026 19:03 Inactive

This branch was previously deployed

1 inactive deployment
Preview – cap-status — 6b7cd62d Deployed Oct 26, 2026 by vercel[bot]
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.

Chrome extension: a failed sign-in tells users to start a local dev server

1 participant