Skip to content

graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs

Python

Recede unselected splits with a wash, not a desktop hole

justrachaa2eb87224ca
diff --git a/apps/native/components/primitives/ChatComposer.tsx b/apps/native/components/primitives/ChatComposer.tsx
index 532fb26d..6cad0b68 100644
--- a/apps/native/components/primitives/ChatComposer.tsx
+++ b/apps/native/components/primitives/ChatComposer.tsx
@@ -168,7 +168,7 @@ export default function ChatComposer() {
aria-label="Send"
disabled={!canSend}
onClick={send}
- className="flex size-7 items-center justify-center rounded-[8px]
+ className="flex size-7 items-center justify-center rounded-full
transition-[background-color,color,transform] duration-200 enabled:active:scale-[0.96]"
style={{
background: canSend ? "var(--ink)" : "var(--line-strong)",
diff --git a/apps/native/components/primitives/PromptBar.tsx b/apps/native/components/primitives/PromptBar.tsx
index c514cf8d..6d82c869 100644
--- a/apps/native/components/primitives/PromptBar.tsx
+++ b/apps/native/components/primitives/PromptBar.tsx
@@ -12,6 +12,7 @@ import ComposerAttachments from "./ComposerAttachments";
import { useComposerSweep } from "./useComposerSweep";
import { useComposerSize } from "./useComposerSize";
import { useComposerDraft } from "./useComposerDraft";
+import { useSteerArm } from "./useSteerArm";
import type { AcpCommand } from "@/lib/acp";
import {
filesFrom,
@@ -310,6 +311,7 @@ export default function PromptBar({
const canSend = !disabled && uploads === 0 && (draft.trim().length > 0 || attachments.length > 0);
const showStop = busy;
+ const steerArm = useSteerArm(busy && !disabled, onSteerQueued);
const send = () => {
if (!canSend) return;
if (/^\/(effort|reasoning)$/.test(draft.trim()) && model.effortLevels?.length) { modelRef.current?.dispatchEvent(new Event("graff-effort-open")); setDraft(""); return; }
@@ -359,6 +361,11 @@ export default function PromptBar({
{modelOpen && <ModelPicker models={catalog} selected={model} anchor={modelRef} onClose={() => setModelOpen(false)}
onSelect={next => { selectModel(next); inputRef.current?.focus({ preventScroll: true }); }} />}
+ {(steerArm.left > 0 || steerArm.steering) && (
+ <p role="status" className="mb-1.5 px-1 text-[12px] font-medium text-ink-2">
+ {steerArm.steering ? "Steering…" : `Enter again in ${steerArm.left} to steer`}
+ </p>
+ )}
{/* ── composer ───────────────────────────────────── */}
<div
onDragOver={(event) => {
@@ -471,7 +478,7 @@ export default function PromptBar({
if (event.key === "Enter" && (event.metaKey || event.ctrlKey) && !event.shiftKey && !event.altKey && busy && !disabled && onSteerQueued) {
event.preventDefault();
event.stopPropagation();
- if (!event.repeat) onSteerQueued();
+ if (!event.repeat) steerArm.fire();
return;
}
// Other modified keys belong to desktop shortcuts.
@@ -500,6 +507,7 @@ export default function PromptBar({
if (event.key === "Enter" && !event.shiftKey) {
event.preventDefault();
event.stopPropagation();
+ if (!canSend && steerArm.consumeEnter()) return;
send();
}
}}
@@ -549,9 +557,7 @@ export default function PromptBar({
aria-label={showStop ? "Stop" : "Send"}
disabled={showStop ? !onStop : !canSend}
onClick={showStop ? onStop : send}
- className={`flex size-7 shrink-0 items-center justify-center disabled:opacity-30 disabled:cursor-not-allowed transition-[background-color,color,transform] duration-200 enabled:active:scale-[0.94] ${
- pill ? "rounded-full" : "rounded-[8px]"
- } ${wide ? "col-start-5 row-start-2" : "col-start-5 row-start-1"}`}
+ className={`flex size-7 shrink-0 items-center justify-center rounded-full disabled:opacity-30 disabled:cursor-not-allowed transition-[background-color,color,transform] duration-200 enabled:active:scale-[0.94] ${wide ? "col-start-5 row-start-2" : "col-start-5 row-start-1"}`}
style={{
background: showStop || canSend ? "var(--ink)" : "var(--line-strong)",
color: showStop || canSend ? "var(--surface)" : "var(--ink-2)",
diff --git a/apps/native/components/primitives/SidebarNav.tsx b/apps/native/components/primitives/SidebarNav.tsx
index 622bb3d3..816ddbeb 100644
--- a/apps/native/components/primitives/SidebarNav.tsx
+++ b/apps/native/components/primitives/SidebarNav.tsx
@@ -201,6 +201,11 @@ export default function SidebarNav({
}: SidebarNavProps) {
const [collapsed, setCollapsed] = useState(false);
useEffect(() => { onCollapsedChange?.(collapsed); }, [collapsed, onCollapsedChange]);
+ useEffect(() => {
+ const toggle = () => setCollapsed(value => !value);
+ window.addEventListener("graff-toggle-sidebar", toggle);
+ return () => window.removeEventListener("graff-toggle-sidebar", toggle);
+ }, []);
useEffect(() => { if (onCloseNavigation) setCollapsed(false); }, [!!onCloseNavigation]);
const [internalNav, setInternalNav] = useState("chats");
const currentNav = activeNav ?? internalNav;
@@ -313,6 +318,7 @@ export default function SidebarNav({
ref={collapseButtonRef}
type="button"
aria-label={onCloseNavigation ? "Close navigation" : "Collapse sidebar"}
+ title={onCloseNavigation ? "Close navigation" : "Collapse sidebar (⌘B)"}
aria-hidden={collapsed}
tabIndex={collapsed ? -1 : 0}
onClick={collapse}
@@ -324,6 +330,7 @@ export default function SidebarNav({
ref={expandButtonRef}
type="button"
aria-label="Expand sidebar"
+ title="Expand sidebar (⌘B)"
aria-hidden={!collapsed}
tabIndex={collapsed ? 0 : -1}
onClick={() => { setCollapsed(false); requestAnimationFrame(() => collapseButtonRef.current?.focus()); }}
diff --git a/apps/native/components/primitives/useSteerArm.ts b/apps/native/components/primitives/useSteerArm.ts
new file mode 100644
index 00000000..9f194dee
--- /dev/null
+++ b/apps/native/components/primitives/useSteerArm.ts
@@ -0,0 +1,41 @@
+import { useEffect, useRef, useState } from "react";
+
+/** Empty Enter while a turn runs arms a 3s "press again to steer"; the second Enter forces it. */
+export function useSteerArm(busy: boolean, onSteer?: () => void) {
+ const [left, setLeft] = useState(0);
+ const [steering, setSteering] = useState(false);
+ const steer = useRef(onSteer);
+ steer.current = onSteer;
+
+ useEffect(() => {
+ if (!busy) { setLeft(0); setSteering(false); }
+ }, [busy]);
+
+ useEffect(() => {
+ if (left <= 0) return;
+ const id = window.setTimeout(() => setLeft(value => value - 1), 1000);
+ return () => window.clearTimeout(id);
+ }, [left]);
+
+ useEffect(() => {
+ if (!steering) return;
+ const id = window.setTimeout(() => setSteering(false), 1400);
+ return () => window.clearTimeout(id);
+ }, [steering]);
+
+ const fire = () => {
+ if (!steer.current) return;
+ steer.current();
+ setLeft(0);
+ setSteering(true);
+ };
+
+ const consumeEnter = () => {
+ if (!busy || !steer.current) return false;
+ if (left > 0) { fire(); return true; }
+ setLeft(3);
+ return true;
+ };
+
+ return { left, steering, consumeEnter, fire };
+}
diff --git a/apps/native/components/site/ChatSplitLayout.tsx b/apps/native/components/site/ChatSplitLayout.tsx
index 1bfdab07..b74df3f3 100644
--- a/apps/native/components/site/ChatSplitLayout.tsx
+++ b/apps/native/components/site/ChatSplitLayout.tsx
@@ -39,7 +39,9 @@ export default function ChatSplitLayout({ threads, liveChatIds, activeId, direct
const geometry=useMemo(()=>splitGeometry(tree),[tree]);
return <div data-chat-layout className="relative flex min-h-0 min-w-0 flex-1" style={{flexDirection:direction}}>
{threads.map((thread,index)=>
- <section key={thread.id} data-chat={thread.id} data-focused={thread.id===activeId} aria-label={`Chat pane ${index+1}`}
+ <section key={thread.id} data-chat={thread.id} data-focused={thread.id===activeId}
+ data-glass={split && thread.id !== activeId ? "true" : undefined}
+ aria-label={`Chat pane ${index+1}`}
onPointerDownCapture={()=>{if(thread.id!==activeId)onFocus(thread.id);}}
onFocusCapture={()=>{if(thread.id!==activeId)onFocus(thread.id);}}
style={{...paneStyle(geometry.panes.find(p=>p.id===thread.id)!.box),minHeight:0,borderColor:split&&thread.id===activeId?'var(--accent)':undefined}}
diff --git a/apps/native/components/site/DesktopUpdates.tsx b/apps/native/components/site/DesktopUpdates.tsx
index c04b6f03..70401a75 100644
--- a/apps/native/components/site/DesktopUpdates.tsx
+++ b/apps/native/components/site/DesktopUpdates.tsx
@@ -81,7 +81,7 @@ export default function DesktopUpdates() {
data-desktop-update-settings
aria-expanded={open}
aria-haspopup="dialog"
- className="pointer-events-auto flex h-8 items-center gap-1.5 rounded-[8px] border border-line bg-page px-2.5 text-[12px] font-medium text-ink-2 shadow-hairline hover:bg-hover hover:text-ink"
+ className="pointer-events-auto flex h-7 items-center rounded-[7px] px-2.5 text-[12.5px] font-medium text-ink-2 hover:bg-hover hover:text-ink"
onClick={event => { const rect = event.currentTarget.getBoundingClientRect(); setPlacement({ top: rect.bottom + 8, right: Math.max(12, window.innerWidth - rect.right) }); setOpen(value => !value); }}
>
Updates
diff --git a/apps/native/components/site/GraffHarness.tsx b/apps/native/components/site/GraffHarness.tsx
index 46e022f3..6ef275f9 100644
--- a/apps/native/components/site/GraffHarness.tsx
+++ b/apps/native/components/site/GraffHarness.tsx
@@ -512,6 +512,7 @@ export default function GraffHarness() {
onTabPointerDown={tabDrag.begin} onTabClickCapture={tabDrag.suppressClick} />
</div>}
fill
+ className="bg-canvas"
recents={recents.filter(recent => !chats.some(chat => chat.session === recent.id))}
recentsTotal={storedTotal}
agentsCount={workingAgents}
diff --git a/apps/native/components/site/chat-pane.module.css b/apps/native/components/site/chat-pane.module.css
index 4ed43d87..86341774 100644
--- a/apps/native/components/site/chat-pane.module.css
+++ b/apps/native/components/site/chat-pane.module.css
@@ -2,6 +2,19 @@
container: chat-pane / size;
}
+/* Unselected splits keep their transcript. A light wash recedes them; the
+ * focused pane stays the working surface (accent border). */
+.pane[data-glass="true"]::after {
+ content: "";
+ position: absolute;
+ inset: 0;
+ z-index: 1;
+ pointer-events: none;
+ border-radius: inherit;
+ background: color-mix(in srgb, var(--canvas) 28%, transparent);
+ box-shadow: inset 0 1px 0 color-mix(in srgb, var(--surface) 35%, transparent);
+}
+
/* A split is measured by its own width, not by the desktop window. */
@container chat-pane (max-width: 540px) {
.pane [data-transcript-content] {
diff --git a/apps/native/components/site/useDesktopShortcuts.ts b/apps/native/components/site/useDesktopShortcuts.ts
index d429cfa2..bf69b962 100644
--- a/apps/native/components/site/useDesktopShortcuts.ts
+++ b/apps/native/components/site/useDesktopShortcuts.ts
@@ -65,6 +65,7 @@ export function useDesktopShortcuts(actions: Actions) {
else if(k==='enter'&&e.shiftKey)handled=dispatch('split-zoom');
else if(k==='o'&&!e.shiftKey)handled=dispatch('workspace');
else if(k==='\\'){a.toggleSplit();handled=true;}
+ else if(k==='b'&&!e.shiftKey){window.dispatchEvent(new CustomEvent('graff-toggle-sidebar'));handled=true;}
else if(['[',']','{','}'].includes(k)){cycle(e.shiftKey?a.chats.map(c=>c.id):a.columns,k==='['||k==='{'?-1:1);handled=true;}
else if(!e.shiftKey&&/^[1-9]$/.test(k)){const chat=k==='9'?a.chats.at(-1):a.chats[Number(k)-1];if(chat)focus(chat.id);handled=true;}
else if(k==='enter'||(e.ctrlKey&&k==='f')){void desktop()?.windowControl?.('fullscreen');handled=true;}
diff --git a/apps/native/electron/build.sh b/apps/native/electron/build.sh
index 6ee2e84e..71f5d531 100644
--- a/apps/native/electron/build.sh
+++ b/apps/native/electron/build.sh
@@ -36,12 +36,12 @@ cp "$(command -v bun)" "$resources/bun"
cp "$root/zig-out/bin/graff" "$resources/graff"
xcrun clang -O2 -Wall -Wextra -mmacosx-version-min=14.0 "$here/native/terminal.c" -o "$resources/native/graff-terminal"
xcrun swiftc -O -emit-library -module-name GraffActivity -target arm64-apple-macosx14.0 \
- "$here/native/Activity.swift" "$here/native/ComputerUse.swift" -o "$resources/native/libGraffActivity.dylib" \
+ "$here/native/Activity.swift" "$here/native/ComputerUse.swift" "$here/native/Glass.swift" -o "$resources/native/libGraffActivity.dylib" \
-Xlinker -install_name -Xlinker @rpath/libGraffActivity.dylib
xcrun clang -O2 -bundle -undefined dynamic_lookup -mmacosx-version-min=14.0 \
-I "$ui/node_modules/node-api-headers/include" "$here/native/activity.c" \
-L "$resources/native" -lGraffActivity -Wl,-rpath,@loader_path -o "$resources/native/activity.node"
-/usr/libexec/PlistBuddy -c 'Set :CFBundleIdentifier dev.codegraff.electron.local' "$bundle/Contents/Info.plist"
+/usr/libexec/PlistBuddy -c 'Set :CFBundleIdentifier dev.codegraff' "$bundle/Contents/Info.plist"
/usr/libexec/PlistBuddy -c 'Set :CFBundleName Codegraff' "$bundle/Contents/Info.plist"
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $version" "$bundle/Contents/Info.plist"
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString $version" "$bundle/Contents/Info.plist"
diff --git a/apps/native/electron/main.cjs b/apps/native/electron/main.cjs
index c7ef86ec..1e783d78 100644
--- a/apps/native/electron/main.cjs
+++ b/apps/native/electron/main.cjs
@@ -22,7 +22,7 @@ const { installWindowState } = require('./window-state.cjs');
const root = process.env.GRAFF_CWD || app.getPath('home');
const resources = process.env.GRAFF_ELECTRON_RESOURCES || process.resourcesPath;
app.setName('Codegraff');
-app.setPath('userData', process.env.GRAFF_ELECTRON_SMOKE ? (process.env.GRAFF_SMOKE_PROFILE || path.join(require('node:os').tmpdir(), `codegraff-smoke-${process.pid}`)) : path.join(app.getPath('appData'), 'Codegraff Electron'));
+app.setPath('userData', process.env.GRAFF_ELECTRON_PROFILE || (process.env.GRAFF_ELECTRON_SMOKE ? (process.env.GRAFF_SMOKE_PROFILE || path.join(require('node:os').tmpdir(), `codegraff-smoke-${process.pid}`)) : path.join(app.getPath('appData'), 'Codegraff Electron')));
if (process.env.GRAFF_ELECTRON_SMOKE) process.env.GRAFF_THEMES_DIR = path.join(app.getPath('userData'), 'themes');
let win, browser, backend, automation, computer, profiler;
let terminals;
diff --git a/apps/native/electron/native-gui.cjs b/apps/native/electron/native-gui.cjs
index dde2f7f6..8f734771 100644
--- a/apps/native/electron/native-gui.cjs
+++ b/apps/native/electron/native-gui.cjs
@@ -37,6 +37,12 @@ app.whenReady().then(async () => {
testDesktop.present(win);
await wait(() => { const state = inspect(); return state.active && state.visible && state.key && state.screens > 0; }, 'CI cannot activate a native window; a graphical login session is required');
report.passed.push('graphical session and native window focus');
+ const glassKind = native.glass(handle);
+ if (glassKind < 0) report.skipped.push('AppKit pane glass: Reduce Transparency is on');
+ else {
+ assert.equal(inspect().paneGlass, true, 'NSGlassEffectView / NSVisualEffectView must sit behind the web contents');
+ report.passed.push(glassKind === 1 ? 'macOS 26 NSGlassEffectView behind web contents' : 'NSVisualEffectView pane-glass fallback');
+ }
for (let n = 0; n < 2; n++) {
native.show(handle, JSON.stringify({ rssMiB: 64, cpuPercent: 0, processes: 1, browsers: 0 }));
let state;
diff --git a/apps/native/electron/native/Glass.swift b/apps/native/electron/native/Glass.swift
new file mode 100644
index 00000000..8e9b844d
--- /dev/null
+++ b/apps/native/electron/native/Glass.swift
@@ -0,0 +1,49 @@
+import AppKit
+
+private let glassIdentifier = NSUserInterfaceItemIdentifier("graff.pane-glass")
+
+/// Window-backed Liquid Glass (macOS 26 `NSGlassEffectView`, otherwise
+/// `NSVisualEffectView`). The web UI punches holes in unselected splits;
+/// this view stays behind Chromium and samples the desktop.
+@_cdecl("graff_install_pane_glass")
+public func graffInstallPaneGlass(_ pointer: UnsafeMutableRawPointer?) -> Int32 {
+ guard Thread.isMainThread, let pointer else { return -1 }
+ let host = Unmanaged<NSView>.fromOpaque(pointer).takeUnretainedValue()
+ guard let content = host.window?.contentView else { return -1 }
+ if let existing = content.subviews.first(where: { $0.identifier == glassIdentifier }) {
+ existing.removeFromSuperview()
+ if let front = content.subviews.first {
+ content.addSubview(existing, positioned: .below, relativeTo: front)
+ } else {
+ content.addSubview(existing)
+ }
+ if #available(macOS 26, *) { return existing is NSGlassEffectView ? 1 : 0 }
+ return 0
+ }
+ if NSWorkspace.shared.accessibilityDisplayShouldReduceTransparency { return -1 }
+
+ let pane: NSView
+ let kind: Int32
+ if #available(macOS 26, *) {
+ let glass = NSGlassEffectView(frame: content.bounds)
+ glass.cornerRadius = 0
+ glass.style = .regular
+ pane = glass
+ kind = 1
+ } else {
+ let effect = NSVisualEffectView(frame: content.bounds)
+ effect.material = .underWindowBackground
+ effect.blendingMode = .behindWindow
+ effect.state = .followsWindowActiveState
+ pane = effect
+ kind = 0
+ }
+ pane.identifier = glassIdentifier
+ pane.autoresizingMask = [.width, .height]
+ if let front = content.subviews.first {
+ content.addSubview(pane, positioned: .below, relativeTo: front)
+ } else {
+ content.addSubview(pane)
+ }
+ return kind
+}
diff --git a/apps/native/electron/native/activity.c b/apps/native/electron/native/activity.c
index 1d47ae7e..4f241505 100644
--- a/apps/native/electron/native/activity.c
+++ b/apps/native/electron/native/activity.c
@@ -4,6 +4,7 @@
#include <string.h>
extern void graff_show_activity(void *view, const char *json);
+extern int graff_install_pane_glass(void *view);
static napi_value show(napi_env env, napi_callback_info info) {
size_t argc = 2, handle_size = 0, json_size = 0;
@@ -43,11 +44,28 @@ static napi_value computer(napi_env env, napi_callback_info info) {
if (output) { napi_create_string_utf8(env, output, NAPI_AUTO_LENGTH, &result); free(output); }
return result;
}
+static napi_value glass(napi_env env, napi_callback_info info) {
+ size_t argc = 1, handle_size = 0;
+ napi_value args[1], result;
+ void *handle_data = NULL, *view = NULL;
+ napi_get_undefined(env, &result);
+ if (napi_get_cb_info(env, info, &argc, args, NULL, NULL) != napi_ok || argc != 1 ||
+ napi_get_buffer_info(env, args[0], &handle_data, &handle_size) != napi_ok ||
+ handle_size != sizeof(view)) {
+ napi_throw_type_error(env, NULL, "Expected a native window handle");
+ return result;
+ }
+ memcpy(&view, handle_data, sizeof(view));
+ napi_create_int32(env, graff_install_pane_glass(view), &result);
+ return result;
+}
NAPI_MODULE_INIT() {
napi_value fn;
napi_create_function(env, "show", NAPI_AUTO_LENGTH, show, NULL, &fn);
napi_set_named_property(env, exports, "show", fn);
napi_create_function(env, "computer", NAPI_AUTO_LENGTH, computer, NULL, &fn);
napi_set_named_property(env, exports, "computer", fn);
+ napi_create_function(env, "glass", NAPI_AUTO_LENGTH, glass, NULL, &fn);
+ napi_set_named_property(env, exports, "glass", fn);
return exports;
}
diff --git a/apps/native/electron/native/test-window-probe.m b/apps/native/electron/native/test-window-probe.m
index 298a788c..e92a918b 100644
--- a/apps/native/electron/native/test-window-probe.m
+++ b/apps/native/electron/native/test-window-probe.m
@@ -27,9 +27,14 @@ static napi_value inspect(napi_env env, napi_callback_info info) {
NSWindow *window = windowArg(env, info);
if (!window) return NULL;
NSWindow *sheet = window.attachedSheet;
+ BOOL paneGlass = NO;
+ for (NSView *view in window.contentView.subviews) {
+ if ([view.identifier isEqualToString:@"graff.pane-glass"]) { paneGlass = YES; break; }
+ }
return json(env, @{
@"active": @(NSApp.active), @"screens": @(NSScreen.screens.count),
@"visible": @(window.visible), @"key": @(window.keyWindow),
+ @"paneGlass": @(paneGlass),
@"sheetAttached": @(sheet != nil), @"sheetVisible": @(sheet.visible),
@"sheetKey": @(sheet.keyWindow), @"sheetTitle": sheet.title ?: @"",
@"sheetWidth": @(sheet.frame.size.width), @"sheetHeight": @(sheet.frame.size.height)
diff --git a/apps/native/electron/preload.cjs b/apps/native/electron/preload.cjs
index f28af478..f7d77917 100644
--- a/apps/native/electron/preload.cjs
+++ b/apps/native/electron/preload.cjs
@@ -36,6 +36,9 @@ const applyWindowState = () => {
if (document.documentElement) document.documentElement.dataset.desktopFullscreen = String(fullscreen);
};
ipcRenderer.on('window-state', (_event, state) => { fullscreen = state.fullscreen === true; applyWindowState(); });
+ipcRenderer.on('native-glass', (_event, on) => {
+ if (document.documentElement) document.documentElement.dataset.nativeGlass = on ? 'true' : 'false';
+});
window.addEventListener('DOMContentLoaded', applyWindowState);
ipcRenderer.on('profile-enabled', (_event, enabled) => {
longTasks?.disconnect();
diff --git a/apps/native/scripts/test-native.mjs b/apps/native/scripts/test-native.mjs
index 39913e09..ba5453e2 100644
--- a/apps/native/scripts/test-native.mjs
+++ b/apps/native/scripts/test-native.mjs
@@ -22,7 +22,7 @@ const run = async (command, args) => {
};
const target = `${process.arch === 'arm64' ? 'arm64' : 'x86_64'}-apple-macosx14.0`;
await run('xcrun', ['swiftc', '-O', '-emit-library', '-module-name', 'GraffActivity', '-target', target,
- 'electron/native/Activity.swift', 'electron/native/ComputerUse.swift', '-o', path.join(native, 'libGraffActivity.dylib'),
+ 'electron/native/Activity.swift', 'electron/native/ComputerUse.swift', 'electron/native/Glass.swift', '-o', path.join(native, 'libGraffActivity.dylib'),
'-Xlinker', '-install_name', '-Xlinker', '@rpath/libGraffActivity.dylib']);
const common = ['clang', '-O2', '-bundle', '-undefined', 'dynamic_lookup', '-mmacosx-version-min=14.0',
'-I', path.join(root, 'node_modules/node-api-headers/include')];
diff --git a/docs/adr/0138-unselected-splits-use-glass-overlay.md b/docs/adr/0138-unselected-splits-use-glass-overlay.md
new file mode 100644
index 00000000..8e5c5319
--- /dev/null
+++ b/docs/adr/0138-unselected-splits-use-glass-overlay.md
@@ -0,0 +1,23 @@
+# 0138. Unselected split panes recede with a wash, not a hole
+
+Status: accepted
+
+## Context
+
+Split chats are React in Electron. Unselected panes looked identical to the
+focused one except for an accent border. Punching CSS holes onto a window-backed
+`NSGlassEffectView` sampled the desktop and hid the other transcript.
+
+## Decision
+
+Keep unselected pane content opaque and readable. A light `::after` wash recedes
+them; the focused pane stays `bg-page` with the accent border. Empty Enter while
+a turn runs arms a 3s force-steer; a second Enter steers. Send is a circle.
+Updates in the toolbar matches Tools/More, not a filled CTA. ⌘B toggles the
+sidebar.
+
+## Consequences
+
+This is a CSS overlay, not a SwiftUI chat rewrite. `NSGlassEffectView` remains
+available on the native bridge for later, but it is not the split-pane material.
+Non-macOS and Reduce Transparency keep the same wash.
diff --git a/docs/adr/README.md b/docs/adr/README.md
index ce809667..5727f46e 100644
--- a/docs/adr/README.md
+++ b/docs/adr/README.md
@@ -157,6 +157,7 @@ record only when you need the evidence or the edge cases.
| [0135](0135-one-shell-tool.md) | Advertise one `shell` tool (`run` / `output` / `kill`); bash names stay dispatch aliases. Not a PTY. |
| [0136](0136-follow-up-promotes-a-live-shell.md) | A queued follow-up or force-steer promotes a foreground shell; Esc still kills it. |
| [0137](0137-desktop-appearance-is-a-turn-note.md) | Desktop appearance tokens for `render_html` ride the turn, never the prefix or tool catalog. |
+| [0138](0138-unselected-splits-use-glass-overlay.md) | Unselected split panes keep their transcript under a light wash; the focused pane stays the working surface. |
## When to write one