myagent-ai 1.15.30 → 1.15.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/ui/chat/chat_main.js +7 -0
package/package.json
CHANGED
package/web/ui/chat/chat_main.js
CHANGED
|
@@ -1937,6 +1937,13 @@ async function selectSession(id) {
|
|
|
1937
1937
|
loadDraft();
|
|
1938
1938
|
// 保存选中状态到 localStorage(用于页面刷新恢复)
|
|
1939
1939
|
StatePersistence.saveUIState();
|
|
1940
|
+
// 切换会话时刷新任务计划(exec模式加载,chat模式隐藏残留面板)
|
|
1941
|
+
if (state.chatMode === 'exec') {
|
|
1942
|
+
loadTaskPlan();
|
|
1943
|
+
} else {
|
|
1944
|
+
var _tp = document.getElementById('taskPanel');
|
|
1945
|
+
if (_tp) _tp.classList.add('hidden');
|
|
1946
|
+
}
|
|
1940
1947
|
if (isMobile()) closeMobileSidebar();
|
|
1941
1948
|
}
|
|
1942
1949
|
|