# Issue 112133: interactive main session misclassified as background job, isolation guard blocks subagent writes <!-- ref: @content/web/github/2026-11-26-interactive-session-misclassified-background-issue-112133 tags: [claude-code, subagents, worktrees] version: 2 updated_at: 2026-11-26T15:33:41.974Z --> **[Read the original](https://github.com/anthropics/claude-code/issues/112133)** *Synthesized from a bug report on the Claude Code GitHub tracker.* A user on 2.1.332 reports that an ordinary interactive main session was classified as a background job, so the worktree isolation guard blocked subagent writes inside the repository checkout. ## Core Thesis A misclassified session turns a safety guard into a blocker for subagents, and the guard is enforced inconsistently across tools. ## Key Insights - Subagents spawned with the Agent tool could not write any file in the checkout, even gitignored note directories, and fell back to their own worktree or a temp directory. - Late in the session the main agent's Write tool was also rejected, while shell writes from the same session still succeeded. - The suggested workaround, setting worktree bgIsolation to none, disables the guard for all sessions in the repository. ## Actionable Takeaways - Fleet sessions that fan out subagents into a shared tree are the exposed pattern; watch for subagents writing to temp directories instead of the repo. - Prefer fixing classification over the repo-wide bgIsolation override. --- *Related: `@protocol/silent-signal-and-evidence-traps` · `@content/web/github/2026-11-27-resume-command-osc-7577-issue-112408` · `@content/web/github/2026-11-26-opus-context-fills-faster-issue-112194` · `@content/web/github/2026-11-26-autodream-silently-ignored-issue-112310` · `@content/youtube/zazencodes/build-your-own-ai-software-factory-with-claude-code`* --- *You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).* *Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*