Skip to content

Agents panel re-queries all threads' messages on every stream push #29

Closed

Description

@currentbits

AgentsPanel.tsx:1596-1601 refetches `listThreadSummaries` whenever the `threads` array identity changes, and useCoder.ts:387-400 rebuilds that array on every `thread:updated`. `services.threadSummaries` (electron/services.js:893) walks every message of all threads per call. During an orchestration this fires many times per second.

Fix: depend on a cheap key (ids + statuses) or debounce the refetch.

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