diff --git a/static/sessions.js b/static/sessions.js index aa478e9f9..791f225a3 100644 --- a/static/sessions.js +++ b/static/sessions.js @@ -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;