@@ -189,11 +189,6 @@ export const App = ({
189189 }
190190
191191 const agentListId = 'loaded-agents-list'
192- const userCredentials = getUserCredentials ( )
193- const greeting = userCredentials ?. name ?. trim ( ) . length
194- ? `Welcome back, ${ userCredentials . name . trim ( ) } !`
195- : null
196-
197192 const baseTextColor = theme . foreground
198193
199194 const homeDir = os . homedir ( )
@@ -205,7 +200,7 @@ export const App = ({
205200
206201 const agentSectionHeader = agentId
207202 ? `**Active agent: ${ agentId } **`
208- : `**Active agent:** *fast default (base2-fast)*`
203+ : undefined
209204
210205 const buildBlocks = ( listId : string ) : ContentBlock [ ] => {
211206 const blocks : ContentBlock [ ] = [
@@ -218,29 +213,27 @@ export const App = ({
218213 } ,
219214 ]
220215
221- if ( greeting ) {
222- blocks . push ( {
223- type : 'text' ,
224- content : greeting ,
225- color : baseTextColor ,
226- } )
227- }
228-
229216 blocks . push ( {
230217 type : 'html' ,
231218 render : ( ) => (
232- < text style = { { wrapMode : 'word' } } >
233- < span fg = { baseTextColor } >
234- Codebuff can read and write files in{ ' ' }
235- < TerminalLink
236- text = { displayPath }
237- inline = { true }
238- underlineOnHover = { true }
239- onActivate = { ( ) => openFileAtPath ( repoRoot ) }
240- />
241- , and run terminal commands to help you build.
242- </ span >
243- </ text >
219+ < >
220+ < text style = { { wrapMode : 'word' , marginBottom : 1 } } >
221+ < span fg = { baseTextColor } >
222+ Codebuff will run commands on your behalf to help you build.
223+ </ span >
224+ </ text >
225+ < text style = { { wrapMode : 'word' , marginBottom : 1 } } >
226+ < span fg = { baseTextColor } >
227+ Directory{ ' ' }
228+ < TerminalLink
229+ text = { displayPath }
230+ inline = { true }
231+ underlineOnHover = { true }
232+ onActivate = { ( ) => openFileAtPath ( repoRoot ) }
233+ />
234+ </ span >
235+ </ text >
236+ </ >
244237 ) ,
245238 } )
246239
@@ -251,13 +244,15 @@ export const App = ({
251244 agentsDir : loadedAgentsData . agentsDir ,
252245 } )
253246
254- blocks . push ( {
255- type : 'text' ,
256- content : agentSectionHeader ,
257- marginTop : 1 ,
258- marginBottom : 0 ,
259- color : baseTextColor ,
260- } )
247+ if ( agentSectionHeader ) {
248+ blocks . push ( {
249+ type : 'text' ,
250+ content : agentSectionHeader ,
251+ marginTop : 1 ,
252+ marginBottom : 0 ,
253+ color : baseTextColor ,
254+ } )
255+ }
261256
262257 return blocks
263258 }
@@ -485,8 +480,10 @@ export const App = ({
485480
486481 const abortControllerRef = useRef < AbortController | null > ( null )
487482
488- const { scrollToLatest, scrollboxProps, isAtBottom } =
489- useChatScrollbox ( scrollRef , messages )
483+ const { scrollToLatest, scrollboxProps, isAtBottom } = useChatScrollbox (
484+ scrollRef ,
485+ messages ,
486+ )
490487
491488 const inertialScrollAcceleration = useMemo (
492489 ( ) => createChatScrollAcceleration ( ) ,
0 commit comments