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
Opening a harness starts a task in it; the task list loads as a skeleton (#100)
github-actions[bot]81a208d499c2
diff --git a/ui/src/app/(app)/harnesses/page.tsx b/ui/src/app/(app)/harnesses/page.tsxindex d24bf003..2be01dd1 100644--- a/ui/src/app/(app)/harnesses/page.tsx+++ b/ui/src/app/(app)/harnesses/page.tsx@@ -182,7 +182,13 @@ export default function HarnessesPage() {go({ h: hid });};const openSettings = (hid: string) => { setMobileDetail(true); go({ h: hid, view: 'settings' }); };- const toggle = (hid: string) => setOpen((s) => (s === hid ? null : hid));+ // Opening a harness also opens a fresh task in it with the caret in the box: the click that+ // reveals the folder is the same click that starts work there. Closing only folds the list.+ const toggle = (hid: string) => {+ if (open === hid) { setOpen(null); return; }+ setOpen(hid);+ openNew(hid);+ };return (<section className={'hx-root' + (mobileDetail ? ' m-detail' : '')} id="view-harnesses">@@ -246,7 +252,12 @@ export default function HarnessesPage() {</div>{isOpen && (<div className="hx-tasks">- {tasks.length === 0 ? (loaded ? <div className="hx-tasks-empty">No tasks yet</div> : null) : tasks.map((c) => {+ {tasks.length === 0 ? (loaded ? <div className="hx-tasks-empty">No tasks yet</div> : (+ <div className="hx-tasks-skel" aria-hidden="true">+ <div className="hx-task-row"><span className="sk hx-skel-dot" /><span className="sk hx-skel-bar" style={{ width: '58%' }} /></div>+ <div className="hx-task-row"><span className="sk hx-skel-dot" /><span className="sk hx-skel-bar" style={{ width: '42%' }} /></div>+ </div>+ )) : tasks.map((c) => {const on = c.session_id === sid;return (<div key={c.session_id} className={'hx-task-row' + (on ? ' is-on' : '')}>diff --git a/ui/src/app/v2.css b/ui/src/app/v2.cssindex d2526802..66e785bf 100644--- a/ui/src/app/v2.css+++ b/ui/src/app/v2.css@@ -477,6 +477,9 @@ body {/* The tree guide: a hairline under the caret, so the tasks read as the harness's children. */.hx-tasks::before { content: ''; position: absolute; left: 21px; top: 0; bottom: 6px; width: 1px; background: var(--v2-line); }.hx-tasks-empty { padding: 5px 14px 6px 34px; font-size: 12px; color: var(--v2-cap); }+.hx-tasks-skel .hx-task-row { gap: 9px; padding: 8px 14px 8px 34px; }+.hx-skel-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }+.hx-skel-bar { height: 11px; border-radius: 5px; }.hx-task { position: relative; display: flex; align-items: center; gap: 9px; width: 100%; padding: 6px 14px 6px 32px; border: 0; background: none; cursor: pointer;font: inherit; text-align: left; }.hx-task span { font-size: 13px; color: var(--v2-body); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }diff --git a/ui/src/components/TaskChat.tsx b/ui/src/components/TaskChat.tsxindex d9898bc4..00564235 100644--- a/ui/src/components/TaskChat.tsx+++ b/ui/src/components/TaskChat.tsx@@ -468,7 +468,7 @@ function Conversation({ harnessId, sessionId, target, models, onModel, onRan, onconst taRef = useRef<HTMLTextAreaElement>(null); // shared Composer auto-grows it (15-row cap)// A fresh draft is for typing: the caret is already in the box when the page settles on it.const hero = !loading && msgs.length === 0 && !busy;- useEffect(() => { if (hero) taRef.current?.focus(); }, [hero]);+ useEffect(() => { if (hero) taRef.current?.focus(); }, [hero, harnessId]); // a fresh draft in another harness is a fresh box tooconst [files, setFiles] = useState<{ name: string; dataUri: string }[]>([]);const [preview, setPreview] = useState<{ url: string; name: string } | null>(null);const [modelOpen, setModelOpen] = useState(false);