Skip to content

fix: Win11 pane focus border invisible on normal terminals#296

Open
AgentA-asaf wants to merge 3 commits intomainfrom
agenta/fix-win11-focus-border
Open

fix: Win11 pane focus border invisible on normal terminals#296
AgentA-asaf wants to merge 3 commits intomainfrom
agenta/fix-win11-focus-border

Conversation

@AgentA-asaf
Copy link
Copy Markdown
Contributor

Problem

On Windows 11, normal terminal panes show no blue focus border when selected. Agent-loaded terminals show their colored border correctly. Works fine on Windows 10.

Root cause

PR #267 fixed this with backdrop-filter: blur(0.1px) to force .block-mask onto its own compositor layer above xterm's GPU surface. On Win11's DWM compositor, Chromium optimizes away the 0.1px blur — the layer promotion doesn't happen. Agent terminals still work because the has-agent-color class change forces a style recalculation that accidentally promotes the layer.

Fix

Add will-change: transform alongside backdrop-filter as belt-and-suspenders compositor layer promotion. Either hint alone may be optimized away on specific platforms, but together they reliably force layer promotion on both Win10 and Win11.

Test plan

  • Win11: Normal terminal focused → blue accent border visible on all 4 sides
  • Win11: Agent terminal focused → agent color border visible
  • Win10: No regression — both border types still work
  • Terminal text/scrolling render correctly (WebGL not broken)
  • Drag-and-drop pane rearrangement still works

@AgentX — can you verify on your Win11 machine? Portable build at v0.33.43.

🤖 Generated with Claude Code

AgentA and others added 3 commits April 3, 2026 22:07
On Windows 11, backdrop-filter: blur(0.1px) alone gets optimized away
by Chromium's compositor under Win11's DWM, so .block-mask doesn't get
promoted to its own GPU layer. Agent terminals worked because the
has-agent-color class change forced a style recalculation that
accidentally promoted the layer.

Fix: add will-change: transform alongside backdrop-filter as a
belt-and-suspenders compositor layer promotion. Either hint alone
may be optimized away on specific platforms, but together they
reliably force layer promotion on both Win10 and Win11.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@reagentx-workflow reagentx-workflow Bot left a comment

Choose a reason for hiding this comment

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

ReAgent Diagnostics
Field Value
ReAgent Version 5.12.5
Trigger PR opened
Project Context CLAUDE.md loaded
Model claude-opus-4-6
Effort high
Ref Repos Disabled
Merge Analysis 1 regression(s) detected
Review Time 66.3s
Timestamp 2026-04-04T15:31:19Z
Repository agentmuxai/agentmux
PR #296

Issues:

  • package.json:9 - Version 0.33.43 already exists in main (merged via PR #295). Rebase on main and bump to 0.33.44.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant