session-flow: continue-in-background dirty-tree gate ignores worktree.bgIsolation
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 76/100
Direzione di ricerca
Leggi plugins/session-flow/skills/continue-in-background/SKILL.md, in particolare il passaggio 1, « Dirty-tree gate », e confronta il modo in cui il plugin source-control legge l’impostazione in plugins/source-control/hooks/worktree-create-gate.sh. Aggiorna il controllo e il rapporto di avvio per tenere conto di worktree.bgIsolation quando è impostato su none; verifica che il motivo del rifiuto e l’avviso corrispondano al comportamento previsto dall’issue.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
/session-flow:continue-in-background's dirty-tree gate assumes a background session always moves into an isolated git worktree before editing, unless the current session is already in a linked worktree. The worktree.bgIsolation setting can turn that isolation off, and then the background session edits the working copy directly. The gate does not read the setting, so its reasoning and outcome are wrong in that configuration.
Affected area / component
plugins/session-flow/skills/continue-in-background/SKILL.md (step 1, "Dirty-tree gate")
Steps to reproduce
- In a git repository, set
"worktree": {"bgIsolation": "none"}in.claude/settings.json. - Leave an uncommitted change in the checkout.
- Run
/session-flow:continue-in-background.
Expected behavior
The gate accounts for worktree.bgIsolation. With isolation off, the launched session sees the uncommitted changes, so the "changes won't carry over" reason for refusing does not apply. The real risk is different: the background session and the user would edit the same checkout at the same time, and the launch report should say so.
Actual behavior
SKILL.md:124-130: "Background sessions move into an isolated git worktree (a fresh checkout) before editing files (https://code.claude.com/docs/en/agent-view), so OTHER uncommitted changes in this checkout would NOT carry into the launched agent's edits. Any such changes → do NOT launch". The only exception is a session already inside a linked worktree.- Live docs, https://code.claude.com/docs/en/agent-view#how-file-edits-are-isolated (read 2026-10-12): "To turn off worktree isolation for a repository where git worktrees are impractical, set
worktree.bgIsolationto"none". Background sessions then edit your working copy directly without moving into a worktree first." The same section lists other skip cases (a session moved to the background with/background, a write outside the working directory). - Nothing in
plugins/session-flow/mentionsbgIsolation(grep -rn bgIsolation plugins/session-flowreturns nothing). The source-control plugin already names the setting (plugins/source-control/hooks/worktree-create-gate.sh:64).
Suggested fix
Read the effective worktree.bgIsolation value before the dirty-tree check. When it is "none", skip the "changes won't carry over" refusal and instead warn that the launched session will edit this checkout in place, alongside the user. This is a gate-logic change, not a pointer fix.
Environment
session-flow on main as of 2026-10-12.
Found during the upstream-pointer sweep (PRs #7061-#7274).
- Lingua principale
- Shell
- Stelle
- 22
- Fork
- 2
- Merge medio
- 6h 42m
- PR unite (30g)
- 902
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
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 melodic-software/claude-code-plugins
-
knowledge: docpage-digest dual verification defines no verdict vocabulary or pass/fail thresholdApertaneeds-human needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
melodic-software/claude-code-plugins#7286 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
needs-triage priority: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
melodic-software/claude-code-plugins#7282 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
needs-triage priority: medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
melodic-software/claude-code-plugins#7273 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
needs-human needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
melodic-software/claude-code-plugins#7232 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue needs-triage priority: high
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
melodic-software/claude-code-plugins#7223 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di melodic-software/claude-code-plugins
Issue simili
-
[cifuzz] "Minimizing crashes reduces fuzzing time" is logged for every batch run, even with minimize-crashes offForse già presa @martinfrancois l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
alunduil/alunduil-chezmoi#914 ·
I maintainer di solito rispondono entro 1 giorno
-
cao-evolution cao-evolution:compiler-security
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100
githubnext/gh-aw-cao#17586 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno