@yeaft/webchat-agent 1.0.360 → 1.0.361

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.
@@ -1 +1 @@
1
- {"version":"1.0.360"}
1
+ {"version":"1.0.361"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeaft/webchat-agent",
3
- "version": "1.0.360",
3
+ "version": "1.0.361",
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
@@ -2158,8 +2158,12 @@ export class Engine {
2158
2158
  const executionOrigin = inboundEnvelope?.msg?.meta?.injectedBy === 'route_forward'
2159
2159
  ? 'route_forward'
2160
2160
  : null;
2161
- const queryTurnId = randomUUID();
2162
- this.#currentQueryTurnId = vpTurnId || queryTurnId;
2161
+ // The bridge-provided VP turn id is also persisted on assistant messages and
2162
+ // is therefore the identity the UI sends back when opening turn debug. Keep
2163
+ // the engine event/trace id identical; a second random id makes the trace
2164
+ // impossible to retrieve from a rendered assistant turn.
2165
+ const queryTurnId = vpTurnId || randomUUID();
2166
+ this.#currentQueryTurnId = queryTurnId;
2163
2167
  // Bind the live query scope before tools can register async work. The
2164
2168
  // constructor's Session id is only guaranteed for bridge-owned engines;
2165
2169
  // standalone/CLI callers pass it per query.