Skip to content

Commit 9c6a6ed

Browse files
authored
Merge pull request #117 from odefun/feat/live-status-header-316499
fix: simplify live status header and bump version
2 parents 702141c + 091f3ed commit 9c6a6ed

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ode",
3-
"version": "0.0.79",
3+
"version": "0.0.80",
44
"description": "Coding anywhere with your coding agents connected",
55
"module": "packages/core/index.ts",
66
"type": "module",

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
@@ -74,7 +74,7 @@ function formatCost(value: number): string {
7474
function buildHeaderDetails(state: SessionMessageState): string {
7575
const details: string[] = [];
7676
if (state.model) {
77-
details.push(`model: ${state.model}`);
77+
details.push(state.model);
7878
}
7979

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

8585
if (state.agent) {
86-
details.push(`${state.agent} agent`);
86+
details.push(state.agent);
8787
}
8888

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

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

314316
if (state.phaseStatus) {

0 commit comments

Comments
 (0)