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.
Python agent-apiagent-frameworkagent-harnessai-agentsai-infrastructurecoding-agentconformance-testingdeepseek-harnessharness-engineeringhermesllmopen-protocolopen-sourceopen-standardpi-coding-agentself-hosteduhpunified-apiunified-harness-protocolunified-interface
fix(ui): one action corner on the harness page, and no dead primary button
richard-epsillaa24663e23509
diff --git a/ui/src/app/(app)/harnesses/[id]/page.tsx b/ui/src/app/(app)/harnesses/[id]/page.tsxindex 2743b4c1..48834128 100644--- a/ui/src/app/(app)/harnesses/[id]/page.tsx+++ b/ui/src/app/(app)/harnesses/[id]/page.tsx@@ -115,19 +115,6 @@ export default function HarnessSettingsPage() {<p><span className={'status ' + (degraded ? 'warning' : 'healthy')}>{degraded ? 'Needs review' : 'Connected and healthy'}</span> · Base Harness: {base?.name || draft?.baseLabel}{readOnly ? ' · built-in' : ''}</p></div></div></div>- <div className="header-actions">- {readOnly && (- <button className="button" type="button" disabled={busy} onClick={async () => {- setBusy(true);- try {- const c = await createCustom({ name: `${oob!.name} (custom)`, base: oob!.id, defaultModel: oobDefaultModel(oob), systemPrompt: oob!.systemPrompt });- router.push(`/harnesses/${encodeURIComponent(c.id)}`);- } finally { setBusy(false); }- }}><iconify-icon icon="tabler:git-fork"></iconify-icon>Fork and Customize</button>- )}- <button className="button primary" type="button" onClick={() => router.push(`/tasks?h=${encodeURIComponent(id)}`)}>- <iconify-icon icon="tabler:list-details"></iconify-icon>Run Task</button>- </div></div><div className="detail-metrics" aria-label="Selected Harness metrics">@@ -334,7 +321,30 @@ export default function HarnessSettingsPage() {{dirty && (<button className="button" type="button" disabled={busy} onClick={() => setDraft(saved)}>Discard Changes</button>)}- <button className="button primary" type="submit" disabled={!dirty || busy}>{busy ? 'Saving…' : 'Save Changes'}</button>+ {dirty ? (+ <button className="button primary" type="submit" disabled={busy}>{busy ? 'Saving…' : 'Save Changes'}</button>+ ) : (+ <button className="button primary" type="button"+ onClick={() => router.push(`/tasks?h=${encodeURIComponent(id)}`)}>+ <iconify-icon icon="tabler:list-details"></iconify-icon>Run Task</button>+ )}+ </div>+ )}+ {/* Built-ins have nothing to save, but they still need somewhere to act — same bar,+ same corner, so the action never moves depending on which harness you opened. */}+ {readOnly && (+ <div className="settings-form-footer settings-footer-sticky">+ <span className="settings-footer-spacer" />+ <button className="button" type="button" disabled={busy} onClick={async () => {+ setBusy(true);+ try {+ const c = await createCustom({ name: `${oob!.name} (custom)`, base: oob!.id, defaultModel: oobDefaultModel(oob), systemPrompt: oob!.systemPrompt });+ router.push(`/harnesses/${encodeURIComponent(c.id)}`);+ } finally { setBusy(false); }+ }}><iconify-icon icon="tabler:git-fork"></iconify-icon>Fork and Customize</button>+ <button className="button primary" type="button"+ onClick={() => router.push(`/tasks?h=${encodeURIComponent(id)}`)}>+ <iconify-icon icon="tabler:list-details"></iconify-icon>Run Task</button></div>)}</form>