Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/utils/runLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export function buildRunLink({
const url = `${dashboardUrl.replace(/\/$/, '')}/runs/${runId}`;

const parts = [engineLabel, modelShort].filter(Boolean).join(' · ');
return `\n\n---\n🕵️ ${parts} · [run details](${url})`;
return `\n\n🕵️ ${parts} · [run details](${url})`;
}

/**
Expand Down Expand Up @@ -95,7 +95,7 @@ export function buildWorkItemRunsLink({
const modelShort = model ? shortenModelName(model) : '';
const parts = [engineLabel, modelShort].filter(Boolean).join(' · ');
const label = parts ? `${parts} · [run details](${url})` : `[run details](${url})`;
return `\n\n---\n🕵️ ${label}`;
return `\n\n🕵️ ${label}`;
}

/**
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/utils/runLink.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ describe('runLink utility', () => {
expect(result).toBe('');
});

it('includes separator and newlines', () => {
it('includes spacing newlines', () => {
const result = buildRunLink({
dashboardUrl: 'https://dashboard.example.com',
runId: 'run-123',
engineLabel: 'claude-code',
model: 'claude-haiku-4.5',
});

expect(result).toMatch(/^\n\n---\n/);
expect(result).toMatch(/^\n\n🕵️/);
});
});

Expand Down
Loading