session-flow: continue-in-background dirty-tree gate ignores worktree.bgIsolation
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
Research direction
Read plugins/session-flow/skills/continue-in-background/SKILL.md, especially step 1, “Dirty-tree gate,” and compare how the source-control plugin reads the setting in plugins/source-control/hooks/worktree-create-gate.sh. Update the gate and launch report to account for worktree.bgIsolation set to none; verify the refusal reason and warning match the issue’s expected behavior.
Written by the indexing model from the issue text.
Description
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).
- Dominant language
- Shell
- Stars
- 22
- Forks
- 2
- Avg merge
- 6h 42m
- Merged PRs (30d)
- 902
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from melodic-software/claude-code-plugins
-
knowledge: docpage-digest dual verification defines no verdict vocabulary or pass/fail thresholdOpenneeds-human needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
melodic-software/claude-code-plugins#7286 · 1 comment ·
Maintainers usually reply within 1 day
-
needs-triage priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
melodic-software/claude-code-plugins#7282 · 1 comment ·
Maintainers usually reply within 1 day
-
needs-triage priority: medium
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
melodic-software/claude-code-plugins#7273 · 1 comment ·
Maintainers usually reply within 1 day
-
needs-human needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
melodic-software/claude-code-plugins#7232 · 1 comment ·
Maintainers usually reply within 1 day
-
good first issue needs-triage priority: high
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
melodic-software/claude-code-plugins#7223 · 1 comment ·
Maintainers usually reply within 1 day
All issues in melodic-software/claude-code-plugins
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
[Linux] --calibrate combined with --model silently falls through to plain re-setup (setup.py:4958)Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day