Skip to content

A session can oscillate between finished and rehabilitated, firing subagent-spawn-late each time #177

Description

@devsuitup

session-transitions.js:222 emits subagent-spawn-late when a subagent declared finished writes again inside the recheck window. A subagent that writes in bursts slower than STABLE_MS can cross that boundary indefinitely, sending an IPC message to the renderer each time.

Measured: 374 occurrences in the current log and 5 more in the rotated one, oldest dated ten days back. Peak 37 in one hour. The code already damps it — nextStableMs lengthens the stability window on each rehabilitation — so the cost is small.

Filed as a display defect with its own measurement, not as a performance fix. It was briefly suspected during a CPU investigation and cleared: no temporal correlation, and the emitter was not the module suspected.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions