Skip to content

fix(scripts): installer now detects a running T3 Code before replacing it - #12

Merged
ethanlee66 merged 1 commit into
mainfrom
fix/installer-running-check
Nov 24, 2026
Merged

ethanlee66 merged 1 commit into
mainfrom
fix/installer-running-check

Conversation

@ethanlee66

Copy link
Copy Markdown
Owner

scripts/install-fork-mac.sh never 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 closing open then only brought the old instance to the front.

The cause is running_from, which used ps -axo comm= | grep -Fq …. grep -q exits on its first match, which kills ps with SIGPIPE (exit 141). With set -o pipefail, the pipeline then fails, so the check read as "not running". The fix keeps grep -F reading all of its input and sends the output to /dev/null.

Verified with the app running from /Applications/T3 Code (Nightly).app:

  • The old check missed it (PIPESTATUS 141 0).
  • The fixed running_from detects it.
  • The fixed running_from still 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

…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>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XS labels Nov 24, 2026
@ethanlee66
ethanlee66 merged commit b616494 into main Nov 24, 2026
13 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants