File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed
Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -2245,10 +2245,26 @@ <h3>Cost Breakdown</h3>
22452245 } ) ;
22462246 updateProjectDropdown ( ) ;
22472247 renderSidebar ( ) ;
2248- // Update header if selected session is in the list (may have changed active status)
2248+ // Re-fetch and re-render detail for selected session
22492249 if ( selectedId ) {
22502250 const s = allSessions . find ( s => s . id === selectedId ) ;
2251- if ( s ) renderHeader ( ) ;
2251+ if ( s ) {
2252+ renderHeader ( ) ;
2253+ fetch ( '/api/sessions/' + encodeURIComponent ( selectedId ) )
2254+ . then ( r => r . ok ? r . json ( ) : null )
2255+ . then ( detail => {
2256+ if ( detail && selectedId === detail . id ) {
2257+ selectedDetail = detail ;
2258+ if ( activeTab === 'overview' ) renderOverview ( ) ;
2259+ else if ( activeTab === 'turns' ) renderTurns ( ) ;
2260+ else if ( activeTab === 'tools' ) renderTools ( ) ;
2261+ else if ( activeTab === 'subagents' ) renderSubagents ( ) ;
2262+ else if ( activeTab === 'skills' ) renderSkills ( ) ;
2263+ else if ( activeTab === 'flow' ) renderFlow ( ) ;
2264+ }
2265+ } )
2266+ . catch ( ( ) => { } ) ;
2267+ }
22522268 }
22532269 } catch ( e ) {
22542270 console . error ( 'Failed to parse SSE data' , e ) ;
You can’t perform that action at this time.
0 commit comments