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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myagent-ai",
3
- "version": "1.15.30",
3
+ "version": "1.15.31",
4
4
  "description": "本地桌面端执行型AI助手 - Open Interpreter 风格 | Local Desktop Execution-Oriented AI Assistant",
5
5
  "main": "main.py",
6
6
  "bin": {
@@ -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