Skip to content

v0.6.5: workspaces under ~/.fledge/workspaces (durable, not /tmp)#11

Merged
corvid-agent merged 2 commits into
mainfrom
fix/v0.6.5-stable-workspaces
May 22, 2026
Merged

v0.6.5: workspaces under ~/.fledge/workspaces (durable, not /tmp)#11
corvid-agent merged 2 commits into
mainfrom
fix/v0.6.5-stable-workspaces

Conversation

@corvid-agent
Copy link
Copy Markdown
Contributor

Summary

macOS auto-prunes /tmp aggressively, and well-meaning disk-cleanup sweeps (rm -rf /tmp/fledge-gh-*) wipe agent workspaces mid-task. We burned a Discord session today watching the corvidagent edit JwtTokenService.swift in a workspace that got cleaned up between turns, then try to push to a path that no longer existed.

Changes

  • Default workspace root → ~/.fledge/workspaces/. Override with FLEDGE_WORKSPACES_DIR for tests / CI / custom layouts. Workspaces now:
    • survive /tmp pruning and reboots,
    • show up next to the rest of fledge state for disk-audit visibility,
    • cost nothing in performance (still local disk).
  • workspace-clean and workspace-push accept BOTH the new ~/.fledge/workspaces/ path AND the legacy /tmp/fledge-gh-* prefix, so any in-flight workspaces from v0.6.4 and earlier can be pushed or cleaned without manual intervention.
  • Added .gitignore covering .DS_Store (which sneaked in on the first commit and got removed in the follow-up).

Test plan

  • workspace CorvidLabs/fledge-plugin-github --depth 1 creates a dir under ~/.fledge/workspaces/CorvidLabs-fledge-plugin-github-XXXXXX/fledge-plugin-github/
  • workspace-clean removes the new path AND its parent
  • workspace-clean /tmp/random refuses (safety guard intact)
  • bash -n + shellcheck --severity=warning clean

macOS auto-prunes /tmp aggressively, and well-meaning disk-cleanup
sweeps (rm -rf /tmp/fledge-gh-*) wipe agent workspaces mid-task —
we burned a Discord session today watching the corvidagent edit a
JwtTokenService.swift in a workspace that got cleaned up between
turns, then try to push to a path that no longer existed.

Move the default workspace root to ~/.fledge/workspaces, override-
able via FLEDGE_WORKSPACES_DIR for tests / CI. The new location:
  - survives /tmp pruning,
  - shows up next to the rest of fledge state for disk-audit visibility,
  - costs nothing in performance (still local disk).

workspace-clean and workspace-push still accept the legacy
/tmp/fledge-gh-* prefix so any in-flight workspaces from v0.6.4 and
earlier can be pushed or cleaned without manual intervention.

Bash strict-mode safe; shellcheck clean.
@gemini-code-assist
Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@corvid-agent corvid-agent merged commit 80ab287 into main May 22, 2026
5 checks passed
@corvid-agent corvid-agent deleted the fix/v0.6.5-stable-workspaces branch May 22, 2026 00:54
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