supermemory/apps/browser-extension
MaheshtheDev 3160358bfd fix(extension): resolve sign-in loop and stale spaces (#1016)
## What

Fixes two bugs reported by a customer (Plain T-1289) using the Supermemory browser extension.

### Bug 1 — extension sign-in loop

When a user logs out of the _extension_ but is still authenticated in the _web app_, the extension's Sign-in button opens `/login`, which short-circuited via a bare `router.replace("/")`. That path never carried the `extension-auth-success` flag the dashboard waits on before `postMessage`\-ing the session token to the extension content script — so the extension never received a token and stayed stuck on "Sign in" indefinitely.

Now the already-authenticated redirect carries `?extension-auth-success=true`, matching the existing fresh-login callback behavior (no new token exposure).

### Bug 2 — stale / deleted spaces

The extension's stored default space (`local:sm-default-project`) was only set when none existed, never reconciled. After renaming/deleting spaces in the web app, the popup kept showing save buttons pointing at dead spaces. Now the popup reconciles the stored default against the freshly-fetched live list: resets to the first space if the stored one was deleted, and refreshes the cached copy (label/containerTag) if it was renamed.
2026-05-30 16:38:10 +00:00
..
components feat: fix interaction and improve Design for extension (#679) 2026-01-18 04:06:36 +00:00
entrypoints fix(extension): resolve sign-in loop and stale spaces (#1016) 2026-05-30 16:38:10 +00:00
fonts feat: browser extension 2025-08-28 19:00:59 -07:00
public feat: fix interaction and improve Design for extension (#679) 2026-01-18 04:06:36 +00:00
utils use portless 2026-05-06 22:42:34 -07:00
.env.example extension: updated telemetry and batch upload (#415) 2025-09-08 05:19:10 +00:00
.gitignore feat: browser extension 2025-08-28 19:00:59 -07:00
package.json chore(browser-extension): twitter import modal & package dependencies (#643) 2026-01-02 19:41:40 +00:00
README.md feat: browser extension 2025-08-28 19:00:59 -07:00
tsconfig.json feat: browser extension 2025-08-28 19:00:59 -07:00
wxt.config.ts fix(extension): resolve sign-in loop and stale spaces (#1016) 2026-05-30 16:38:10 +00:00

supermemory Browser Extension