Respect CLAUDE_CODE_DISABLE_TERMINAL_TITLE in UserPromptSubmit hook
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 62/100
Direzione di ricerca
Inizia da hooks/hooks.json e segui il percorso UserPromptSubmit attraverso scripts/on-prompt-submit.sh, scripts/build-payload.sh e scripts/warp-notify.sh. Verifica come CLAUDE_CODE_DISABLE_TERMINAL_TITLE=1 possa impedire l’invio della query del prompt o della notifica, quindi verifica che il plugin non sovrascriva più un titolo del terminale gestito dall’utente, mentre le notifiche normali continuano a funzionare.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
The UserPromptSubmit hook in on-prompt-submit.sh extracts the user's prompt text and sends it to Warp via OSC 777. Warp then displays this as the tab title.
Claude Code has an env var CLAUDE_CODE_DISABLE_TERMINAL_TITLE=1 to disable terminal title updates, but the Warp plugin ignores it — it sends the prompt text regardless. Users who have explicitly opted out of title updates (e.g. because they set their own tab title via kitty @ set-tab-title or shell hooks) still get their title overwritten by the plugin.
Expected behavior
When CLAUDE_CODE_DISABLE_TERMINAL_TITLE=1 is set, the plugin should either:
- Skip sending the
queryfield in theprompt_submitevent, or - Skip the
UserPromptSubmitnotification entirely, or - Let Warp know the user doesn't want title updates (so Warp can decide)
Current behavior
on-prompt-submit.sh unconditionally reads the prompt, truncates to 200 chars, and sends it via warp-notify.sh. Warp uses this to set the tab title. There's no way to disable this without disabling the entire plugin.
Context
The relevant code path:
hooks/hooks.jsonregisters aUserPromptSubmithookscripts/on-prompt-submit.shextracts$QUERYfrom stdin JSONscripts/build-payload.shwraps it in a structured payloadscripts/warp-notify.shemitsOSC 777;notify;warp://cli-agent;<payload>
Why this matters
This issue interacts with a broader Warp limitation: Warp only updates its tab CWD/branch display during the prompt rendering cycle (see warpdotdev/Warp#9125). For workflows that switch git worktrees and immediately launch Claude Code, the tab never updates because the prompt never redraws. Users who work around this by setting their own tab title (via shell functions or set_tab_title) have their title overwritten by the plugin's UserPromptSubmit hook — even when CLAUDE_CODE_DISABLE_TERMINAL_TITLE=1 is set.
- 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
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
Piwigo/piwigo-docker#18 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
docs: tutorial 7 still references removed A2AStarletteApplicationForse già presa @FOWEPJF255 l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
a2aproject/A2A#2321 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
OpenSlides/OpenSlides#7180 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno