{"version":"2.1.331","anchor":"plugin-surface-host-setbeneath-setwindowfocused-and-setmot","canonical_anchor":"plugin-surface-host-setbeneath-setwindowfocused-and-setmot","heading":"Plugin surfaces are told about window focus, reduced motion and what lies beneath them","tier":"soon","area":"Plugins","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/plugin-surface-host-setbeneath-setwindowfocused-and-setmot","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### Plugin surfaces are told about window focus, reduced motion and what lies beneath them\n\nRenderer and plugin surfaces gain setWindowFocused, setMotionReduced and setBeneath, plus promptFloat, underlay and underFloat layout options\n\n**Unclear.** Which programs send these messages, and whether plugins can use them yet, is not shown.\n\n**What**\n\nA plugin surface is an area of the terminal screen that a plugin draws. Plugins are add-ons that extend Claude Code. Surfaces and the renderer that draws the screen now receive more information about their surroundings:\n\n- `setWindowFocused` and `setMotionReduced` are passed to the renderer from the current state when it is created. They tell it whether the terminal window has focus and whether reduced motion is on.\n\n- The plugin surface host and its message format gain three actions: `setWindowFocused`, `setMotionReduced` and `setBeneath`. `setBeneath` carries x, y, columns, rows and a kind of `'interface'` or `'conversation'`, describing what lies under the surface.\n\n- The layout code gains a `promptFloat` slot, an `underlay` slot and an `underFloat` prop with the values `'covered'`, `'kept'` and `'text'`.\n\n- A new `fillsWindow` option for modal windows is added in the same layout code.\n\n- A `blur` style is now checked for valid values.\n\n**Why**\n\nPlugin-drawn surfaces can now respond to whether the window has focus, whether reduced motion is set, and what is drawn underneath them. This prepares the ground for floating overlays near the prompt.\n\n- Area: Plugins\n- Tier: Nothing to try yet\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}