Hooks emit raw `jq: command not found` on every turn when jq is absent; no guard or actionable message
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 75/100
Direzione di ricerca
Reproduce the missing-jq case by removing jq from PATH, then inspect the unguarded call sites in scripts/build-payload.sh, scripts/on-stop.sh, and scripts/emit-terminal-sequence.sh. Ensure hook runs no longer emit repeated raw jq or fallback errors when jq is absent, and provide the expected graceful behavior described in the issue.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
jq is listed under Requirements in the README, but no script checks that it is actually present. When it is missing, every hook invocation leaks raw shell errors into the Claude Code UI on every single turn, and nothing in the output tells the user that jq is the cause.
Observed
On a machine without jq on PATH, each Stop produced:
Stop hook error: Failed with non-blocking status code:
.../scripts/build-payload.sh: line 49: jq: command not found
.../scripts/emit-terminal-sequence.sh: line 82: /dev/tty: No such device or address
.../scripts/emit-terminal-sequence.sh: line 85: jq: command not found
The user is shown a wall of shell noise per turn with no hint that installing jq resolves it. Diagnosing it requires reading the plugin source.
Secondary effect
The absent jq also breaks Claude Code version detection, which pushes emit_terminal_sequence() into the /dev/tty fallback branch. That compounds the noise with the separate redirection defect tracked in #38.
Expected
A single guard at hook entry that degrades gracefully, for example:
if ! command -v jq >/dev/null 2>&1; then
exit 0
fi
Or, if a visible hint is preferred, one actionable line (claude-code-warp: jq is required, install it with your package manager) instead of a per-turn stack of command not found.
Unguarded jq call sites on current main: build-payload.sh (5), on-stop.sh (4), emit-terminal-sequence.sh (2).
Reproduction
- Make sure
jqis not onPATH - Enable the plugin in Claude Code
- Send any prompt — the errors appear at every
Stop
Environment
- Plugin
claude-code-warpv2.2.0 - Claude Code 2.1.269
- Warp
v0.2026.09.09.08.26.stable.02, Linux, bash 5.2
Workaround
Installing jq through the system package manager silences it.
- Lingua principale
- Shell
- Stelle
- 232
- Fork
- 56
- Merge medio
- 4g 15h
- PR unite (30g)
- 1
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di warpdotdev/claude-code-warp
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
warpdotdev/claude-code-warp#63 · 2 commenti ·
Tutte le issue di warpdotdev/claude-code-warp
Issue simili
-
Missing icon: BudsLinkAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
mattpocock/skills#1174 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
pnpm/pnpm#16635 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
documentation good first issue hacktoberfest
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
-
area/tests theme/ci-dx
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno