Skip to content

Commit 1ce429e

Browse files
committed
Merge remote-tracking branch 'origin/main' into feat/siliconflow-session-title-177166
2 parents 752ad42 + 9c6a6ed commit 1ce429e

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

packages/agents/test/session-inspector.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,9 @@ describe("session inspector", () => {
283283
"medium"
284284
);
285285

286-
expect(text).toContain("model: gpt-5.3-codex");
286+
expect(text).toContain("gpt-5.3-codex");
287287
expect(text).toContain("42k tokens");
288-
expect(text).toContain("build agent");
288+
expect(text).toContain("build");
289289
expect(text).not.toContain("cost 0");
290290
});
291291
});

packages/utils/status.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function formatCost(value: number): string {
7575
function buildHeaderDetails(state: SessionMessageState): string {
7676
const details: string[] = [];
7777
if (state.model) {
78-
details.push(`model: ${state.model}`);
78+
details.push(state.model);
7979
}
8080

8181
const totalTokens = state.tokenUsage?.total;
@@ -84,7 +84,7 @@ function buildHeaderDetails(state: SessionMessageState): string {
8484
}
8585

8686
if (state.agent) {
87-
details.push(`${state.agent} agent`);
87+
details.push(state.agent);
8888
}
8989

9090
const cost = state.tokenUsage?.cost;
@@ -306,10 +306,12 @@ export function buildLiveStatusMessage(
306306
const lines: string[] = [];
307307
const headerDetails = buildHeaderDetails(state);
308308

309-
if (state.sessionTitle) {
309+
const shouldHideSessionTitle = Boolean(state.model || state.agent);
310+
311+
if (state.sessionTitle && !shouldHideSessionTitle) {
310312
lines.push(`*${state.sessionTitle}* (${headerDetails})`);
311313
} else {
312-
lines.push(`_${headerDetails}_`);
314+
lines.push(`(${headerDetails})`);
313315
}
314316

315317
if (state.phaseStatus) {

0 commit comments

Comments
 (0)