Skip to content

Hide agent distractions in Zen mode#318848

Merged
dmitrivMS merged 2 commits into
mainfrom
dev/dmitriv/zen-mode-hide-agent-distractions
May 28, 2026
Merged

Hide agent distractions in Zen mode#318848
dmitrivMS merged 2 commits into
mainfrom
dev/dmitriv/zen-mode-hide-agent-distractions

Conversation

@dmitrivMS
Copy link
Copy Markdown
Contributor

Fixes #318695

In Zen mode the focus is on the text with minimal distractions, but the agent chat indicators in the command center (sparkle pill, in-progress counts, attention badges, color changes) remained visible.

This change forces the agent title bar status widget into hidden mode while inZenMode is true, and updates the related agent-status-enabled / unified-agents-bar body classes accordingly so the default command center search box is restored. The widget is re-rendered when Zen mode toggles.

Copilot AI review requested due to automatic review settings May 28, 2026 20:44
@dmitrivMS dmitrivMS self-assigned this May 28, 2026
@dmitrivMS dmitrivMS added the workbench-zen Full screen 'Zen' view issues label May 28, 2026
@dmitrivMS dmitrivMS enabled auto-merge (squash) May 28, 2026 20:45
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Hides the agent title bar status widget while Zen mode is active by forcing getAgentStatusSettingMode to return 'hidden' when InEditorZenModeContext is true, and by re-rendering the widget plus updating the related body classes when Zen mode toggles.

Changes:

  • Add a Zen mode short-circuit in shouldForceHiddenAgentStatus using InEditorZenModeContext.
  • Listen to context key changes in the widget to force a re-render when Zen mode toggles.
  • Include InEditorZenModeContext.key in the AgentTitleBarStatusRendering context listener so agent-status-enabled / unified-agents-bar body classes are recomputed.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.ts Threads IContextKeyService through shouldForceHiddenAgentStatus/getAgentStatusSettingMode, adds Zen-mode-aware re-render and body-class updates.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

@dmitrivMS dmitrivMS merged commit f0fd9f0 into main May 28, 2026
25 checks passed
@dmitrivMS dmitrivMS deleted the dev/dmitriv/zen-mode-hide-agent-distractions branch May 28, 2026 22:04
@vs-code-engineering vs-code-engineering Bot added this to the 1.123.0 milestone May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

workbench-zen Full screen 'Zen' view issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove agent distractions in zen mode

3 participants