ReviewOS

also looking at this

stacks/uplink

fix(app): a fresh install now either works or says why

#8
Merged glennmichael123 wants to merge fix/setup-blockers into main
16 files +512 -75
app/Desktop/launcher.tsmodified+8-0
Changes to app/Desktop/launcher.ts
@@ -16,9 +16,17 @@ import { dirname, join } from 'node:path'
1616import process from 'node:process'
1717import { format } from 'node:util'
1818import pkg from '../../package.json'
19import { agentPath } from '../Uplink/agent-path'
1920import { acquireSingleInstance, startDesktopAgent } from '../Uplink/desktop-agent'
2021import { LOG_PATH } from '../Uplink/settings'
2122
23// Launched from Finder or from its own LaunchAgent, this process gets the bare
24// launchd PATH, and everything below it inherits that: the engines, their
25// probes, and osascript. Widen it once, here, before anything spawns. Without
26// this a `claude` installed by bun, npm or nvm is invisible to the app on a Mac
27// where it works in a terminal.
28process.env.PATH = agentPath()
29
2230// Launched from Finder or at login there is no terminal, so keep a log where
2331// Console.app looks for one.
2432if (!process.stdout.isTTY) {