feat(FN-2979): add droid CLI probe module for node diagnostics

Added a new `droid-cli-probe` module to the dashboard package with test coverage, implementing a CLI probe capability for the droid system.

Fusion-Task-Id: FN-2979
This commit is contained in:
Fusion
2026-05-01 04:03:02 -07:00
committed by gsxdsm
parent 9f141800cd
commit 2a766fe8d6
12 changed files with 784 additions and 43 deletions

View File

@@ -1114,6 +1114,15 @@ export function registerAgentRuntimeRoutes(ctx: ApiRoutesContext, deps: AgentRun
throw notFound("Run not found");
}
// Prefer run-scoped JSONL logs (written by the always-on AgentLogger).
// These exist for both no-task and task-scoped runs from this version onward.
const runLogs = await agentStore.getRunLogs(req.params.id, req.params.runId);
if (runLogs.length > 0) {
res.json(runLogs);
return;
}
// Legacy fallback: use the run's context snapshot task ID to query task-scoped logs.
// Only use the run's context snapshot for task ID — do not fall back
// to agent.taskId since that represents the agent's *current* task,
// not the task active during a historical run.