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(console): the dialog says only what it knows, and trims what the user typed

richard-epsillaebbb87c0330d
diff --git a/ui/src/app/revamp.css b/ui/src/app/revamp.css
index 2d37d232..99ead854 100644
--- a/ui/src/app/revamp.css
+++ b/ui/src/app/revamp.css
@@ -1893,10 +1893,7 @@ main .hr-wrap { max-width: 1320px; margin: 0 auto; padding: 28px 32px 64px; }
.invite-copy { flex: 0 0 auto; width: auto !important; padding: 0 16px; }
/* ── cloud upload: one dialog, a chip, a select bar ───────────────────────── */
- .cloud-kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 13px; }
- .cloud-kv div { display: contents; }
- .cloud-kv dt { color: var(--muted); }
- .cloud-kv dd { margin: 0; color: var(--ink); }
+ .cloud-includes { margin-top: -2px; }
.cloud-keyrow { display: flex; gap: 8px; }
.cloud-keyrow input { flex: 1; min-width: 0; }
.cloud-rows { max-height: 44vh; overflow-y: auto; }
diff --git a/ui/src/components/CloudUploadDialog.tsx b/ui/src/components/CloudUploadDialog.tsx
index 829069b7..898e042e 100644
--- a/ui/src/components/CloudUploadDialog.tsx
+++ b/ui/src/components/CloudUploadDialog.tsx
@@ -46,7 +46,7 @@ export function CloudUploadDialog({ items, onClose, onDone }: {
finally { setBusy(false); }
}
- const title = single ? `Upload "${items[0].name}"` : `Upload ${eligible.length} to cloud`;
+ const title = single ? `Upload "${items[0].name.trim()}"` : `Upload ${eligible.length} to cloud`;
const canUpload = !busy && eligible.length > 0 && !adding;
return (
@@ -62,7 +62,7 @@ export function CloudUploadDialog({ items, onClose, onDone }: {
{rows.map((r) => {
const it = items.find((i) => i.id === r.id);
return (<tr key={r.id}>
- <td><strong>{it?.name || r.name || ''}</strong></td>
+ <td><strong>{(it?.name || r.name || '').trim()}</strong></td>
<td>{r.ok ? (r.action === 'create' ? 'Created' : 'Replaced') : r.action === 'skip' ? 'Skipped' : 'Failed'}</td>
<td className="cloud-note">{r.ok ? '' : r.error}</td>
</tr>);
@@ -87,15 +87,13 @@ export function CloudUploadDialog({ items, onClose, onDone }: {
<span className="field-help">From the cloud console, inside the workspace, under Keys.</span>
</div>
)}
- {single && (
- <dl className="cloud-kv">
- <div><dt>Includes</dt><dd>{items[0].includes || 'instructions'}</dd></div>
- </dl>
+ {single && items[0].includes && (
+ <span className="field-help cloud-includes">Includes {items[0].includes}</span>
)}
{!single && (
<div className="table-wrap cloud-rows"><table><tbody>
{items.map((i) => (<tr key={i.id}>
- <td><strong>{i.name}</strong></td>
+ <td><strong>{i.name.trim()}</strong></td>
<td>{i.builtin ? 'Skip' : i.uploaded ? 'Replace' : 'Create'}</td>
<td className="cloud-note">{i.builtin ? 'built-in' : ''}</td>
</tr>))}