Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Respect CLAUDE_CODE_DISABLE_TERMINAL_TITLE in UserPromptSubmit hook

Abierto Apto para principiantes
#24 0 comentarios 0 reacciones 0 asignados Ver en GitHub

@Saradhii ya está trabajando en esto.

Desde el 30/4/2026.

  • #33 de @Saradhii — abierto

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
62/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
shell
Área
cli

Línea de trabajo

Comienza con hooks/hooks.json y sigue la ruta de UserPromptSubmit a través de scripts/on-prompt-submit.sh, scripts/build-payload.sh y scripts/warp-notify.sh. Comprueba cómo CLAUDE_CODE_DISABLE_TERMINAL_TITLE=1 puede impedir que se envíen la consulta del prompt o la notificación y, a continuación, verifica que el plugin ya no sobrescriba un título de terminal gestionado por el usuario mientras las notificaciones normales siguen funcionando.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Shell
Estrellas
232
Forks
56
Merge medio
4 d 15 h
PR fusionados (30 d)
1

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de warpdotdev/claude-code-warp

Todos los issues de warpdotdev/claude-code-warp

Issues similares

Más issues de Shell/Bash

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.