@@ -97,7 +97,7 @@ export const ResponsePreview: FC<Props> = (props) => {
9797
9898 const prev_applying_count = useRef ( 0 )
9999 useEffect ( ( ) => {
100- if ( prev_applying_count . current > 0 && applying_files . length === 0 ) {
100+ if ( prev_applying_count . current > 0 && applying_files . length == 0 ) {
101101 set_is_fixing_all ( false )
102102 }
103103 prev_applying_count . current = applying_files . length
@@ -127,10 +127,7 @@ export const ResponsePreview: FC<Props> = (props) => {
127127 if ( file . apply_status == 'waiting' ) return 'Waiting...'
128128 if ( file . apply_status == 'thinking' ) return 'Thinking...'
129129 if ( file . apply_status == 'retrying' ) return 'Retrying...'
130- if ( file . apply_status == 'receiving' ) {
131- const tps = file . apply_tokens_per_second
132- return tps ? `${ tps } tokens/s` : 'Receiving...'
133- }
130+ if ( file . apply_status == 'receiving' ) return 'Receiving...'
134131 if ( file . apply_status == 'done' ) return 'Done'
135132 return ''
136133 }
@@ -140,6 +137,11 @@ export const ResponsePreview: FC<Props> = (props) => {
140137 return path . substring ( last_slash_index + 1 )
141138 }
142139
140+ const get_dir_path = ( path : string ) => {
141+ const last_slash_index = path . lastIndexOf ( '/' )
142+ return last_slash_index > - 1 ? path . substring ( 0 , last_slash_index ) : ''
143+ }
144+
143145 const get_instructions_font_size_class = ( text : string ) : string => {
144146 const length = text . length
145147 if ( length < 80 ) {
@@ -179,9 +181,15 @@ export const ResponsePreview: FC<Props> = (props) => {
179181 className = { styles [ 'fix-all-progress__item' ] }
180182 >
181183 < div className = { styles [ 'fix-all-progress__header' ] } >
182- < span className = { styles [ 'fix-all-progress__header__name' ] } >
183- { get_file_name ( file . file_path ) }
184- </ span >
184+ < div className = { styles [ 'fix-all-progress__header__name' ] } >
185+ < span > { get_file_name ( file . file_path ) } </ span >
186+ < span >
187+ { props . has_multiple_workspaces && file . workspace_name
188+ ? `${ file . workspace_name } ${ get_dir_path ( file . file_path ) ? '/' : '' } `
189+ : '' }
190+ { get_dir_path ( file . file_path ) }
191+ </ span >
192+ </ div >
185193 < span className = { styles [ 'fix-all-progress__header__status' ] } >
186194 { get_status_text ( file ) }
187195 </ span >
@@ -228,7 +236,6 @@ export const ResponsePreview: FC<Props> = (props) => {
228236 file_path : f . file_path ,
229237 workspace_name : f . workspace_name
230238 } ) )
231- console . log ( 'xxx' , files_to_fix )
232239 props . on_fix_all_failed ( files_to_fix )
233240 } }
234241 >
0 commit comments