AGENTS.md@src/components/memory · git:20260823.54c8a7e · 2026-08-23 · sha256 7db92649b7902874
AGENTS.md@src/components/memory git:20260823.54c8a7eA
Immutable. This exact content is served forever at /api/v1/blob/7db92649b7902874.
# AGENTS.md - src/components/memory/ ## OVERVIEW Main product UI cluster: home, search, spaces, memories, pages, citations, sources, settings, remote access, imports, profile, and review surfaces. ## WHERE TO LOOK | Task | Location | Notes | | --- | --- | --- | | Navigation or view state | `Main.tsx` | high blast radius; many query invalidations | | Page citations | `PageDetail.tsx`, `page/PageInfo.tsx`, `page/CitationChip.tsx` | verified/unverified states and source ordering | | Settings/config | `SettingsPage.tsx`, `settings/` | profile, capture, sources, diagnostics, remote access | | Sources UI | `SourcesView.tsx`, `sources/` | add/list/sync source workflows | | Memory rendering | `MemoryCard.tsx`, `ContentRenderer.tsx`, `MemoryDetail.tsx` | classifier/rendering invariants | | Remote access UI | `RemoteAccessPanel.tsx` | talks to Rust remote-access commands | | Review lanes | `DistillReviewPanel.tsx`, `RefiningList.tsx` | pending/refinement flows | ## CONVENTIONS - Preserve citation diagnosability. Existing tests cover verified/unverified chips, page-source ordering, missing/mismatched citation states, and popovers. - Keep settings mutations going through the shared Tauri client wrappers. - Treat `Main.tsx` changes as cross-view changes. Verify the affected view plus any query invalidation or keyboard shortcut behavior you touched. - Prefer focused component tests near the edited file; many invariants here are easier to lock with Testing Library than with snapshots. ## ANTI-PATTERNS - Do not hide unverified citations or collapse them into verified styling. - Do not add navigation state that depends on localized placeholder text. - Do not weaken `PageDetail.*.test.tsx` or `page/PageInfo.test.tsx` to make UI changes pass. - Do not treat `RefiningList.tsx` TODOs as cleanup-only; they mark unresolved behavior. ## COMMANDS ```bash pnpm vitest run src/components/memory pnpm vitest run src/components/memory/page pnpm test:i18n pnpm exec tsc -b ```