Skip to content

Commit a13af5f

Browse files
author
CAL
committed
fix(cli): resolve exit code 127 when launching CLI dashboard from VS Code
The terminal created with shellPath bypasses shell initialization, so nvm/volta node binaries are not in PATH. Inject the CLI's bin directory into the terminal env so #!/usr/bin/env node resolves correctly. Also adds ~/.nvm/versions/node/*/bin/ to common path discovery.
1 parent ce44938 commit a13af5f

File tree

12 files changed

+97
-21
lines changed

12 files changed

+97
-21
lines changed

.github/workflows/release.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,17 @@ jobs:
7272
- name: Run tests
7373
run: npm test
7474

75+
- name: Package .vsix
76+
run: npx @vscode/vsce package -o sidekick-for-max-${{ needs.validate.outputs.version }}.vsix
77+
78+
- name: Upload .vsix artifact
79+
uses: actions/upload-artifact@v4
80+
with:
81+
name: vsix
82+
path: sidekick-vscode/sidekick-for-max-${{ needs.validate.outputs.version }}.vsix
83+
7584
- name: Publish to Open VSX
76-
run: npx ovsx publish || echo "Already published — continuing"
85+
run: npx ovsx publish sidekick-for-max-${{ needs.validate.outputs.version }}.vsix || echo "Already published — continuing"
7786
env:
7887
OVSX_PAT: ${{ secrets.OVSX_PAT }}
7988

@@ -126,11 +135,16 @@ jobs:
126135
create-release:
127136
name: Create GitHub Release
128137
runs-on: ubuntu-latest
129-
needs: [validate, publish-npm]
138+
needs: [validate, publish-extension, publish-npm]
130139

131140
steps:
132141
- uses: actions/checkout@v4
133142

143+
- name: Download .vsix artifact
144+
uses: actions/download-artifact@v4
145+
with:
146+
name: vsix
147+
134148
- name: Extract changelog section
135149
id: changelog
136150
run: |
@@ -157,10 +171,12 @@ jobs:
157171
158172
## Install
159173
160-
**VS Code extension**: Install from [Open VSX](https://open-vsx.org/extension/CesarAndresLopez/sidekick-for-max).
174+
**VS Code extension**: Download the `.vsix` below or install from [Open VSX](https://open-vsx.org/extension/CesarAndresLopez/sidekick-for-max).
161175
162176
**CLI via npm** (requires Node.js 20+):
163177
```
164178
npm i -g sidekick-agent-hub
165179
```
180+
files: |
181+
sidekick-for-max-${{ needs.validate.outputs.version }}.vsix
166182
fail_on_unmatched_files: false

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.12.1] - 2026-02-23
9+
10+
### Fixed
11+
12+
- **CLI dashboard launch from VS Code**: Fixed exit code 127 when launching the CLI dashboard via the extension button on systems using nvm, volta, or other Node version managers. The terminal now injects the CLI's directory into `PATH` so the node binary is found even when shell init is bypassed.
13+
- **CLI discovery for nvm users**: Added nvm installation paths (`~/.nvm/versions/node/*/bin/`) to the common path scan so the CLI is discovered without relying on `which`.
14+
815
## [0.12.0] - 2026-02-22
916

1017
### Added

docs/changelog.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ All notable changes to Sidekick Agent Hub (VS Code extension and CLI) will be do
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.12.1] - 2026-02-23
9+
10+
### Fixed
11+
12+
- **CLI dashboard launch from VS Code**: Fixed exit code 127 when launching the CLI dashboard via the "Open CLI Dashboard" command on systems using nvm, volta, or other Node version managers. The terminal now injects the CLI's bin directory into `PATH` so the `node` binary is found when shell init is bypassed by `shellPath`.
13+
- **CLI discovery for nvm users**: Added nvm installation paths (`~/.nvm/versions/node/*/bin/`) to the common path scan so the CLI is discovered without relying on `which`.
14+
- **GitHub Release assets**: The `.vsix` extension file is now attached to each GitHub Release for direct download.
15+
816
## [0.12.0] - 2026-02-22
917

1018
### Added

sidekick-cli/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to the Sidekick Agent Hub CLI will be documented in this fil
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.12.1] - 2026-02-23
9+
10+
### Fixed
11+
12+
- **VS Code integration**: Fixed exit code 127 when the extension launches the CLI dashboard on systems using nvm or volta (node binary not found when shell init is bypassed)
13+
814
## [0.12.0] - 2026-02-22
915

1016
### Added

sidekick-cli/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sidekick-cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sidekick-agent-hub",
3-
"version": "0.12.0",
3+
"version": "0.12.1",
44
"description": "Terminal dashboard for monitoring AI coding agent sessions",
55
"type": "module",
66
"bin": {

sidekick-shared/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sidekick-shared/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sidekick-shared",
3-
"version": "0.12.0",
3+
"version": "0.12.1",
44
"description": "Shared data access layer for Sidekick — readers, types, providers",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

sidekick-vscode/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to the Sidekick Agent Hub VS Code extension will be document
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.12.1] - 2026-02-23
9+
10+
### Fixed
11+
12+
- **CLI dashboard launch from VS Code**: Fixed exit code 127 when launching the CLI dashboard via the "Open CLI Dashboard" command on systems using nvm, volta, or other Node version managers. The terminal now injects the CLI's bin directory into `PATH` so the `node` binary is found when shell init is bypassed by `shellPath`.
13+
- **CLI discovery for nvm users**: Added nvm installation paths (`~/.nvm/versions/node/*/bin/`) to the common path scan so the CLI is discovered without relying on `which`.
14+
815
## [0.12.0] - 2026-02-22
916

1017
### Added

sidekick-vscode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "sidekick-for-max",
33
"displayName": "Sidekick Agent Hub",
44
"description": "AI coding assistant with real-time agent monitoring — see what your AI is doing, control token costs, and never lose session context.",
5-
"version": "0.12.0",
5+
"version": "0.12.1",
66
"publisher": "CesarAndresLopez",
77
"author": {
88
"name": "Cesar Andres Lopez",

0 commit comments

Comments
 (0)