fix(topic): run title-generation claude -p ephemerally so it stops polluting the IDE session list#2
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problema
El refinamiento async del tópico invocaba
claude -psin--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
--no-session-persistencea la corrida headless (solo aplica con--print) → cero sesiones huérfanas nuevas.scripts/cleanup-orphan-sessions.shpara purgar las ya persistidas (dry-run por defecto,--applypara borrar).Verificación
check-versionsok.