Skip to content

Persist queued follow-ups as items[] so a blank line stays one thought #809

Closed

Description

@currentbits

Summary

Follow-up to #780. The mid-run queue is still one thread.queued.prompt string. setQueued appends with a blank-line delimiter (\n\n); the strip splits on that same delimiter for per-item edit/remove/reorder.

A single follow-up that itself contains a blank line becomes two items after an edit/reload.

Plan

  • Persist items: string[] on the queued blob
  • Keep prompt as the joined drain text for main's existing FIFO send
  • Migrate old prompt-only rows by splitting once
  • Do not change send-while-busy
  • Tests in test/queuedFollowup.test.tsx must cover a thought that contains a blank line staying one item

Activity

  1. currentbits commented on Sep 2, 2026

    @currentbits
    OwnerAuthor

    Implemented on coder/fork-edit-and-unqueue-follow-ups-655c00.

    thread.queued.items is the per-thought list. prompt stays the joined drain text so main's FIFO send is unchanged. Old prompt-only rows split once on append or on strip read. A thought that contains a blank line stays one item (including after remount).

    This worktree also has the #780 per-item edit/remove/reorder strip (that branch was not landed here). Send-while-busy is unchanged.

    Tests: test/queuedFollowup.test.tsx 18/18, electron/test/services.test.js setQueued/takeQueued cases green.

  2. added
    plan:done
    and removed
    plan:doing
    on Sep 2, 2026
  3. currentbits commented on Sep 2, 2026

    @currentbits
    OwnerAuthor

    Worktree already on origin/main via #840 (ca6c5146). Closing and marking plan:done.

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

    plan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions