Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
responsive POST launcher: full-width main+sidebar grid
[._.]/ Adam Eivyf7c86dfc6014
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 17934174fe..9654de3316 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -16,6 +16,10 @@- **[issue-1971] The task config drawer is now organized into tabs.** The Chief of Staff schedule tab's per-task config panel was a single flat scroll grouped only by `<h4>` headers; it's now a tabbed drawer split into **Stage config** (per-stage provider/model), **Global defaults** (schedule/provider/prompt controls), and **Per-app overrides** — so no single section runs off the bottom of the panel. The Stage config tab only appears for pipeline-backed tasks and the Per-app overrides tab only when there are active apps (each shows a count badge), so there's never an empty tab. The active tab deep-links via a `?taskTab=` URL param (shareable/bookmarkable, reload-safe) and collapses to a `<select>` on mobile; the task identity header (name + badges) stays pinned atop every tab. All config wiring and per-app override interactions are unchanged — layout only — and the drawer still refuses to dismiss on Esc mid-save. (`client/src/components/cos/tabs/schedule/TaskConfigDrawer.jsx`, Closes #1971)+## MeatSpace POST++- **[issue-1986] The POST launcher now fills the full desktop width.** The Power On Self Test launcher (`PostSessionLauncher.jsx`) previously wrapped every card in a single ~672px column (`max-w-2xl`), leaving a large dead gutter on wide monitors. It's now a responsive main-plus-sidebar grid (`lg:grid-cols-[minmax(0,1fr)_22rem]`, capped at `max-w-6xl`): the primary session flow — Today's Status, Session Mode toggle, Conditions, and the Start / Quick 5 Min buttons — stays in the left column above the fold, while the Mental Math / Wit & Memory drill summaries and Recent Sessions flow into the right sidebar. On mobile it collapses to a single readable column (Start buttons still prominent), the header action buttons wrap instead of overflowing, and the Start buttons stack on narrow screens. Layout-only — session start, Quick 5 Min, the Test/Train toggle, and condition tags are all unchanged. (`client/src/components/meatspace/post/PostSessionLauncher.jsx`, Closes #1986)+## Media Generation- **[issue-1969] Media Generation Settings is now grouped into tabs.** The image/video backend settings surface — one long flat scroll rendered by the Image Gen, Video Gen, and Storyboard settings drawers — now groups its fields into a pills sub-navigation (Backend / External / Local / Codex CLI / Tokens / Expose / Test) that collapses to a `<select>` on mobile, so no single section is page-length. The grouping is internal to `ImageGenTab` (built on the shared `TabPills`), so it renders identically in every host drawer with no tabs-within-tabs; the active sub-tab deep-links via a `?mediaTab=` search param (`useDrawerTab`) so an open section is shareable and reload-safe. The Save + Test Connection bar stays pinned below the tabs on every section. All existing controls, save/test behavior, and label wiring are unchanged. The Local tab is kept mounted (hidden) once visited so switching tabs during a long-running pip install (e.g. a 10-minute torch upgrade) no longer tears down its stream and cancels the install. (`client/src/components/settings/ImageGenTab.jsx`, Closes #1969)diff --git a/client/src/components/meatspace/post/PostSessionLauncher.jsx b/client/src/components/meatspace/post/PostSessionLauncher.jsxindex 6ad126d93f..377b18bcbb 100644--- a/client/src/components/meatspace/post/PostSessionLauncher.jsx+++ b/client/src/components/meatspace/post/PostSessionLauncher.jsx@@ -122,14 +122,14 @@ export default function PostSessionLauncher({ config, recentSessions, onStart, oconst domainCount = Object.keys(enabledDomains).length;return (- <div className="space-y-6 max-w-2xl">+ <div className="space-y-6 max-w-6xl mx-auto">{/* Header */}- <div className="flex items-center justify-between">+ <div className="flex flex-wrap items-center justify-between gap-3"><div className="flex items-center gap-3"><Zap size={24} className="text-port-accent" /><h2 className="text-xl font-bold text-white">Power On Self Test</h2></div>- <div className="flex gap-2">+ <div className="flex flex-wrap gap-2"><buttononClick={onViewMemory}className="flex items-center gap-1.5 px-3 py-1.5 text-sm text-gray-400 hover:text-white bg-port-card border border-port-border rounded-lg transition-colors"@@ -161,173 +161,182 @@ export default function PostSessionLauncher({ config, recentSessions, onStart, o</div></div>- {/* Today's Status */}- <div className="bg-port-card border border-port-border rounded-lg p-4">- <div className="flex items-center justify-between">- <span className="text-gray-400 text-sm">Today's Status</span>- {todaySession ? (- <span className="text-port-success text-sm font-medium">- Completed — Score: {todaySession.score}- </span>- ) : (- <span className="text-port-warning text-sm font-medium">Not yet completed</span>- )}- </div>- </div>-- {/* Mental Math Drills */}- {enabledMathDrills.length > 0 && (- <div className="bg-port-card border border-port-border rounded-lg p-4">- <h3 className="text-sm font-medium text-gray-400 mb-3">Mental Math</h3>- <div className="space-y-2">- {enabledMathDrills.map(([type, cfg]) => (- <div key={type} className="flex items-center justify-between text-sm">- <span className="text-white">{DRILL_LABELS[type] || type}</span>- <span className="text-gray-500">- {cfg.steps ? `${cfg.steps} steps` : cfg.count ? `${cfg.count} questions` : ''}- {cfg.timeLimitSec ? ` · ${cfg.timeLimitSec}s` : ''}+ {/* Main + sidebar: primary session flow on the left, drill summaries + history on the right */}+ <div className="grid grid-cols-1 lg:grid-cols-[minmax(0,1fr)_22rem] gap-6 items-start">+ {/* Primary flow — kept above the fold */}+ <div className="space-y-6 min-w-0">+ {/* Today's Status */}+ <div className="bg-port-card border border-port-border rounded-lg p-4">+ <div className="flex items-center justify-between">+ <span className="text-gray-400 text-sm">Today's Status</span>+ {todaySession ? (+ <span className="text-port-success text-sm font-medium">+ Completed — Score: {todaySession.score}</span>- </div>- ))}+ ) : (+ <span className="text-port-warning text-sm font-medium">Not yet completed</span>+ )}+ </div></div>- </div>- )}- {/* LLM Drills */}- {enabledLlmDrills.length > 0 && (- <div className="bg-port-card border border-port-border rounded-lg p-4">- <div className="flex items-center gap-2 mb-3">- <Brain size={14} className="text-port-accent-2" />- <h3 className="text-sm font-medium text-gray-400">Wit & Memory</h3>- {(llmProviderId || providers.length > 0) && (- <span className="text-xs text-gray-600 ml-auto">- {llmProviderId || 'system default'}- </span>- )}- </div>- <div className="space-y-2">- {enabledLlmDrills.map(([type, cfg]) => (- <div key={type} className="flex items-center justify-between text-sm">- <span className="text-white">{DRILL_LABELS[type] || type}</span>- <span className="text-gray-500">- {cfg.count ? `${cfg.count} prompts` : ''}- {cfg.timeLimitSec ? ` · ${cfg.timeLimitSec}s` : ''}- </span>- </div>- ))}+ {/* Mode Toggle */}+ <div className="bg-port-card border border-port-border rounded-lg p-4">+ <h3 className="text-sm font-medium text-gray-400 mb-3">Session Mode</h3>+ <div className="flex gap-2">+ <button+ onClick={() => setMode('test')}+ className={`flex-1 flex items-center justify-center gap-2 px-4 py-2.5 rounded-lg text-sm font-medium transition-colors ${+ mode === 'test'+ ? 'bg-port-accent text-white'+ : 'bg-port-bg border border-port-border text-gray-400 hover:text-white'+ }`}+ >+ <Zap size={14} />+ Test+ </button>+ <button+ onClick={() => setMode('train')}+ className={`flex-1 flex items-center justify-center gap-2 px-4 py-2.5 rounded-lg text-sm font-medium transition-colors ${+ mode === 'train'+ ? 'bg-port-accent-2 text-port-on-accent-2'+ : 'bg-port-bg border border-port-border text-gray-400 hover:text-white'+ }`}+ >+ <Dumbbell size={14} />+ Train+ </button>+ </div>+ <p className="text-xs text-gray-500 mt-2">+ {mode === 'train'+ ? 'Training mode: immediate feedback, hints on wrong answers. Not scored.'+ : 'Test mode: timed drills with scoring. Saved to history.'}+ </p></div>- </div>- )}- {!hasAnyDrills && (- <div className="bg-port-card border border-port-border rounded-lg p-4">- <p className="text-gray-500 text-sm">No drills enabled. Configure drills to get started.</p>- </div>- )}+ {/* Condition Tags */}+ {mode === 'test' && <div className="bg-port-card border border-port-border rounded-lg p-4">+ <h3 className="text-sm font-medium text-gray-400 mb-3">Conditions (optional)</h3>+ <div className="grid grid-cols-3 gap-3">+ {Object.entries(tags).map(([key, value]) => (+ <div key={key}>+ <label className="text-xs text-gray-500 mb-1 block capitalize">{key}</label>+ <input+ type="text"+ value={value}+ onChange={e => setTags(prev => ({ ...prev, [key]: e.target.value }))}+ placeholder={key === 'sleep' ? 'good/poor' : key === 'caffeine' ? '1 cup' : 'low/high'}+ className="w-full bg-port-bg border border-port-border rounded px-2 py-1.5 text-sm text-white placeholder-gray-600 focus:border-port-accent focus:outline-none"+ />+ </div>+ ))}+ </div>+ </div>}- {/* Mode Toggle */}- <div className="bg-port-card border border-port-border rounded-lg p-4">- <h3 className="text-sm font-medium text-gray-400 mb-3">Session Mode</h3>- <div className="flex gap-2">- <button- onClick={() => setMode('test')}- className={`flex-1 flex items-center justify-center gap-2 px-4 py-2.5 rounded-lg text-sm font-medium transition-colors ${- mode === 'test'- ? 'bg-port-accent text-white'- : 'bg-port-bg border border-port-border text-gray-400 hover:text-white'- }`}- >- <Zap size={14} />- Test- </button>- <button- onClick={() => setMode('train')}- className={`flex-1 flex items-center justify-center gap-2 px-4 py-2.5 rounded-lg text-sm font-medium transition-colors ${- mode === 'train'- ? 'bg-port-accent-2 text-port-on-accent-2'- : 'bg-port-bg border border-port-border text-gray-400 hover:text-white'- }`}- >- <Dumbbell size={14} />- Train- </button>+ {/* Start Buttons */}+ <div className="flex flex-col sm:flex-row gap-3">+ {domainCount >= 2 && (+ <button+ onClick={handleQuickSession}+ disabled={!hasAnyDrills}+ className={`flex-1 flex items-center justify-center gap-2 px-6 py-3 ${+ mode === 'train'+ ? 'bg-port-accent-2 hover:bg-port-accent-2/80 text-port-on-accent-2'+ : 'bg-port-success hover:bg-port-success/80 text-white'+ } disabled:opacity-50 disabled:cursor-not-allowed font-medium rounded-lg transition-colors`}+ >+ <Timer size={18} />+ Quick 5 Min ({domainCount} domains)+ </button>+ )}+ <button+ onClick={handleStart}+ disabled={!hasAnyDrills}+ className={`flex-1 flex items-center justify-center gap-2 px-6 py-3 ${+ mode === 'train'+ ? 'bg-port-accent-2/70 hover:bg-port-accent-2/80 text-port-on-accent-2'+ : 'bg-port-accent hover:bg-port-accent/80 text-white'+ } disabled:opacity-50 disabled:cursor-not-allowed font-medium rounded-lg transition-colors`}+ >+ {mode === 'train' ? <Dumbbell size={18} /> : <Play size={18} />}+ {mode === 'train' ? 'Full Training' : 'Full POST'}+ </button>+ </div></div>- <p className="text-xs text-gray-500 mt-2">- {mode === 'train'- ? 'Training mode: immediate feedback, hints on wrong answers. Not scored.'- : 'Test mode: timed drills with scoring. Saved to history.'}- </p>- </div>- {/* Condition Tags */}- {mode === 'test' && <div className="bg-port-card border border-port-border rounded-lg p-4">- <h3 className="text-sm font-medium text-gray-400 mb-3">Conditions (optional)</h3>- <div className="grid grid-cols-3 gap-3">- {Object.entries(tags).map(([key, value]) => (- <div key={key}>- <label className="text-xs text-gray-500 mb-1 block capitalize">{key}</label>- <input- type="text"- value={value}- onChange={e => setTags(prev => ({ ...prev, [key]: e.target.value }))}- placeholder={key === 'sleep' ? 'good/poor' : key === 'caffeine' ? '1 cup' : 'low/high'}- className="w-full bg-port-bg border border-port-border rounded px-2 py-1.5 text-sm text-white placeholder-gray-600 focus:border-port-accent focus:outline-none"- />+ {/* Sidebar — drill summaries + recent sessions flow alongside on desktop */}+ <div className="space-y-6 min-w-0">+ {/* Mental Math Drills */}+ {enabledMathDrills.length > 0 && (+ <div className="bg-port-card border border-port-border rounded-lg p-4">+ <h3 className="text-sm font-medium text-gray-400 mb-3">Mental Math</h3>+ <div className="space-y-2">+ {enabledMathDrills.map(([type, cfg]) => (+ <div key={type} className="flex items-center justify-between text-sm">+ <span className="text-white">{DRILL_LABELS[type] || type}</span>+ <span className="text-gray-500">+ {cfg.steps ? `${cfg.steps} steps` : cfg.count ? `${cfg.count} questions` : ''}+ {cfg.timeLimitSec ? ` · ${cfg.timeLimitSec}s` : ''}+ </span>+ </div>+ ))}+ </div></div>- ))}- </div>- </div>}+ )}- {/* Start Buttons */}- <div className="flex gap-3">- {domainCount >= 2 && (- <button- onClick={handleQuickSession}- disabled={!hasAnyDrills}- className={`flex-1 flex items-center justify-center gap-2 px-6 py-3 ${- mode === 'train'- ? 'bg-port-accent-2 hover:bg-port-accent-2/80 text-port-on-accent-2'- : 'bg-port-success hover:bg-port-success/80 text-white'- } disabled:opacity-50 disabled:cursor-not-allowed font-medium rounded-lg transition-colors`}- >- <Timer size={18} />- Quick 5 Min ({domainCount} domains)- </button>- )}- <button- onClick={handleStart}- disabled={!hasAnyDrills}- className={`flex-1 flex items-center justify-center gap-2 px-6 py-3 ${- mode === 'train'- ? 'bg-port-accent-2/70 hover:bg-port-accent-2/80 text-port-on-accent-2'- : 'bg-port-accent hover:bg-port-accent/80 text-white'- } disabled:opacity-50 disabled:cursor-not-allowed font-medium rounded-lg transition-colors`}- >- {mode === 'train' ? <Dumbbell size={18} /> : <Play size={18} />}- {mode === 'train' ? 'Full Training' : 'Full POST'}- </button>- </div>+ {/* LLM Drills */}+ {enabledLlmDrills.length > 0 && (+ <div className="bg-port-card border border-port-border rounded-lg p-4">+ <div className="flex items-center gap-2 mb-3">+ <Brain size={14} className="text-port-accent-2" />+ <h3 className="text-sm font-medium text-gray-400">Wit & Memory</h3>+ {(llmProviderId || providers.length > 0) && (+ <span className="text-xs text-gray-600 ml-auto">+ {llmProviderId || 'system default'}+ </span>+ )}+ </div>+ <div className="space-y-2">+ {enabledLlmDrills.map(([type, cfg]) => (+ <div key={type} className="flex items-center justify-between text-sm">+ <span className="text-white">{DRILL_LABELS[type] || type}</span>+ <span className="text-gray-500">+ {cfg.count ? `${cfg.count} prompts` : ''}+ {cfg.timeLimitSec ? ` · ${cfg.timeLimitSec}s` : ''}+ </span>+ </div>+ ))}+ </div>+ </div>+ )}- {/* Recent Scores */}- {lastThree.length > 0 && (- <div className="bg-port-card border border-port-border rounded-lg p-4">- <h3 className="text-sm font-medium text-gray-400 mb-3">Recent Sessions</h3>- <div className="space-y-2">- {lastThree.map(s => (- <div key={s.id} className="flex items-center justify-between text-sm">- <span className="text-gray-400">{s.date}</span>- <span className={`font-mono font-medium ${- s.score >= 80 ? 'text-port-success' :- s.score >= 50 ? 'text-port-warning' :- 'text-port-error'- }`}>- {s.score}- </span>+ {!hasAnyDrills && (+ <div className="bg-port-card border border-port-border rounded-lg p-4">+ <p className="text-gray-500 text-sm">No drills enabled. Configure drills to get started.</p>+ </div>+ )}++ {/* Recent Scores */}+ {lastThree.length > 0 && (+ <div className="bg-port-card border border-port-border rounded-lg p-4">+ <h3 className="text-sm font-medium text-gray-400 mb-3">Recent Sessions</h3>+ <div className="space-y-2">+ {lastThree.map(s => (+ <div key={s.id} className="flex items-center justify-between text-sm">+ <span className="text-gray-400">{s.date}</span>+ <span className={`font-mono font-medium ${+ s.score >= 80 ? 'text-port-success' :+ s.score >= 50 ? 'text-port-warning' :+ 'text-port-error'+ }`}>+ {s.score}+ </span>+ </div>+ ))}</div>- ))}- </div>+ </div>+ )}</div>- )}+ </div></div>);}