Skip to content

refactor(chat): remove orphaned PersistentMemoryModal dead code - #292

Open
sebbsssss wants to merge 1 commit into
stagingfrom
claude/brave-boyd-0652e8
Open

refactor(chat): remove orphaned PersistentMemoryModal dead code#292
sebbsssss wants to merge 1 commit into
stagingfrom
claude/brave-boyd-0652e8

Conversation

@sebbsssss

Copy link
Copy Markdown
Owner

Summary

Removes apps/chat/src/components/PersistentMemoryModal.tsx — a half-finished "permanent preferences" component that was never wired into the app and was failing the chat app's tsc -b.

Why it's dead code

  • Never imported or rendered anywhere in apps/chat (only its own definition appeared in a repo-wide search). No barrel re-export, no lazy import, no test.
  • No save-side: it listens for / dispatches a persistent-memory-changed event and references "whenever a suggestion card saves one," but no such dispatcher or suggestion card exists.
  • References symbols that don't exist anywhere in the repo: a PersistentMemory type and api.listPersistentMemories() / api.deletePersistentMemory() ChatAPI methods. There is also no backend endpoint for the feature.
  • Introduced incidentally in 87b728c (chore: update gitignore as file is not pushed).

Effect on typecheck

The component referenced non-existent types/methods, producing 3 errors under cd apps/chat && tsc -b:

  • :5 import of PersistentMemory from ../lib/types (not exported)
  • :23 api.listPersistentMemories() (no such method)
  • :49 api.deletePersistentMemory() (no such method)

Deleting the file clears all three. Verified locally — the only remaining apps/chat typecheck error afterward is the pre-existing, unrelated main.tsx(40,11) Solana RPC type error, which is left untouched (out of scope).

Test plan

  • cd apps/chat && tsc -b no longer reports the 3 PersistentMemoryModal.tsx errors
  • Repo-wide grep confirms no remaining references to PersistentMemoryModal, listPersistentMemories, deletePersistentMemory, or the PersistentMemory type
  • Pure deletion of an unmounted component — no runtime behavior change

🤖 Generated with Claude Code

PersistentMemoryModal was a half-finished "permanent preferences" UI that
was never wired into the app: never imported or rendered, no barrel
re-export, no test, and no save-side (the `persistent-memory-changed`
event it references has no external dispatcher). It also depended on a
`PersistentMemory` type and `listPersistentMemories`/`deletePersistentMemory`
ChatAPI methods that don't exist anywhere in the repo, and there is no
backend endpoint for the feature. It was introduced incidentally in
87b728c ("chore: update gitignore as file is not pushed").

Because it referenced non-existent symbols, it produced 3 errors under
`apps/chat` `tsc -b`. Removing it clears all three. The only remaining
chat typecheck error is the pre-existing, unrelated main.tsx Solana RPC
type error, left untouched.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 20, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
cluude Ready Ready Preview, Comment Jun 20, 2026 9:27pm

Request Review

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.

1 participant