Skip to content

IPC: full transcript pushed on every chunk; Markdown re-parses every message #28

Closed

Description

@currentbits

`pushDetail` (electron/runner.js:726) → `getThreadDetail` (electron/services.js:966-975) returns the full `messages` + `workLog` arrays on every stream event — the largest thread's message array is ~4 MB, cloned per event. On the renderer side, src/components/Markdown.tsx has no `memo`, so every push re-runs react-markdown + remark-gfm over every message, and ThreadView.tsx:1259 rebuilds the whole timeline.

Fix both ends: an append/patch event (e.g. `thread:message`) instead of full-detail pushes, plus a memoized message row.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions