Skip to content

HarnessRouter Community Edition: the self-hosted, Apache-2.0 edition of the unified interface for agent harnesses. Run Codex, Claude Code, Hermes, PI, DSH, and more through one API, with sessions, streaming, files, cancellation, and failure handling. Implements the Unified Harness Protocol (UHP), an open standard. Your keys, your infrastructure.

fix(settings): the action bar is white, edge to edge, flush on the pane bottom

richard-epsillad3f6b89092b2
diff --git a/ui/src/app/v2.css b/ui/src/app/v2.css
index 2ac283e6..5f9a4e61 100644
--- a/ui/src/app/v2.css
+++ b/ui/src/app/v2.css
@@ -535,20 +535,23 @@ body {
.hx-body.is-chat .run-layout.is-embedded { height: 100%; max-height: none; min-height: 0; border: 0; border-radius: 0; grid-template-columns: minmax(0, 1fr); }
.hx-body.is-chat .run-layout.is-embedded .task-detail-shell { padding: 0 28px; }
.hx-body.is-chat .run-layout.is-embedded .task-detail-shell .tabs { margin: 14px 0 0; }
-/* Embedded in the unified page, the settings action bar belongs to the settings pane: sticky at
- the bottom of the scrolling .hx-body, never fixed across the viewport — the old standalone
- rule (#view-harness … position: fixed; left: var(--sidebar-w)) overlaid the task panel and
- clipped Delete Harness under the nav. The task panel keeps the full height beside it. */
-#view-harnesses #view-harness .settings-footer-sticky { position: sticky; left: auto; right: auto;
- bottom: 0; margin: 0; padding: 12px 0; background: var(--v2-bg); border-top: 1px solid var(--v2-line); z-index: 5; }
+/* Embedded in the unified page, the settings action bar belongs to the settings pane: white,
+ pinned to the pane's bottom edge from first paint, spanning it edge to edge — never fixed
+ across the viewport (the old standalone rule overlaid the task panel and clipped Delete under
+ the nav). Three parts make that true: the pane's padding moves onto .page so the bar can
+ escape it with matching negative margins; .page stops being an overflow context so the sticky
+ scrollport is .hx-body, the thing that actually scrolls; and the bar itself sits OUTSIDE the
+ 980px form in the markup, so its box is the pane, not the form. */
+#view-harnesses .hx-body:has(#view-harness) { padding: 0; }
+#view-harnesses #view-harness .page { overflow: visible; padding: 22px 28px 0; max-width: none; }
#view-harnesses #view-harness .settings-form { padding-bottom: 0; }
-/* .page's own overflow:auto made IT the sticky scrollport — but .hx-body is what scrolls, so
- the bar never engaged and only appeared after scrolling to the end. Let the page flow and the
- bar pins to the settings pane's bottom edge from the first paint. */
-#view-harnesses #view-harness .page { overflow: visible; }
-/* The pane's own bottom padding otherwise shows a band of scrolled content under the pinned
- bar; with the bar carrying the spacing, it sits flush on the pane's true bottom edge. */
-#view-harnesses .hx-body:has(#view-harness) { padding-bottom: 0; }
+#view-harnesses #view-harness .settings-footer-sticky { position: sticky; left: auto; right: auto;
+ bottom: 0; margin: 18px -28px 0; padding: 12px 28px; background: #fff;
+ border-top: 1px solid var(--v2-line); z-index: 5; }
+@media (max-width: 1024px) {
+ #view-harnesses #view-harness .page { padding: 14px 16px 0; }
+ #view-harnesses #view-harness .settings-footer-sticky { margin: 14px -16px 0; padding: 12px 16px; }
+}
/* The embedded settings drop the page frame: no back link, no detail header, the host has both. */
#view-harness.is-embedded .page { padding: 0; max-width: none; }
diff --git a/ui/src/components/HarnessSettings.tsx b/ui/src/components/HarnessSettings.tsx
index fbf5c256..ed9290fa 100644
--- a/ui/src/components/HarnessSettings.tsx
+++ b/ui/src/components/HarnessSettings.tsx
@@ -132,7 +132,7 @@ export function HarnessSettings({ id, embedded = false, onNavigate }: {
<div className="detail-metric"><span>Credits / Task</span><strong>{creditsPerTask ?? '—'}</strong><small>Avg over priced runs</small></div>
</div>
- <form className="settings-form" onSubmit={(e) => { e.preventDefault(); void save(); }}>
+ <form id="hs-form" className="settings-form" onSubmit={(e) => { e.preventDefault(); void save(); }}>
<div className="settings-form-head">
<div><h2>Harness Settings</h2><p>Configure the instructions, capabilities, and execution limits inherited by every Task on this Harness.</p></div>
<div className="header-actions"><span className="save-state">{readOnly ? 'Built-in · read-only' : dirty ? 'Unsaved changes' : 'No unsaved changes'}</span></div>
@@ -322,6 +322,11 @@ export function HarnessSettings({ id, embedded = false, onNavigate }: {
</section>
{err && <div className="notice"><iconify-icon icon="tabler:alert-triangle"></iconify-icon><div><strong>Save failed</strong>{err}</div></div>}
+ </form>
+
+ {/* The action bar lives OUTSIDE the form on purpose: the form is capped at 980px, and
+ the bar must span the settings pane edge to edge, pinned to its bottom. The submit
+ button still drives the form via the form attribute. */}
{!readOnly && (
<div className="settings-form-footer settings-footer-sticky">
<button className="button danger" type="button" onClick={() => setConfirmDelete(true)}>Delete Harness</button>
@@ -330,7 +335,7 @@ export function HarnessSettings({ id, embedded = false, onNavigate }: {
<button className="button" type="button" disabled={busy} onClick={() => setDraft(saved)}>Discard Changes</button>
)}
{dirty ? (
- <button className="button primary" type="submit" disabled={busy}>{busy ? 'Saving…' : 'Save Changes'}</button>
+ <button className="button primary" type="submit" form="hs-form" disabled={busy}>{busy ? 'Saving…' : 'Save Changes'}</button>
) : (
<button className="button primary" type="button"
onClick={() => go('tasks')}>
@@ -355,7 +360,6 @@ export function HarnessSettings({ id, embedded = false, onNavigate }: {
<iconify-icon icon="tabler:list-details"></iconify-icon>Run Task</button>
</div>
)}
- </form>
</div>
{editSkillIdx !== null && draft?.skills?.[editSkillIdx] && (