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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user