myagent-ai 1.15.9 → 1.15.10

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.9",
3
+ "version": "1.15.10",
4
4
  "description": "本地桌面端执行型AI助手 - Open Interpreter 风格 | Local Desktop Execution-Oriented AI Assistant",
5
5
  "main": "main.py",
6
6
  "bin": {
@@ -489,6 +489,8 @@ input,textarea,select{font:inherit}
489
489
  .thought-block .thought-content.reasoning-content::-webkit-scrollbar{width:4px}
490
490
  .thought-block .thought-content.reasoning-content::-webkit-scrollbar-thumb{background:var(--bg4);border-radius:2px}
491
491
  .thought-block .thought-content.reasoning-content::-webkit-scrollbar-track{background:transparent}
492
+ /* [v1.15.9] 提级后的 reasoning 块 — 作为 messages-inner 直接子元素时撑满宽度 */
493
+ .messages-inner>.thought-block{align-self:stretch;width:100%!important;flex-shrink:0}
492
494
  .thought-content p{margin:4px 0;width:100%;max-width:100%;box-sizing:border-box}
493
495
  .thought-content p:first-child{margin-top:0}
494
496
  .thought-content p:last-child{margin-bottom:0}
@@ -2547,11 +2547,13 @@ function _renderMessagesInner() {
2547
2547
  }
2548
2548
  const execEventsHtml = (!isUser && !hasParts && msg.exec_events && msg.exec_events.length > 0)
2549
2549
  ? renderExecEvents(msg.exec_events, i) : '';
2550
+ // [v1.15.9] reasoning 块提级:渲染在 message-row 之外,作为 messages-inner 的直接子元素
2551
+ // 这样它不受 message-avatar(32px) 挤压,能真正撑满 100% 宽度
2552
+ if (reasoningHtml) html += reasoningHtml;
2550
2553
  html += `
2551
2554
  <div class="message-row ${msg.role}${msg.streaming ? ' streaming' : ''}">
2552
2555
  <div class="message-avatar">${avatar}</div>
2553
2556
  <div class="message-content" style="flex:1;min-width:0;width:100%">
2554
- ${reasoningHtml}
2555
2557
  ${thoughtHtml}
2556
2558
  ${taskPlanHtml}
2557
2559
  ${finishReasonHtml}