Repository navigation
fix(scripts): installer now detects a running T3 Code before replacing it - #12
Merged
Merged
Conversation
…g it grep -q exits on the first match, which SIGPIPEs ps; with pipefail the check reported "not running", so the installer swapped the bundle out from under the live app instead of asking to quit it. 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.
scripts/install-fork-mac.shnever noticed that T3 Code was running. On the first real install it moved the live app's bundle aside and deleted it, instead of asking to quit the app first. The closingopenthen only brought the old instance to the front.The cause is
running_from, which usedps -axo comm= | grep -Fq ….grep -qexits on its first match, which killspswith SIGPIPE (exit 141). Withset -o pipefail, the pipeline then fails, so the check read as "not running". The fix keepsgrep -Freading all of its input and sends the output to/dev/null.Verified with the app running from
/Applications/T3 Code (Nightly).app:PIPESTATUS141 0).running_fromdetects it.running_fromstill returns false for a path that isn't running.Not run end to end again, since quitting the app would end the session doing this work.
Done by Claude Opus 5.5 in Claude Code.
🤖 Generated with Claude Code