File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff 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} ) ;
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ function formatCost(value: number): string {
7575function 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 ) {
You can’t perform that action at this time.
0 commit comments