Skip to content

Move llm-history out of electron-store config.json #993

Description

@jonathanKingston

Observed during the startup-hang investigation (#988): a real profile's config.json had grown to 21.5 MB, almost entirely llm-history:* entries. electron-store parses the whole file per .get (now mitigated by the in-memory cache) and rewrites the whole file on every .set — so every agent turn serializes 21 MB to disk, and the file grows without bound.

Chat history belongs in the filesystem thread store (per-thread files), not a monolithic JSON config. Migrate llm-history:* out, with a one-time import like the #644 thread migration. Consider a startup warning/telemetry when config.json exceeds a few MB so silent aging is visible.

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

    area:performancePerformance, resource usage, and package sizearea:storagePersistence, threads, memories, and migrationbugSomething isn't workingperformancePerformance / CPU / memory issuepriority:p2Important issue to address soon

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions