You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(desktop): remove vestigial listMessages/replaceMessages IPC + DB
After chat_messages became the single source of truth for agent history
(a5b737f), the legacy design_messages path had no live callers. This
cleanup deletes:
- preload: snapshots.listMessages / replaceMessages bindings
- main IPC: snapshots:v1:list-messages / replace-messages handlers and
channel entries (+ the dead parseDesignIdPayload / parseMessageList
helpers they fed)
- DB layer: listMessages / replaceMessages exports, rowToMessage mapper
- tests: the DB-level describe block, the IPC describe block, the two
schema-reject entries, and the leftover listMessages / replaceMessages
mocks in store.test.ts
What we intentionally leave alone:
- design_messages table itself (DB schema unchanged — old data stays put)
- duplicateDesign's design_messages copy loop (no-op for new designs
since nobody writes to the table anymore; legacy designs still clone
their historical rows cleanly)
Both can be removed in a later DB schema migration; out of scope here.
All 362 desktop tests pass; typecheck clean.
0 commit comments