Skip to content

Queued follow-up messages live only in renderer memory; lost on reload, invisible from other threads #137

Closed

Description

@currentbits

Problem

The type-ahead queue for a running thread is renderer-side and in-memory (the code's own ponytail at src/useCoder.ts:374-380: a reload mid-run drops the queue). The queue is not part of ThreadInfo (no queued field in src/shared/ipc.ts), and src/App.tsx:583-585 only renders the queued chip for the currently selected thread.

Impact

A user types a follow-up mid-run, the app reloads or crashes, and the instruction silently vanishes. Switching to another thread also gives no hint a queue is pending elsewhere. Data loss in a common flow.

Fix direction

Persist the queue in the store keyed by thread (it survives reload and becomes visible in the sidebar), and flush it into the run on settle as today.

Activity

  1. added
    bug
    plan:todo
    plan:doing
    plan:done
    and removed
    plan:todo
    plan:doing
    on Aug 16, 2026
  2. added a commit that references this issue on Oct 19, 2026
    1e1bbb5
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

    bugplan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions