mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-07-30 19:34:19 +00:00
## What changed
- Make `/brain` reuse the active Company Brain, switch to a single existing Company Brain, show a picker for multiple choices, or create one only when none exists.
- Wait for active-organization restoration before making that decision.
- Make Company Brain onboarding match organizations by the confirmed company domain and never offer unrelated-domain workspaces.
- Create a new Company Brain when no matching workspace exists and show an actionable workspace-limit toast when creation is blocked.
- Improve the organization picker, loading, and error states.
## Why
The previous flows could use or mutate the currently active normal organization, start research against stale Company Brain metadata, or offer unrelated Company Brain workspaces after a quota failure.
## Impact
Normal organizations are no longer silently converted. Research is scoped to the Company Brain for the confirmed domain, and users receive a clear recovery path when they reach their workspace limit.
This keeps the existing `{ domain }` research API contract; no organization-reconfiguration API is required.
## Validation
- Biome checks passed for all five changed web files
- Targeted web TypeScript diagnostics reported no errors for the changed files
- React Doctor against `origin/main`: no issues found
- `git diff --check`
No test files were added.
|
||
|---|---|---|
| .. | ||
| agent-space.test.ts | ||
| agent-space.ts | ||
| analytics.ts | ||
| billing-utils.ts | ||
| chat-auto-space.ts | ||
| chat-highlight-documents.ts | ||
| chat-memory-tools.test.ts | ||
| chat-memory-tools.ts | ||
| chat-search-memory-results.ts | ||
| chat-space-label.ts | ||
| chat-stream-error.ts | ||
| chat-web-search-tools.ts | ||
| company-brain-entry.ts | ||
| constants.ts | ||
| extract-urls.test.ts | ||
| file-cache.ts | ||
| fonts.ts | ||
| ingest-auto-space.ts | ||
| integration-routes.ts | ||
| mcp-client-setup.ts | ||
| mcp-manual-instructions.ts | ||
| models.tsx | ||
| oauth-plugins.ts | ||
| plugin-catalog.ts | ||
| plugin-document.test.ts | ||
| plugin-document.ts | ||
| plugin-space.ts | ||
| search-params.ts | ||
| source-annotations.test.ts | ||
| source-annotations.ts | ||
| theme-provider.tsx | ||
| url-helpers.test.ts | ||
| url-helpers.ts | ||
| variants.ts | ||
| view-mode-context.tsx | ||