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.

UHP changelog: the 2026-09-29 patch note; console: the mobile bar's height is one number every viewport-high root uses (#333)

github-actions[bot]2961d6b7c6f2
diff --git a/protocol/CHANGELOG.md b/protocol/CHANGELOG.md
index 0a5fee75..045daca7 100644
--- a/protocol/CHANGELOG.md
+++ b/protocol/CHANGELOG.md
@@ -2,16 +2,27 @@
All notable changes to the Unified Harness Protocol.
-## 2026-09-28
+## 2026-09-28 (patched 2026-09-29)
Additive to `2026-09-12`: every request and object valid under the previous version is valid here.
+**Patch of 2026-09-29, same version.** The task-side reference to an environment is
+`metadata.environment`, not a top-level request field: the task surface is a Responses request
+and `metadata` is its extension point, where `harness_id` already travels
+([Tasks §1.2](versions/2026-09-28/tasks.md#12-selecting-the-harness),
+[Environments §5](versions/2026-09-28/environments.md#5-attaching-an-environment)). The response
+reports `metadata.environment` beside `session_id`. The harness and session objects keep
+`environment` as an ordinary field. The published chapter had carried the field at the top level
+for one day; the schema, the conformance suite (`2026.9.28.post1`: EN-05 sends it in `metadata`,
+EN-07 asserts the response echo) and the reference server (0.26.7) changed together.
+
- **Environments** ([Environments](versions/2026-09-28/environments.md)), the Environments
sub-protocol, optional at every class behind the `environments` capability. An environment is a
project's files and installed dependencies, built once and mounted read-only at a fixed path in
every session that names it, beside the session's own writable working directory. The chapter
defines the object (`henv_`), files by path and whole-project import, builds and versions with
- an active pointer and rollback, the `environment` field on the harness object and on a task,
+ an active pointer and rollback, the `environment` field on the harness object and
+ `metadata.environment` on a task,
what a session sees (the mount, the variables, the instruction, the record), and the errors.
- The session object carries `environment` ([Sessions §3](versions/2026-09-28/sessions.md#3-inspecting-a-session)).
- New error codes: `environment_not_found`, `environment_not_ready`, `environment_busy`,
diff --git a/protocol/versions/2026-09-28/environments.md b/protocol/versions/2026-09-28/environments.md
index 1bc01618..bf61a39c 100644
--- a/protocol/versions/2026-09-28/environments.md
+++ b/protocol/versions/2026-09-28/environments.md
@@ -208,7 +208,7 @@ A harness names the environment its tasks read, and a task may name a different
`metadata.session_id`.
> **Why is the task's environment in `metadata` rather than a top-level field?**
-> For the reason the harness is ([Tasks §1.2](tasks.md#12-selecting-a-harness)): the task surface
+> For the reason the harness is ([Tasks §1.2](tasks.md#12-selecting-the-harness)): the task surface
> is a Responses request, and `metadata` is the extension point that surface defines for
> caller-supplied context. A harness and a session are this protocol's own objects, so on them
> `environment` is an ordinary field; a task request is not, so on it the environment travels
diff --git a/ui/src/app/hr.css b/ui/src/app/hr.css
index f6222bd2..d0cec12b 100644
--- a/ui/src/app/hr.css
+++ b/ui/src/app/hr.css
@@ -1193,8 +1193,10 @@ body.hr-resizing iframe { pointer-events: none; }
.env-pkg-empty code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.env-build-failed { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.env-log { margin: 0; padding: 12px 14px; max-height: 320px; overflow: auto; background: var(--surface-subtle); border-radius: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; line-height: 1.55; white-space: pre-wrap; color: var(--ink); }
+@media (max-width: 768px) {
+ .env-root { height: calc(100vh - var(--v2-mobilebar-h)); } /* under the mobile bar, which exists at this width only */
+}
@media (max-width: 900px) {
- .env-root { height: calc(100vh - 53px); } /* under the mobile bar */
.env-head { padding: 18px 16px 14px; }
.env-title-row h1 { font-size: 24px; }
.env-add { margin-left: 0; width: 100%; }
diff --git a/ui/src/app/v2.css b/ui/src/app/v2.css
index 8296c940..d3d9b88f 100644
--- a/ui/src/app/v2.css
+++ b/ui/src/app/v2.css
@@ -193,14 +193,18 @@ body {
/* main content sits right of the sidebar */
.v2-main { margin-left: var(--v2-navw, 268px); min-height: 100vh; transition: margin-left .12s ease; }
-/* mobile top bar (≤768): the sidebar becomes an overlay drawer */
+/* mobile top bar (≤768): the sidebar becomes an overlay drawer. Its height is one number,
+ --v2-mobilebar-h, that the shell's main area and every viewport-high page root subtract from the
+ viewport; a root that guessed the bar's height was 6px short and the page scrolled by the bar. */
+:root { --v2-mobilebar-h: 47px; }
.v2-mobilebar { display: none; }
@media (max-width: 768px) {
.v2-mobilebar {
- display: flex; align-items: center; gap: 10px;
+ display: flex; align-items: center; gap: 10px; box-sizing: border-box; height: var(--v2-mobilebar-h);
position: sticky; top: 0; z-index: 55;
background: #fff; border-bottom: 1px solid var(--v2-line); padding: 10px 14px;
}
+ .v2-main { min-height: calc(100vh - var(--v2-mobilebar-h)); }
.v2-mobilebar img { width: 20px; height: 20px; }
.v2-mobilebar strong { font-size: 14px; }
.v2-mobilebar button {
@@ -340,7 +344,7 @@ body {
.us-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
- .us-root { height: calc(100vh - 53px); }
+ .us-root { height: calc(100vh - var(--v2-mobilebar-h)); }
.us-head { padding: 20px 16px 14px; }
.us-body { padding: 16px 16px 24px; }
.us-stat-v b { font-size: 22px; }
@@ -419,7 +423,7 @@ body {
.ak-created, .ak-th-created { display: none; }
}
@media (max-width: 768px) {
- .ak-root { height: calc(100vh - 53px); }
+ .ak-root { height: calc(100vh - var(--v2-mobilebar-h)); }
.ak-head { padding: 20px 16px 14px; }
.ak-body { padding: 16px 16px 24px; }
.ak-search { width: 100%; }
@@ -645,7 +649,7 @@ body {
.hx-side { width: 250px; }
}
@media (max-width: 820px) {
- .hx-root { height: calc(100vh - 53px); }
+ .hx-root { height: calc(100vh - var(--v2-mobilebar-h)); }
.hx-root:not(.m-detail) .hx-main { display: none; }
.hx-root.m-detail .hx-side { display: none; }
.hx-side { width: 100%; border-right: 0; }
@@ -763,7 +767,7 @@ body {
}
/* Phone: list and detail alternate, same as Tasks; the root sits under the mobile top bar. */
@media (max-width: 768px) {
- .ar2-root { height: calc(100vh - 53px); }
+ .ar2-root { height: calc(100vh - var(--v2-mobilebar-h)); }
.ar2-root:not(.m-detail) .ar2-main { display: none; }
.ar2-root.m-detail .ar2-side { display: none; }
.ar2-side { width: 100%; border-right: 0; }