Conversation
30e12e6 to
6bf95fb
Compare
Adds the harness/session/occupancy stack to sparkDash: - oh-my-pi (omp) session source with URL mode, helper script, and session age filter - DeepSeek Harness (dsh) session source with provider-to-origin mapping for spark-card projection - OpenCode and OpenClaw session sources - Harness onboarding wizard (HarnessWizard.tsx) with pick → configure-local/configure-remote → review flow - UI rename from "occupancy source" to "harness" - Pulsating session dots for generating and recent sessions - occupancyHosts persistence and merge fixes - Vitest frontend test infrastructure with jsdom and testing-library - Docs: OCCUPANCY.md, occupancy helper READMEs (folds PR MiaAI-Lab#50) Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
6bf95fb to
9be732b
Compare
|
I like this feature, and I like the design. Dashboard-level occupancy, tokens kept out of the public JSON, URLs through the existing host allowlist, and a wizard instead of hand-edited config is the right shape. The conversation list on the LLM card is the thing the dashboard is missing. I am not merging this branch as-is. It is one commit from 19 Aug, One question before that rebase, because it may shrink the patch a lot. Can ACP get you closer to the providers, instead of a collector and a helper script per harness? Agent Client Protocol ACP is a stdio JSON-RPC session you spawn, not an HTTP API the dashboard should poll. Do not start every harness binary on the LLM poll cadence — that fights the real sessions for the GPU. The useful cut is one small helper on the box that speaks ACP once and exposes the session list. That would replace the OpenCode / oh-my-pi / DeepSeek helper scripts with one protocol, and drop the local reads of If you can show that Hermes, OpenCode, and OpenClaw answer — Vincent |
TL;DR
This PR adds the full harness/session stack to sparkDash: five coding-agent harness sources (OpenClaw, Hermes, OpenCode, oh-my-pi, DeepSeek Harness), a 3-step onboarding wizard, live session occupancy on LLM cards, and occupancy helper docs. Reviewers can connect their harnesses in under a minute and see which sessions are active on each Spark.
What Problem This Solves
sparkDash showed GPU and model metrics but had no visibility into which coding-agent sessions were running on each LLM port. Operators had to SSH into boxes or check each harness separately to know what was active. There was also no guided setup — connecting a harness required editing config files by hand.
Why This Change Was Made
I run multiple coding-agent harnesses across my fleet and wanted dashboard-level visibility into active sessions without leaving sparkDash. The wizard makes onboarding self-service for anyone I share the dashboard with. The occupancy helpers are part of the same feature surface, so their docs are folded in here rather than split into a separate PR.
User Impact
Risk and Rollout
Low risk — this is additive (new session source collectors and a wizard modal). No existing behavior changes except the UI label rename. No migration needed; session sources default to empty. The
occupancyHostsfix corrects a projector bug that was replacing existing hosts instead of merging. Rollout is opt-in: users connect harnesses via the wizard when ready.Screenshots
Step 1 — Pick harnesses
Step 2 — Configure (local mode)
Step 2 — Configure (remote mode)
Step 3 — Review and save
Cleanshot
Demo
Feature demo video — wizard walkthrough
Evidence
npm run typecheck— passes cleannpm run build— passes (61 modules, 441 KB JS bundle)npm test— 370 server tests + 14 frontend tests pass (384 total, 0 fail)git diff upstream/main..feat/harness-session-wizard -- server/collectors/LlmProbe.jsis emptygit diff upstream/main..feat/harness-session-wizard -- src/components/SparkPage/BenchmarkDialog.tsxis empty