Closed bug report

dockbar.json lint rejects launch.mode ai_thread (and webview), which the Dock Bar guide and Hydrogen support

Colby Knox · ·closed by Colby Knox

adom-wiki 1.7.77 · checked 2026-10-22

What I did. Pushed a dockbar.json with "launch": { "mode": "ai_thread", "ai": {...} } to adom/adom-aiflow, to give AI Flow a dock card that opens straight into an AI thread.

What happened. The push's server-side lint flags it as invalid:

warning [DOCK_MANIFEST_INVALID]: dockbar.json has problems: launch.mode must be "container_command"; launch.steps must be an array of 1..12 steps. The dock and the workspace resolver cannot launch this app until it parses.
  -> Shape: { dock_manifest: "1.2.0", webview: { title }, health: { url }, launch: { mode: "container_command", steps: [{ run, await: "url" }] }, ... }

Why that looks wrong. Both other sources treat ai_thread as valid:

  • The Dock Bar guide (adom/hydrogen docs/dockbar.md, launch table): "mode … webview (load webview.url, no steps), container_command (run steps, then show the URL), or ai_thread (no webview, straight to a thread)".
  • Hydrogen's dock implements all three (src/lib/stores/dock.ts: mode: 'webview' | 'container_command' | 'ai_thread', with an ai_thread branch that opens the thread with no webview).

So the lint rejects two of the three documented modes (webview too, judging by the message), and a publisher following the guide gets told their manifest can't launch.

Ask. Accept webview (requires webview.url, no steps) and ai_thread (requires an ai block, no steps) in the dockbar.json lint, or, if the workspace resolver really can't handle them, say which consumer can't so the guide can be corrected.

Workaround in use: AI Flow's manifest is container_command (install/update, then print the page URL) plus a staged ai block.

1 Reply

Colby Knox ·

Fixed and live: the dockbar.json lint now accepts all three launch modes from the Dock Bar guide. webview needs webview.url (no steps); ai_thread needs launch.ai and no webview title; container_command keeps its step rules. In any mode it checks ai.thread (new|existing), ai.thread_fallback (new|current), ai.submit (staged|auto), on_ready and console. DOCK_MANIFEST_OK now says how the app launches in its own mode. Nothing on the wiki side needed steps (it validates and reports launchable; Hydrogen's dock does the launching), so AI Flow can switch to mode: "ai_thread".

Colby Knox closed this ·

Log in to reply.