Skip to content

Commit 724c4d7

Browse files
christsoCopilot
andauthored
fix(studio): rename console log to run log
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent f7808c5 commit 724c4d7

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

apps/cli/src/commands/results/eval-runner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ function isCommandAvailable(cmd: string): boolean {
285285
* directory cannot be created or the file cannot be opened — callers fall back
286286
* to the in-memory buffer in that case.
287287
*
288-
* The log file is the source of truth shown by the RunDetail "Console Log"
288+
* The log file is the source of truth shown by the RunDetail "Run Log"
289289
* section after the run completes. The in-memory `stdout`/`stderr` buffers on
290290
* `StudioRun` remain capped for live status polling.
291291
*

apps/cli/src/commands/results/serve.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,17 +325,17 @@ async function handleRunLog(c: C, { searchDir }: DataContext) {
325325
const meta = await findRunById(searchDir, filename);
326326
if (!meta) return c.json({ error: 'Run not found' }, 404);
327327
if (meta.source === 'remote') {
328-
return c.json({ error: 'Console log is not available for remote runs' }, 404);
328+
return c.json({ error: 'Run log is not available for remote runs' }, 404);
329329
}
330330
const logPath = path.join(path.dirname(meta.path), 'console.log');
331331
if (!existsSync(logPath)) {
332-
return c.json({ error: 'Console log not found for this run' }, 404);
332+
return c.json({ error: 'Run log not found for this run' }, 404);
333333
}
334334
try {
335335
const content = readFileSync(logPath, 'utf8');
336336
return c.text(content);
337337
} catch {
338-
return c.json({ error: 'Failed to read console log' }, 500);
338+
return c.json({ error: 'Failed to read run log' }, 500);
339339
}
340340
}
341341

apps/studio/src/components/RunDetail.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Category Breakdown is shown as a clean table with coloured pass-rate pills.
66
* The All Evals table shows ERR badge instead of 0% for execution errors.
77
*
8-
* Also renders a collapsible "Console Log" section sourced from the run's
8+
* Also renders a collapsible "Run Log" section sourced from the run's
99
* captured `console.log` file (served by `/api/runs/:id/log`). Hidden when no
1010
* log is available — e.g. for remote runs or local runs that completed before
1111
* the console-log capture feature shipped.
@@ -284,7 +284,7 @@ function ConsoleLogSection({ runId, projectId }: { runId: string; projectId?: st
284284
>
285285
<span className="flex items-center gap-2">
286286
<span aria-hidden="true">{open ? '▾' : '▸'}</span>
287-
Console Log
287+
Run Log
288288
</span>
289289
<span className="text-xs text-gray-500">
290290
{isLoading ? 'Loading…' : error ? 'Failed to load' : log ? `${log.length} chars` : ''}
@@ -294,7 +294,7 @@ function ConsoleLogSection({ runId, projectId }: { runId: string; projectId?: st
294294
<div className="mt-2 overflow-hidden rounded-lg border border-gray-800 bg-black">
295295
{error ? (
296296
<div className="p-4 text-sm text-red-400">
297-
Failed to load console log: {(error as Error).message}
297+
Failed to load run log: {(error as Error).message}
298298
</div>
299299
) : (
300300
<pre className="max-h-[480px] overflow-auto whitespace-pre-wrap break-words p-4 font-mono text-xs leading-relaxed text-gray-200">

apps/studio/src/lib/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async function fetchJson<T>(url: string): Promise<T> {
4444

4545
/**
4646
* Fetch a text/plain endpoint. Treats 404 as `null` so callers can model
47-
* "log not yet captured" without throwing — used by the RunDetail console log
47+
* "log not yet captured" without throwing — used by the RunDetail run log
4848
* viewer for runs that finished before this feature shipped (no console.log
4949
* on disk) and for remote runs.
5050
*/

0 commit comments

Comments
 (0)