Skip to content

fix(runtime): Temporary directories not cleaned up when moat crashes #81

@dpup

Description

@dpup

AWS, Claude, and Codex temp directories (internal/run/manager.go:574-579) are only cleaned up in Stop/Wait/Destroy. If moat crashes, these accumulate in /tmp as agentops-aws-, claude-, codex-*. Add finalizers or background cleanup for orphaned temp dirs. Consider adding moat system clean-temp command to manually remove old temp directories.

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