Skip to content

acp: silent errors in session persistence can lose history #471

Closed

Description

@euxarist

Problem

Errors from session history persistence are silently ignored:

// internal/acp/agent.go:391
if a.deps.Store != nil {
    _, _ = a.deps.Store.AppendEvent(...)
    _, _ = a.deps.Store.AppendEvent(...)
}

Similar patterns exist in history loading and related paths.

Impact

  • Corrupted or lost conversation history on any store failure (disk full, permission, backend error).
  • Breaks /rewind, checkpoints, flushRunIDs, and continuity between runs.
  • Agent continues as if nothing happened.

Suggested fix

  • Log the error at minimum.
  • Surface a non-fatal warning to the user / transcript.
  • Consider making persistence failures more visible (e.g. mark session dirty).

Activity

  1. added
    issue-approved
    on Jul 5, 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

    issue-approved

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions