Repository navigation
feat(host): old Rust hosts no longer pile up on ssh machines (#76) - #156
Merged
Merged
Conversation
Each connect touches this version's ~/.wraithgrid/bin/wraithgrid-host-<v> (its date says when it was last used) and deletes other versions unused for 30 days, so two Wraithgrid versions sharing a machine don't copy theirs over again on every connect. A host still running a deleted binary keeps running. `command find`, since a fish config can shadow find; the new test runs the command for real in sh and fish. Refs #76 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
A machine reached over ssh got a new
~/.wraithgrid/bin/wraithgrid-host-<version>on every Wraithgrid update and kept all of them (#76 leftover from phase 5).find … -mtime +30 -delete, errors ignored). Not "all other versions": two Wraithgrid versions sharing one machine (two laptops) would then delete each other's and copy theirs over again on every connect. A host still running a deleted binary keeps running, since Linux keeps the file open for it.command find: commands on the machine run in the user's own shell and config, and a fish function can shadowfind(this dev machine's does, which the new test caught). Noted indocs/CONTEXT.md's gotchas.Tests: the new unit test runs the real preflight in
shandfishagainst a fake~/.wraithgrid/bin: the stale version goes, a recently used one stays, the current one is touched. Also typecheck, lint, 493 unit tests,machines.spec.tse2e.Refs #76
🤖 Generated with Claude Code