From 029ac8be5d25ea49cc4a27b0b4dfde9b3a9e4052 Mon Sep 17 00:00:00 2001 From: Chris Phillipson Date: Sat, 15 Aug 2026 15:17:11 -0700 Subject: [PATCH] fix: the host-detail renderer signature admits the hostId the dispatch loop passes The wave-2 quality gate caught a JSDoc mismatch: renderHostDetailRows calls every renderer with hostId, which opencodeDetailRows' destructured signature did not declare. Typecheck green; suite unchanged. --- src/commands/status.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/commands/status.mjs b/src/commands/status.mjs index 5f4dba7..3594881 100644 --- a/src/commands/status.mjs +++ b/src/commands/status.mjs @@ -66,7 +66,10 @@ const row = (subsystem, level, message, fix = null) => ({ subsystem, level, mess // lib/opencode.mjs, never in the dispatch loop itself. Adding a fourth host // means adding (or not adding) a table entry here — the loop that walks this // table never changes. -async function opencodeDetailRows({ cfg, pkgRoot, facts }) { +// The loop also passes `hostId`; this renderer doesn't need it (it IS the +// opencode renderer) but the signature admits it so the dispatch call site +// typechecks for every renderer uniformly. +async function opencodeDetailRows({ cfg, pkgRoot, facts, hostId: _hostId = 'opencode' } = /** @type {any} */ ({})) { const rows = []; try { if (!facts.hosts?.opencode?.present) {