Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

session-flow: continue-in-background dirty-tree gate ignores worktree.bgIsolation

Đang mở Phù hợp với người mới
#7,288 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
76/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
git, shell
Lĩnh vực
tooling

Hướng nghiên cứu

Đọc plugins/session-flow/skills/continue-in-background/SKILL.md, đặc biệt là bước 1, “Dirty-tree gate”, và so sánh cách plugin source-control đọc cài đặt trong plugins/source-control/hooks/worktree-create-gate.sh. Cập nhật cổng kiểm tra và báo cáo khởi chạy để tính đến trường hợp worktree.bgIsolation được đặt thành none; xác minh lý do từ chối và cảnh báo khớp với hành vi mà issue mong đợi.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

needs-triage priority: medium

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

  1. In a git repository, set "worktree": {"bgIsolation": "none"} in .claude/settings.json.
  2. Leave an uncommitted change in the checkout.
  3. 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.bgIsolation to "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/ mentions bgIsolation (grep -rn bgIsolation plugins/session-flow returns 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).

Ngôn ngữ chính
Shell
Star
22
Fork
2
Merge trung bình
6 giờ 42 phút
Pull request đã merge (30 ngày)
902

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của melodic-software/claude-code-plugins

Tất cả issue của melodic-software/claude-code-plugins

Issue tương tự

Thêm issue về Shell/Bash

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.