Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

refactor: split desktop threadEventReducer into focused modules

4 months ago

fa61c26
Authored
mweinbach5/21/2026, 11:28:49 PM
Decompose the 2246-line thread event reducer into feed projection, JSON-RPC
workspace wiring, messaging, socket lifecycle, and event handler modules
behind a stable createThreadEventReducer export.

Co-authored-by: Cursor <cursoragent@cursor.com>

Parent0e45163

9 files changed
  • apps/desktop/src/app/store.helpers/threadEventReducer.ts+2−2246
  • apps/desktop/src/app/store.helpers/threadEventReducer/context.ts+26−0
  • apps/desktop/src/app/store.helpers/threadEventReducer/feedProjection.ts+495−0
  • apps/desktop/src/app/store.helpers/threadEventReducer/handlers.ts+765−0
  • apps/desktop/src/app/store.helpers/threadEventReducer/index.ts+88−0
  • apps/desktop/src/app/store.helpers/threadEventReducer/jsonRpcWorkspace.ts+403−0
  • apps/desktop/src/app/store.helpers/threadEventReducer/messaging.ts+464−0
  • apps/desktop/src/app/store.helpers/threadEventReducer/socket.ts+210−0
  • apps/desktop/src/app/store.helpers/threadEventReducer/workspaceState.ts+142−0