@gkoreli/ghx 2.4.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -169,7 +169,8 @@ diff and refuses to overwrite without `--force`.
|
|
|
169
169
|
### 3. Verify
|
|
170
170
|
|
|
171
171
|
```bash
|
|
172
|
-
ghx sidecar doctor
|
|
172
|
+
ghx sidecar doctor # token, network, ghx binary, ACP handshake, report sink
|
|
173
|
+
ghx sidecar doctor --live # also run a REAL one-prompt turn through the agent
|
|
173
174
|
```
|
|
174
175
|
|
|
175
176
|
`doctor` fails fast with an actionable message if the configured agent cannot
|
|
@@ -179,6 +180,13 @@ matches the running ghx version — a stale sink binary would silently degrade
|
|
|
179
180
|
structured reports to a text fallback, so doctor fails loudly with fix-it text
|
|
180
181
|
instead.
|
|
181
182
|
|
|
183
|
+
`--live` goes one step further: the plain handshake stops at ACP *initialize*,
|
|
184
|
+
which passes even on setups where a real turn then fails (auth typically
|
|
185
|
+
resolves lazily at prompt time). `--live` runs a full `session/new` + one tiny
|
|
186
|
+
prompt turn through the configured agent and, on failure, prints the failing
|
|
187
|
+
**stage** and the agent's **stderr tail** — the deterministic way to diagnose a
|
|
188
|
+
machine where `ask` produces nothing (see [ADR-0033](docs/adr/0033-sidecar-out-of-box-agent-config.md)).
|
|
189
|
+
|
|
182
190
|
### 4. Ask
|
|
183
191
|
|
|
184
192
|
```bash
|
|
@@ -226,6 +234,33 @@ most recent session. Everything it shows is the same file you can read by hand.
|
|
|
226
234
|
Requires the viewer on PATH:
|
|
227
235
|
`go install github.com/CtrlSpice/otel-desktop-viewer@latest`.
|
|
228
236
|
|
|
237
|
+
### Troubleshooting
|
|
238
|
+
|
|
239
|
+
If an `ask` returns nothing useful, the failure is recorded, not lost
|
|
240
|
+
([ADR-0033](docs/adr/0033-sidecar-out-of-box-agent-config.md)):
|
|
241
|
+
|
|
242
|
+
- **Per-session agent stderr.** The spawned agent's stderr is captured to
|
|
243
|
+
`~/.ghx/sessions/<session>/agent-stderr.log`. Under the always-on daemon it
|
|
244
|
+
no longer disappears into the daemon's own log. A failed turn also splices the
|
|
245
|
+
tail of that log — and its path — into the error the CLI prints.
|
|
246
|
+
- **Reproduce it deterministically.** `ghx sidecar doctor --live` runs a real
|
|
247
|
+
prompt turn and prints the failing stage plus the agent's stderr, even when the
|
|
248
|
+
plain handshake passes.
|
|
249
|
+
- **`this workspace has not been trusted`.** ghx already runs the agent in a
|
|
250
|
+
neutral, ghx-owned session directory (outside any git repo, no `.claude`
|
|
251
|
+
settings), so this warning should not appear. If it still does, the agent
|
|
252
|
+
picked up a git-repo workspace: trust it once (run the agent interactively
|
|
253
|
+
there and accept the dialog) or set
|
|
254
|
+
`projects["<dir>"].hasTrustDialogAccepted: true` in `~/.claude.json`. ghx will
|
|
255
|
+
never write that file for you.
|
|
256
|
+
- **"works from shell A, fails from shell B".** The daemon auto-spawns from the
|
|
257
|
+
**first** caller's environment, so a missing auth/proxy env var is a common
|
|
258
|
+
cause. `ghx sidecar sessions show <session>` lists the agent command, the
|
|
259
|
+
session's spawn cwd, and the **names** (never values) of the agent-relevant
|
|
260
|
+
environment variables present when it was created. If the wrong env was
|
|
261
|
+
inherited, `ghx sidecar daemon --stop` and re-run `ask` from a shell that has
|
|
262
|
+
the right variables.
|
|
263
|
+
|
|
229
264
|
### Delegating from a main agent (MCP)
|
|
230
265
|
|
|
231
266
|
A main agent talks to the sidecar through a single MCP tool — one tool it cannot
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gkoreli/ghx",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "Agent-first GitHub code exploration. GraphQL batching, code maps, codemode TypeScript sandbox, MCP server.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"ghx": "npm/bin/ghx"
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
"node": ">=16"
|
|
29
29
|
},
|
|
30
30
|
"optionalDependencies": {
|
|
31
|
-
"@gkoreli/ghx-darwin-arm64": "2.4.
|
|
32
|
-
"@gkoreli/ghx-darwin-x64": "2.4.
|
|
33
|
-
"@gkoreli/ghx-linux-arm64": "2.4.
|
|
34
|
-
"@gkoreli/ghx-linux-x64": "2.4.
|
|
35
|
-
"@gkoreli/ghx-win32-arm64": "2.4.
|
|
36
|
-
"@gkoreli/ghx-win32-x64": "2.4.
|
|
31
|
+
"@gkoreli/ghx-darwin-arm64": "2.4.1",
|
|
32
|
+
"@gkoreli/ghx-darwin-x64": "2.4.1",
|
|
33
|
+
"@gkoreli/ghx-linux-arm64": "2.4.1",
|
|
34
|
+
"@gkoreli/ghx-linux-x64": "2.4.1",
|
|
35
|
+
"@gkoreli/ghx-win32-arm64": "2.4.1",
|
|
36
|
+
"@gkoreli/ghx-win32-x64": "2.4.1"
|
|
37
37
|
}
|
|
38
38
|
}
|