Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore: files changed app/src/components/memory/memoryHelpers.test.ts,app/src/components/routing/Brai

Steven Enamakel19b78f8f18c9
diff --git a/app/src/components/memory/memoryHelpers.test.ts b/app/src/components/memory/memoryHelpers.test.ts
index e3b487a677..f53e2d8705 100644
--- a/app/src/components/memory/memoryHelpers.test.ts
+++ b/app/src/components/memory/memoryHelpers.test.ts
@@ -13,9 +13,14 @@ describe('resolveMemoryChip', () => {
it('maps v1 sub-tabs', () => {
expect(resolveMemoryChip('graph')).toBe('ask');
expect(resolveMemoryChip('goals')).toBe('ask');
- expect(resolveMemoryChip('sources')).toBe('documents');
- expect(resolveMemoryChip('sync')).toBe('documents');
- expect(resolveMemoryChip('history')).toBe('documents');
+ expect(resolveMemoryChip('sources')).toBe('brain');
+ expect(resolveMemoryChip('sync')).toBe('brain');
+ expect(resolveMemoryChip('history')).toBe('brain');
+ });
+
+ it('maps retired v2 chips', () => {
+ expect(resolveMemoryChip('documents')).toBe('brain');
+ expect(resolveMemoryChip('context')).toBe('ask');
});
it('returns null for nothing or an unknown value', () => {
diff --git a/app/src/components/routing/BrainRedirect.test.tsx b/app/src/components/routing/BrainRedirect.test.tsx
index e6b45ec1f5..3635d7eaf0 100644
--- a/app/src/components/routing/BrainRedirect.test.tsx
+++ b/app/src/components/routing/BrainRedirect.test.tsx
@@ -33,22 +33,27 @@ describe('BrainRedirect', () => {
expect(renderAt('/brain?tab=goals')).toBe('/connections?tab=brain&brain=ask');
});
- it('maps the v1 sources and sync sub-tabs to the documents chip', () => {
- expect(renderAt('/brain?tab=sources')).toBe('/connections?tab=brain&brain=documents');
- expect(renderAt('/brain?tab=sync')).toBe('/connections?tab=brain&brain=documents');
+ it('maps the v1 sources and sync sub-tabs to the brain chip', () => {
+ expect(renderAt('/brain?tab=sources')).toBe('/connections?tab=brain&brain=brain');
+ expect(renderAt('/brain?tab=sync')).toBe('/connections?tab=brain&brain=brain');
});
- it('passes a v2 chip through unchanged', () => {
- expect(renderAt('/brain?tab=context')).toBe('/connections?tab=brain&brain=context');
+ it('passes a current chip through unchanged', () => {
+ expect(renderAt('/brain?tab=background')).toBe('/connections?tab=brain&brain=background');
+ });
+
+ it('maps the retired context and documents chips', () => {
+ expect(renderAt('/brain?tab=context')).toBe('/connections?tab=brain&brain=ask');
+ expect(renderAt('/brain?tab=documents')).toBe('/connections?tab=brain&brain=brain');
});
it('drops a sub-tab that names no chip so the page picks its default', () => {
expect(renderAt('/brain?tab=welcome')).toBe('/connections?tab=brain');
});
- it('maps the sync history view to documents and keeps other params and the hash', () => {
+ it('maps the sync history view to brain and keeps other params and the hash', () => {
expect(renderAt('/brain?tab=sync&view=history&foo=1#x')).toBe(
- '/connections?tab=brain&brain=documents&foo=1#x'
+ '/connections?tab=brain&brain=brain&foo=1#x'
);
});
});
diff --git a/app/src/components/routing/BrainRedirect.tsx b/app/src/components/routing/BrainRedirect.tsx
index 9ca4207743..f5510f6ff5 100644
--- a/app/src/components/routing/BrainRedirect.tsx
+++ b/app/src/components/routing/BrainRedirect.tsx
@@ -8,7 +8,7 @@ import { resolveMemoryChip } from '../memory/memoryChips';
*
* Brain used to own `?tab=` (graph|goals|sources|sync|welcome) and `?view=`.
* Connections owns `?tab=` now, so the old sub-tab moves to `?brain=`, mapped
- * to its Memory v2 chip (graph|goals → ask, sources|sync|history → documents).
+ * to its Memory chip (graph|goals → ask, sources|sync|history → brain).
* A value that names no chip is dropped so the page picks its own default.
* v1's `view` param has no meaning any more and is dropped too; every other
* param and the hash are carried over unchanged.
diff --git a/app/src/components/settings/settingsRouteElements.test.tsx b/app/src/components/settings/settingsRouteElements.test.tsx
index e88a9c7c59..64ae2522e4 100644
--- a/app/src/components/settings/settingsRouteElements.test.tsx
+++ b/app/src/components/settings/settingsRouteElements.test.tsx
@@ -79,8 +79,8 @@ describe('retired /settings/integrations route', () => {
*/
describe.each([
['/settings/memory-engine', '#/connections?tab=brain&brain=engine'],
- ['/settings/memory-data', '#/connections?tab=brain&brain=documents'],
- ['/settings/memory-sync', '#/connections?tab=brain&brain=documents'],
+ ['/settings/memory-data', '#/connections?tab=brain&brain=brain'],
+ ['/settings/memory-sync', '#/connections?tab=brain&brain=brain'],
['/settings/memory-debug', '#/connections?tab=brain&brain=ask'],
['/settings/tasks', '#/connections?tab=brain&brain=ask'],
])('retired memory settings route %s', (route, target) => {
diff --git a/app/src/components/settings/settingsRouteElements.tsx b/app/src/components/settings/settingsRouteElements.tsx
index 9fc9981787..11a6e51698 100644
--- a/app/src/components/settings/settingsRouteElements.tsx
+++ b/app/src/components/settings/settingsRouteElements.tsx
@@ -124,10 +124,10 @@ export function settingsRouteElements(): ReactNode {
<Route path="approval-history" element={wrapSettingsPage(<ApprovalHistoryPanel />)} />
{/* ── Data ────────────────────────────────────────────────── */}
- {/* Data Sync is the Memory page's Documents chip now. */}
+ {/* Data Sync is the Memory page's Brain chip now. */}
<Route
path="memory-sync"
- element={<Navigate to="/connections?tab=brain&brain=documents" replace />}
+ element={<Navigate to="/connections?tab=brain&brain=brain" replace />}
/>
{/* Wallet balances moved to the Connections page (Integrations group). */}
<Route path="wallet-balances" element={<Navigate to="/connections?tab=wallet" replace />} />
@@ -195,7 +195,7 @@ export function settingsRouteElements(): ReactNode {
/>
<Route
path="memory-data"
- element={<Navigate to="/connections?tab=brain&brain=documents" replace />}
+ element={<Navigate to="/connections?tab=brain&brain=brain" replace />}
/>
<Route
path="memory-debug"
diff --git a/app/test/e2e/helpers/shared-flows.ts b/app/test/e2e/helpers/shared-flows.ts
index 09ebbbf2f2..24f96cd36f 100644
--- a/app/test/e2e/helpers/shared-flows.ts
+++ b/app/test/e2e/helpers/shared-flows.ts
@@ -186,8 +186,8 @@ const HASH_REDIRECTS = {
'/brain': '/connections?tab=brain',
'/settings/intelligence': '/connections?tab=brain',
'/settings/memory-engine': '/connections?tab=brain&brain=engine',
- '/settings/memory-data': '/connections?tab=brain&brain=documents',
- '/settings/memory-sync': '/connections?tab=brain&brain=documents',
+ '/settings/memory-data': '/connections?tab=brain&brain=brain',
+ '/settings/memory-sync': '/connections?tab=brain&brain=brain',
'/settings/memory-debug': '/connections?tab=brain&brain=ask',
'/settings/tasks': '/connections?tab=brain&brain=ask',
};
@@ -220,7 +220,7 @@ function routeReadySelector(hash) {
'/settings/voice': '[data-testid="voice-providers-section"]',
'/connections?tab=brain': '[data-testid="memory-page"]',
'/connections?tab=brain&brain=engine': '[data-testid="memory-page"]',
- '/connections?tab=brain&brain=documents': '[data-testid="memory-page"]',
+ '/connections?tab=brain&brain=brain': '[data-testid="memory-page"]',
'/connections?tab=brain&brain=ask': '[data-testid="memory-page"]',
'/settings/recovery-phrase': '[data-testid="recovery-phrase-panel"]',
};
@@ -265,7 +265,7 @@ async function waitForHashRouteReady(hash, options = {}) {
// A known route-ready selector being present is a definitive signal the
// target panel rendered — accept it regardless of the hash, since routes
// can redirect to a different hash (e.g. /settings/memory-data →
- // /connections?tab=brain&brain=documents).
+ // /connections?tab=brain&brain=brain).
if (res.hasSelector) return true;
// Otherwise require the resolved target hash. Redirects are accounted
// for above when computing `expected`.