fix(#3874): auto-refresh sidebar session list after new session creation
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
8dc47b83c0
commit
8fc3179a8a
1 file changed
+2
-1
+2
-1
@@ -1242,7 +1242,8 @@ async function newSession(flash, options={}){
|
||||
const _dirP=loadDir('.');
|
||||
if(_dirP&&typeof _dirP.catch==='function') _dirP.catch(()=>{});
|
||||
}
|
||||
// don't call renderSessionList here - callers do it when needed
|
||||
// Refresh sidebar to include the newly created session (#3874).
|
||||
if(typeof refreshSessionList==='function'){Promise.resolve(refreshSessionList('new-session')).catch(()=>{})}
|
||||
})();
|
||||
try{
|
||||
return await _newSessionInFlight;
|
||||
|
||||
Reference in new issue
Block a user