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(kits): a running kit said what we would have picked, not what it runs

richard-epsilla06e092efe367
diff --git a/gateway/app.py b/gateway/app.py
index d663d9a8..4281be0f 100644
--- a/gateway/app.py
+++ b/gateway/app.py
@@ -7109,6 +7109,12 @@ async def list_kits(request: Request) -> dict:
# What the kit actually installs, from its own config — so the card can say
# what you get instead of asking you to take it on trust.
"skills": [str(n) for n in ((kit.get("harness") or {}).get("skills") or [])],
+ # What a LAUNCHED kit is really running on. Not the same thing as the
+ # recommendation: the person may have chosen differently at launch, or changed
+ # it since. Showing the recommendation for a running kit would state something
+ # about their setup that is not true.
+ "runningOn": ({"base": str(h.get("base") or ""),
+ "model": str(h.get("default_model") or "")} if h else None),
# What to run it on: this kit's own recommended pairings, each marked with
# whether the caller's integrations can serve it. The launch dialog renders
# these directly and preselects the one flagged `recommended`.
diff --git a/ui/src/app/(app)/kits/page.tsx b/ui/src/app/(app)/kits/page.tsx
index 352fe1a4..bdaa8eb3 100644
--- a/ui/src/app/(app)/kits/page.tsx
+++ b/ui/src/app/(app)/kits/page.tsx
@@ -26,14 +26,26 @@ interface Kit {
icon: string; accent: string; route: string;
launched: boolean; harnessId: string | null;
skills: string[];
+ runningOn: { base: string; model: string } | null;
choices: Choice[];
}
interface BaseModel { id: string; available: boolean }
interface Base { id: string; label: string; models: BaseModel[] }
-/** The pairing this kit will actually run on, or null when nothing here can serve it. */
-function runtimeOf(kit: Kit): Choice | null {
- return kit.choices?.find((c) => c.recommended) || null;
+/** What the card should say about the runtime.
+ *
+ * A LAUNCHED kit reports what its Harness is really running — the person may have chosen
+ * something other than the recommendation at launch, or changed it since, and showing the
+ * recommendation instead would state something about their setup that is not true. Only a kit
+ * that has never been launched shows a recommendation, and says so.
+ */
+function runtimeOf(kit: Kit): { label: string; model: string; suggested: boolean } | null {
+ if (kit.launched && kit.runningOn?.base) {
+ const c = kit.choices?.find((x) => x.base === kit.runningOn!.base);
+ return { label: c?.baseLabel || kit.runningOn.base, model: kit.runningOn.model, suggested: false };
+ }
+ const rec = kit.choices?.find((c) => c.recommended);
+ return rec ? { label: rec.baseLabel, model: rec.model, suggested: true } : null;
}
export default function KitsPage() {
@@ -145,7 +157,8 @@ export default function KitsPage() {
{run && (
<li>
<iconify-icon icon="tabler:cpu"></iconify-icon>
- Runs on {run.baseLabel}<span className="kit-fact-dim"> · {run.model}</span>
+ {run.suggested ? 'Will run on ' : 'Running on '}{run.label}
+ <span className="kit-fact-dim"> · {run.model}</span>
</li>
)}
{!run && (