Skip to content

Reaper false-cancel window: live session in a single >30-min tool call emits no events #963

@mellanon

Description

@mellanon

Found in #959 review. EventLogger fires on PostToolUse/Stop/UserPromptSubmit — there is NO periodic heartbeat, so a genuinely-alive orphan session inside one >30-min tool call (long build, sub-agent dispatch) emits zero events for the window and reapStuckRunningOrphans can cancel it at STUCK_RUNNING_TTL (30min). Bounded: non-terminal harm only (wrong tile state; no process kill; 7-day delete grace; late events still attach). Options: raise TTL, or add a periodic observed-session heartbeat (PreToolUse-anchored or timer), or reap only when the last event is a terminal-ish signal. Refs #952/#955.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingnextNext up after current work

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions