@@ -92,7 +92,6 @@ const context = createContext<{
9292 conceal : ( ) => boolean
9393 showThinking : ( ) => boolean
9494 showTimestamps : ( ) => boolean
95- usernameVisible : ( ) => boolean
9695 showDetails : ( ) => boolean
9796 diffWrapMode : ( ) => "word" | "none"
9897 sync : ReturnType < typeof useSync >
@@ -141,7 +140,6 @@ export function Session() {
141140 const [ conceal , setConceal ] = createSignal ( true )
142141 const [ showThinking , setShowThinking ] = createSignal ( kv . get ( "thinking_visibility" , true ) )
143142 const [ showTimestamps , setShowTimestamps ] = createSignal ( kv . get ( "timestamps" , "hide" ) === "show" )
144- const [ usernameVisible , setUsernameVisible ] = createSignal ( kv . get ( "username_visible" , true ) )
145143 const [ showDetails , setShowDetails ] = createSignal ( kv . get ( "tool_details_visibility" , true ) )
146144 const [ showAssistantMetadata , setShowAssistantMetadata ] = createSignal ( kv . get ( "assistant_metadata_visibility" , true ) )
147145 const [ showScrollbar , setShowScrollbar ] = createSignal ( kv . get ( "scrollbar_visible" , false ) )
@@ -465,20 +463,6 @@ export function Session() {
465463 dialog . clear ( )
466464 } ,
467465 } ,
468- {
469- title : usernameVisible ( ) ? "Hide username" : "Show username" ,
470- value : "session.username_visible.toggle" ,
471- keybind : "username_toggle" ,
472- category : "Session" ,
473- onSelect : ( dialog ) => {
474- setUsernameVisible ( ( prev ) => {
475- const next = ! prev
476- kv . set ( "username_visible" , next )
477- return next
478- } )
479- dialog . clear ( )
480- } ,
481- } ,
482466 {
483467 title : "Toggle code concealment" ,
484468 value : "session.toggle.conceal" ,
@@ -913,7 +897,6 @@ export function Session() {
913897 conceal,
914898 showThinking,
915899 showTimestamps,
916- usernameVisible,
917900 showDetails,
918901 diffWrapMode,
919902 sync,
@@ -1103,6 +1086,7 @@ function UserMessage(props: {
11031086 const [ hover , setHover ] = createSignal ( false )
11041087 const queued = createMemo ( ( ) => props . pending && props . message . id > props . pending )
11051088 const color = createMemo ( ( ) => ( queued ( ) ? theme . accent : local . agent . color ( props . message . agent ) ) )
1089+ const metadataVisible = createMemo ( ( ) => queued ( ) || ctx . showTimestamps ( ) )
11061090
11071091 const compaction = createMemo ( ( ) => props . parts . find ( ( x ) => x . type === "compaction" ) )
11081092
@@ -1132,7 +1116,7 @@ function UserMessage(props: {
11321116 >
11331117 < text fg = { theme . text } > { text ( ) ?. text } </ text >
11341118 < Show when = { files ( ) . length } >
1135- < box flexDirection = "row" paddingBottom = { 1 } paddingTop = { 1 } gap = { 1 } flexWrap = "wrap" >
1119+ < box flexDirection = "row" paddingBottom = { metadataVisible ( ) ? 1 : 0 } paddingTop = { 1 } gap = { 1 } flexWrap = "wrap" >
11361120 < For each = { files ( ) } >
11371121 { ( file ) => {
11381122 const bg = createMemo ( ( ) => {
@@ -1150,23 +1134,22 @@ function UserMessage(props: {
11501134 </ For >
11511135 </ box >
11521136 </ Show >
1153- < text fg = { theme . textMuted } >
1154- { ctx . usernameVisible ( ) ? `${ sync . data . config . username ?? "You " } ` : "You " }
1155- < Show
1156- when = { queued ( ) }
1157- fallback = {
1158- < Show when = { ctx . showTimestamps ( ) } >
1137+ < Show
1138+ when = { queued ( ) }
1139+ fallback = {
1140+ < Show when = { ctx . showTimestamps ( ) } >
1141+ < text fg = { theme . textMuted } >
11591142 < span style = { { fg : theme . textMuted } } >
1160- { ctx . usernameVisible ( ) ? " · " : " " }
11611143 { Locale . todayTimeOrDateTime ( props . message . time . created ) }
11621144 </ span >
1163- </ Show >
1164- }
1165- >
1166- < span > </ span >
1145+ </ text >
1146+ </ Show >
1147+ }
1148+ >
1149+ < text fg = { theme . textMuted } >
11671150 < span style = { { bg : theme . accent , fg : theme . backgroundPanel , bold : true } } > QUEUED </ span >
1168- </ Show >
1169- </ text >
1151+ </ text >
1152+ </ Show >
11701153 </ box >
11711154 </ box >
11721155 </ Show >
0 commit comments