Skip to content

fix(topic): run title-generation claude -p ephemerally so it stops polluting the IDE session list#2

Merged
amunozdev merged 1 commit into
mainfrom
fix/ephemeral-title-generation
Jun 8, 2026
Merged

fix(topic): run title-generation claude -p ephemerally so it stops polluting the IDE session list#2
amunozdev merged 1 commit into
mainfrom
fix/ephemeral-title-generation

Conversation

@amunozdev

Copy link
Copy Markdown
Owner

Problema

El refinamiento async del tópico invocaba claude -p sin --no-session-persistence, así que cada corrida headless de generación de título persistía su propio transcript bajo ~/.claude/projects/<cwd>/. Esas sesiones huérfanas aparecían en el listado del IDE con el prompt de título ("Genera un título corto...") como preview.

Cambios

  • Agrega --no-session-persistence a la corrida headless (solo aplica con --print) → cero sesiones huérfanas nuevas.
  • Nuevo scripts/cleanup-orphan-sessions.sh para purgar las ya persistidas (dry-run por defecto, --apply para borrar).
  • Test estático que asegura que el flag no se pierda en refactors.
  • Bump a 5.3.3.

Verificación

  • 16/16 tests bats pasan, incluido el nuevo.
  • check-versions ok.
  • Dry-run del cleanup detecta las huérfanas existentes correctamente.

…lluting the IDE session list

The async refine step invoked `claude -p` without --no-session-persistence,
so each headless title-generation run persisted its own transcript under
~/.claude/projects/<cwd>/. Those orphan sessions surfaced in the IDE session
list with the title prompt ('Genera un título corto...') as their preview.

- Add --no-session-persistence to the headless run (only works with --print).
- Add scripts/cleanup-orphan-sessions.sh to purge already-persisted orphans
  (dry-run by default, --apply to delete).
- Add a static test asserting the flag stays present.
- Bump to 5.3.3.
@amunozdev amunozdev merged commit 58bcc4c into main Jun 8, 2026
@amunozdev amunozdev deleted the fix/ephemeral-title-generation branch June 8, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant