You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
chore(runtime-host): ClientSurface is a required handshake field with zero readers #3216
Found by a repo-wide simplification audit; re-verified with git grep -aI.
ClientSurface is a required handshake field that no Host code reads:
Type/decode/requireSurface: packages/runtime-host/src/protocol/index.ts:88-95, :219, :402-414; threaded into ConnectionContext (operation-dispatcher.ts), assigned once in host-kernel.ts.
Producers exist in all five clients (desktop, tui, run, activation, capability-provider), but git grep -aInw surface across src/server/ and src/transport/ shows zero production readers.
Methodology note that likely explains its longevity: protocol/index.ts contains NUL bytes, so default rg/grep treat it as binary and silently skip it — absence checks must use git grep -aI.
Disappearance surface: the enum, decode + requireSurface validation, the ConnectionContext field, and the five client-side pass-throughs. If client identity is wanted later for routing/telemetry, it can be reintroduced with an actual reader.
Note for contributors: surface is a required handshake field, and remote Runtime Hosts can be on older/newer versions than the client (see #3204 on version skew). Removal should keep the server decode tolerant of clients that still send the field, and clients must not start failing against hosts that still require it — sequence the change so decode-tolerance lands before the client-side stop-sending.
I’d like to take this. I’ve opened #3277 with the compatibility-safe cleanup: new Hosts accept hello frames with or without surface, while new Clients keep a private fixed surface: "desktop" shim for older Hosts. The shim remains until a tolerant Host release is the minimum supported version. The PR includes protocol, Host, client API, CLI/Desktop call-site, fixture, and regression-test updates.
Activity
Astro-Han commentedon Aug 18, 2026
Note for contributors:
surfaceis a required handshake field, and remote Runtime Hosts can be on older/newer versions than the client (see #3204 on version skew). Removal should keep the server decode tolerant of clients that still send the field, and clients must not start failing against hosts that still require it — sequence the change so decode-tolerance lands before the client-side stop-sending.Sun-GLiang commentedon Aug 20, 2026
I’d like to take this. I’ve opened #3277 with the compatibility-safe cleanup: new Hosts accept hello frames with or without
surface, while new Clients keep a private fixedsurface: "desktop"shim for older Hosts. The shim remains until a tolerant Host release is the minimum supported version. The PR includes protocol, Host, client API, CLI/Desktop call-site, fixture, and regression-test updates.