Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Respect CLAUDE_CODE_DISABLE_TERMINAL_TITLE in UserPromptSubmit hook

Aperta Adatta ai principianti
#24 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

@Saradhii ci sta già lavorando.

Dal 30/4/2026.

  • #33 di @Saradhii — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
62/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
shell
Ambito
cli

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 query field in the prompt_submit event, or
  • Skip the UserPromptSubmit notification 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.json registers a UserPromptSubmit hook
  • scripts/on-prompt-submit.sh extracts $QUERY from stdin JSON
  • scripts/build-payload.sh wraps it in a structured payload
  • scripts/warp-notify.sh emits OSC 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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di warpdotdev/claude-code-warp

Tutte le issue di warpdotdev/claude-code-warp

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.