Claude Opus 4.6
Preflight Checklist
- [x] I have searched existing issues for similar behavior reports
- [x] This report does NOT contain sensitive information (API keys, passwords, etc.)
Type of Behavior Issue
Other unexpected behavior
What You Asked Claude to Do
Title: Background task notifications open as editor tabs, cluttering the tab bar
Description:
When Claude Code runs background tasks (via run_in_background), the completion notifications are rendered as new editor tabs with the title <task-notification> <tas.... This creates several problems:
Tab clutter — Each completed background task adds a new tab that looks identical (<task-notification> <tas...), making it hard to distinguish between them or find actual code files
Meaningless tab names — The XML tag content gets truncated, so all notification tabs look the same
Displaces real editor tabs — In a session with multiple background tasks, the notification tabs crowd out the files you're actually working on (see screenshot)
Read-only dead weight — The tabs contain raw XML/notification content that isn't useful to keep open, but they persist until manually closed
Expected behavior:
Task completion notifications should appear in one of:
The Output panel (e.g., "Claude Code" output channel)
A notification toast (bottom-right popup)
The Claude Code chat panel itself
They should NOT open as new editor tabs.
Steps to reproduce:
Use Claude Code in VSCode Remote SSH
Have Claude run a command with run_in_background: true
When the task completes, a new editor tab opens with <task-notification> content
Environment:
VSCode (Windows 11, Remote SSH to Ubuntu 22.04)
Claude Code VSCode extension
Claude Opus 4.6
What Claude Actually Did
Use Claude Code in VSCode Remote SSH
Have Claude run a command with run_in_background: true
When the task completes, a new editor tab opens with <task-notification> content
Environment:
Expected Behavior
Task completion notifications should appear in one of:
The Output panel (e.g., "Claude Code" output channel)
A notification toast (bottom-right popup)
The Claude Code chat panel itself
They should NOT open as new editor tabs.
Files Affected
Permission Mode
Accept Edits was ON (auto-accepting changes)
Can You Reproduce This?
Yes, every time with the same prompt
Steps to Reproduce
Steps to reproduce:
Use Claude Code in VSCode Remote SSH
Have Claude run a command with run_in_background: true
When the task completes, a new editor tab opens with <task-notification> content
Claude Model
Sonnet
Relevant Conversation
Impact
Critical - Data loss or corrupted project
Claude Code Version
Claude Code VSCode extension
Platform
Anthropic API
Additional Context
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗