v0.6.5: workspaces under ~/.fledge/workspaces (durable, not /tmp)#11
Merged
Conversation
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.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
macOS auto-prunes
/tmpaggressively, 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 editJwtTokenService.swiftin a workspace that got cleaned up between turns, then try to push to a path that no longer existed.Changes
~/.fledge/workspaces/. Override withFLEDGE_WORKSPACES_DIRfor tests / CI / custom layouts. Workspaces now:/tmppruning and reboots,workspace-cleanandworkspace-pushaccept 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..gitignorecovering.DS_Store(which sneaked in on the first commit and got removed in the follow-up).Test plan
workspace CorvidLabs/fledge-plugin-github --depth 1creates a dir under~/.fledge/workspaces/CorvidLabs-fledge-plugin-github-XXXXXX/fledge-plugin-github/workspace-cleanremoves the new path AND its parentworkspace-clean /tmp/randomrefuses (safety guard intact)bash -n+shellcheck --severity=warningclean