Skip to content

Lost-output recovery is lost if the daemon dies during its own start #1550

Backlog

Description

@lydakis

From the Codex review on #1549. If startup fails or the daemon is killed after the open marks running background rows lost but before lost_outputs commits their recovered output, the in-memory list is gone. The next open only looks at status='running', so those handles keep returning a bare process_lost even though their files are still in the outputs folder.

This is a window of milliseconds during a start. A fix would persist pending recovery, for example a nullable column or a marker in result, or rediscover lost background rows whose result is still the bare {"error":"process_lost"} while bounding how often old rows are rescanned.


Generated by Claude Code

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions