Skip to content

Engine host: an interrupt pause that holds nothing stays latched and holds later after-the-turn messages #790

Closed

Description

@SSFSKIM

Problem

The engine host's interrupt pause (MessageQueue, src/engine-host/queue.ts) stays latched once it holds nothing. This happens after a Stop with nothing waiting, or when a state file left by another build's host survives a handover. A message the person later queues for after the turn is then held under "Queue paused because you interrupted" until they press Resume, although nothing they interrupted is waiting.

Batch 7's #668 fix (group A, ux-wave/b7-A) makes the stack draw the paused header only over held rows, so a "Next step" row no longer shows the stale header. The latch itself remains.

Work

  • End an interrupt pause once it holds nothing, without racing the Stop's holdAll. A Stop that arrives while a message is being queued must still hold that message.
  • Red first: a queue case where a Stop with nothing queued, followed by a new after-the-turn message, holds that message. It should send it when the turn ends.
  • The handover case: a state file another build left with a pause and no rows should load unpaused.

Context

Found by group A's medium review in batch 7 and logged in docs/tech-debt-tracker.md (2026-11-20). It predates batch 7.

Activity

  1. added
    bug
    status:ready-for-implementer
    priority:P2
    on Nov 20, 2026
  2. added
    status:in-progress
    and removed
    status:ready-for-implementer
    on Nov 20, 2026
  3. SSFSKIM commented on Nov 20, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-progress: batch 8, group b8-bugs

  4. added
    status:in-review
    and removed
    status:in-progress
    on Nov 20, 2026
  5. added a commit that references this issue on Nov 20, 2026
  6. removed
    status:in-review
    on Nov 20, 2026
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

    bugpriority:P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions