Skip to content

Fix workspace temp-dir leaks and guard stateful agents without workspace#90

Open
dipeshbabu wants to merge 1 commit intonightshiftco:mainfrom
dipeshbabu:cleanup-temp-workspace-dirs
Open

Fix workspace temp-dir leaks and guard stateful agents without workspace#90
dipeshbabu wants to merge 1 commit intonightshiftco:mainfrom
dipeshbabu:cleanup-temp-workspace-dirs

Conversation

@dipeshbabu
Copy link
Contributor

Fixes a disk leak where nightshift-empty-ws-* temp directories were created when no workspace is configured but never cleaned up.

Changes:

  • Track whether a workspace was auto-created as a temporary directory.
  • Delete auto-created temp workspaces during cleanup.
  • Raise a clear error if an agent is stateful but no workspace is configured, since persistence has nowhere to go.

No behavior changes for agents with an explicit workspace configured.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant