Skip to content

Bug: cmd_memory_update_silent writes errors to stdout (pollutes pipelines) #149

@tcconnally

Description

@tcconnally

Severity: 🟡 Medium (CLI hygiene)

agora.py:117–118:

except Exception as exc:
    print(f"> ⚠ Mnēmē update failed: {exc}")

Defaults to stdout. cmd_memory_update_silent is called as a side effect of cmd_checkpoint, whose stdout may be piped to other tooling. The error message contaminates stdout.

Suggested fix

except Exception as exc:
    workspace_str = str(workspace) if workspace else "<unknown>"
    print(f"> ⚠ Mnēmē update failed for {workspace_str}: {exc}", file=sys.stderr)

Acceptance criteria

  • Test: monkeypatch _memory_do_update to raise; capture stdout vs stderr; assert error is on stderr.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions