@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.
- package/local-runtime/version.json +1 -1
- package/package.json +1 -1
- package/yeaft/engine.js +6 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"1.0.
|
|
1
|
+
{"version":"1.0.361"}
|
package/package.json
CHANGED
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
|
-
|
|
2162
|
-
|
|
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.
|