opencode/packages/cli
Kit Langton b171a295df fix(cli): adopt the login shell environment in the background service
A managed service elected by a GUI client (the desktop app, an editor, a
login item) inherits launchd's environment: PATH is /usr/bin:/bin:/usr/sbin:/sbin
and nothing exported from .zshrc or .bashrc exists. Every process the server
spawns extends process.env, so stdio MCP servers using #!/usr/bin/env node,
npx, uvx, formatters, and hooks fail with "Connection closed" while the bash
tool, which prefers the client's terminal environment, keeps working.

Resolve the user's interactive login shell once at service startup when the
inherited environment did not come from a shell, and adopt it before anything
reads process.env.
2026-09-16 11:57:09 -07:00
..
bin fix(cli): keep opencode2 as a working alias 2026-09-11 20:55:03 -04:00
dev fix(cli): recover dev hot reloads and preserve routes (#47979) 2026-09-08 11:19:51 -04:00
script fix(cli): load web assets on demand 2026-09-15 21:15:40 -04:00
src fix(cli): adopt the login shell environment in the background service 2026-09-16 11:57:09 -07:00
test fix(cli): adopt the login shell environment in the background service 2026-09-16 11:57:09 -07:00
AGENTS.md refactor(packages): migrate to the opencode npm scope (#47852) 2026-09-07 17:19:33 -04:00
bunfig.toml feat(tui): open subagents with down 2026-07-10 21:01:04 -04:00
Dockerfile fix(cli): keep opencode2 as a working alias 2026-09-11 20:55:03 -04:00
package.json sync release versions for v2.0.5 2026-09-16 16:35:05 +00:00
sst-env.d.ts go: minimax m3 2026-05-31 15:20:55 -04:00
tsconfig.json fix: add DOM.AsyncIterable lib so ReadableStream iteration typechecks (#44580) 2026-08-24 02:26:54 +00:00
vite.node.config.ts fix(cli): load web assets on demand 2026-09-15 21:15:40 -04:00