wire the output dock into the layout — toggle, tabs, persistence (T-54)

The D-87 bottom dock, end to end. New Slots.dock in the classic preset
(hidden by default); RootLayout renders it full-width above the status bar
when open, capped at half the window so Claude stays largest (the D-47
amendment). LogRing now lives on KernelServices (boot tees the kernel logger
into it; main.dart also tees the IPC/MCP logger), so the dock shows logs from
every subsystem.

OutputExtension contributes the Output tab, the merged health/toggle
status-bar widget (green check when clean, warn/error counts otherwise) that
replaces the old ipc-status item, and the dock.toggle command (Ctrl+J).
Problems moves out of the sidebar into the dock. open/height persist per
workspace via the default-layout extension.

Drag-resize of the dock height is deferred (DragResizeHandle needs a dock
sign case); height is the persisted default for now. Boot verified via
testmode; full suite green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-07 09:58:29 +02:00
co-authored by Claude Opus 4.8
parent e0c65aba06
commit 49f480481a
13 changed files with 302 additions and 6 deletions
@@ -144,6 +144,10 @@ class DefaultLayoutExtension extends ClideExtension {
if (sidebarSize != null) ctx.arrangement.setSize(Slots.sidebar, sidebarSize);
final contextSize = s.get<double>(_kContextSize);
if (contextSize != null) ctx.arrangement.setSize(Slots.contextPanel, contextSize);
final dockVisible = s.get<bool>(_kDockVisible);
if (dockVisible != null) ctx.arrangement.setVisible(Slots.dock, dockVisible);
final dockSize = s.get<double>(_kDockSize);
if (dockSize != null) ctx.arrangement.setSize(Slots.dock, dockSize);
final editorRatio = s.get<double>(_kEditorRatio);
if (editorRatio != null) ctx.arrangement.setEditorRatio(editorRatio);
final activeLeft = s.get<String>(_kActiveLeft);
@@ -161,6 +165,8 @@ class DefaultLayoutExtension extends ClideExtension {
s.set(_kSidebarSize, a.sizeOf(Slots.sidebar));
s.set(_kContextSize, a.sizeOf(Slots.contextPanel));
s.set(_kEditorRatio, a.editorRatio);
s.set(_kDockVisible, a.isVisible(Slots.dock));
s.set(_kDockSize, a.sizeOf(Slots.dock));
}
void _persistActiveTabs(ClideExtensionContext ctx) {
@@ -179,6 +185,8 @@ class DefaultLayoutExtension extends ClideExtension {
static const _kEditorRatio = 'project.layout.editor.ratio';
static const _kActiveLeft = 'project.layout.sidebar.activeTab';
static const _kActiveRight = 'project.layout.context.activeTab';
static const _kDockVisible = 'project.layout.dock.visible';
static const _kDockSize = 'project.layout.dock.size';
Future<IpcResponse> _reset(List<String> args) async {
final preset = _preset;