session-flow: continue-in-background dirty-tree gate ignores worktree.bgIsolation
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 76/100
調査の方向性
plugins/session-flow/skills/continue-in-background/SKILL.md、特に手順1の「Dirty-tree gate」を読み、source-controlプラグインがplugins/source-control/hooks/worktree-create-gate.shで設定をどのように読み取るか比較してください。worktree.bgIsolationがnoneに設定されている場合を考慮するよう、ゲートと起動レポートを更新してください。拒否理由と警告がissueで期待されている動作と一致することを確認してください。
索引モデルが issue の本文から書いたものです。
説明
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).
- 主要言語
- Shell
- スター
- 22
- フォーク
- 2
- 平均マージ
- 6時間 42分
- マージ済み PR(30日)
- 902
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
melodic-software/claude-code-plugins のほかの issue
-
knowledge: docpage-digest dual verification defines no verdict vocabulary or pass/fail thresholdオープンneeds-human needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
melodic-software/claude-code-plugins#7286 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
needs-triage priority: low
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
melodic-software/claude-code-plugins#7282 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
needs-triage priority: medium
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
melodic-software/claude-code-plugins#7273 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
needs-human needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
melodic-software/claude-code-plugins#7232 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
good first issue needs-triage priority: high
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
melodic-software/claude-code-plugins#7223 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
melodic-software/claude-code-plugins の issue をすべて見る
似ている issue
-
Install software-properties-common before adding the Suricata PPA対応中かも @himanishpuri が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
Ergane-Foundation/vajra#55 · コメント 2 件 ·
メンテナーはふだん 2 日以内に返信
-
[cifuzz] "Minimizing crashes reduces fuzzing time" is logged for every batch run, even with minimize-crashes off対応中かも @martinfrancois が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
alunduil/alunduil-chezmoi#914 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
obra/superpowers#2505 ·
メンテナーはふだん 3 日以内に返信
-
cao-evolution cao-evolution:compiler-security
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
githubnext/gh-aw-cao#17586 ·
メンテナーはふだん 1 日以内に返信