@yeaft/webchat-agent 1.0.523 → 1.0.525

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.
Binary file
@@ -17,6 +17,6 @@
17
17
  </head>
18
18
  <body>
19
19
  <div id="app"></div>
20
- <script type="module" src="app.bundle.js?v=1092b03d"></script>
20
+ <script type="module" src="app.bundle.js?v=890160ee"></script>
21
21
  </body>
22
22
  </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeaft/webchat-agent",
3
- "version": "1.0.523",
3
+ "version": "1.0.525",
4
4
  "description": "Remote worker agent for Yeaft Web Code Agent — connects the native Yeaft engine, CLI providers, and workbench tools",
5
5
  "main": "index.js",
6
6
  "type": "module",
package/yeaft/engine.js CHANGED
@@ -2924,6 +2924,10 @@ export class Engine {
2924
2924
  recentTurnCap: Math.max(10, requestConfig.yeaft?.recentTurnsLimit ?? 10),
2925
2925
  relatedTurnCap: Math.min(5, requestConfig.yeaft?.relatedTurnsLimit ?? 5),
2926
2926
  messageTokenBudget: historyBudget,
2927
+ // Completed turns contribute only visible user/assistant text. The
2928
+ // active turn starts at turnStartIdx and keeps its complete tool
2929
+ // protocol for every in-loop provider request.
2930
+ keepToolTurns: 0,
2927
2931
  currentTurnStartIndex: turnStartIdx,
2928
2932
  language: requestConfig.language,
2929
2933
  }) : null;
@@ -2931,6 +2935,7 @@ export class Engine {
2931
2935
  const requestHistory = buckets?.messages || (() => {
2932
2936
  const historical = trimSnapshotForBudget(conversationMessages.slice(0, turnStartIdx), {
2933
2937
  messageTokenBudget: historyBudget,
2938
+ keepToolTurns: 0,
2934
2939
  language: requestConfig.language,
2935
2940
  });
2936
2941
  historyMessageCount = historical.length;