myagent-ai 1.8.3 → 1.8.4

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.8.3",
3
+ "version": "1.8.4",
4
4
  "description": "本地桌面端执行型AI助手 - Open Interpreter 风格 | Local Desktop Execution-Oriented AI Assistant",
5
5
  "main": "main.py",
6
6
  "bin": {
@@ -1101,6 +1101,8 @@ function quickChatAgent(agentPath) {
1101
1101
  }
1102
1102
 
1103
1103
  async function selectAgent(agentPath) {
1104
+ // 移动端:立即关闭右侧栏,不要等异步操作完成
1105
+ if (isMobile()) closeMobileAgentPanel();
1104
1106
  // Always reload sessions even if clicking the same agent
1105
1107
  state.activeAgent = agentPath;
1106
1108
  StatePersistence.save('activeAgent', agentPath);
@@ -1146,7 +1148,6 @@ async function selectAgent(agentPath) {
1146
1148
  // 如果 loadSessions 已经 auto-selected 了 session,UI 已由 selectSession 设置好,不再覆盖
1147
1149
 
1148
1150
  document.getElementById('userInput').focus();
1149
- if (isMobile()) closeMobileAgentPanel();
1150
1151
  // Reload task plan if in exec mode
1151
1152
  if (state.chatMode === 'exec') loadTaskPlan();
1152
1153
  // Reset escalation and update exec mode UI
package/web/ui/index.html CHANGED
@@ -172,6 +172,11 @@ tr:hover{background:var(--surface2)}
172
172
  .sidebar-toggle{display:none!important}
173
173
  /* 移动端:即使桌面端折叠了侧边栏,打开时也要显示底部版本信息 */
174
174
  .sidebar.collapsed.mobile-open .sidebar-footer-text{display:block!important}
175
+ /* 移动端:打开侧边栏时,即使桌面端折叠了,也要显示图标文字 */
176
+ .sidebar.mobile-open .nav-item .icon-text{display:inline!important}
177
+ .sidebar.mobile-open .logo .logo-text{display:inline!important}
178
+ .sidebar.mobile-open.collapsed .nav-item{justify-content:flex-start;padding:8px 12px}
179
+ .sidebar.mobile-open.collapsed .logo{justify-content:flex-start;padding:16px 12px}
175
180
  .mobile-overlay{position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:45;display:none}
176
181
  .mobile-overlay.active{display:block}
177
182
  .header{padding:12px 16px}