diff --git a/static/messages.js b/static/messages.js index cd763ec00e2..db2a912ff89 100644 --- a/static/messages.js +++ b/static/messages.js @@ -1465,6 +1465,12 @@ async function send(){ renderMessages(); $('msg').value='';autoResize();hideCmdDropdown();return; } + if(_parsedCmd.name==='sessions' || _parsedCmd.name==='resume'){ + // Open the native WebUI session browser rather than sending as chat text (#6224) + if(typeof expandSidebar==='function') expandSidebar(); + if(typeof renderSessionList==='function') await renderSessionList(); + $('msg').value='';autoResize();hideCmdDropdown();return; + } const _agentCmd=typeof getAgentCommandMetadata==='function' ? await getAgentCommandMetadata(_parsedCmd.name) : null;