@yeaft/webchat-agent 0.1.495 → 0.1.496
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 +1 -1
- package/unify/web-bridge.js +6 -0
package/package.json
CHANGED
package/unify/web-bridge.js
CHANGED
|
@@ -128,6 +128,12 @@ function sendThreadListUpdate() {
|
|
|
128
128
|
preview: t.preview || '',
|
|
129
129
|
createdAt: t.createdAt,
|
|
130
130
|
updatedAt: t.updatedAt,
|
|
131
|
+
// task-315: attached taskId (if any) so the UI can aggregate all
|
|
132
|
+
// messages belonging to a task across multiple threads. null when
|
|
133
|
+
// the thread has no attached task.
|
|
134
|
+
taskId: (typeof store.attachedTask === 'function')
|
|
135
|
+
? (store.attachedTask(t.id) || null)
|
|
136
|
+
: null,
|
|
131
137
|
// `running` — the thread whose id equals the store's currentId is
|
|
132
138
|
// considered the active/running track. The UI uses this for the
|
|
133
139
|
// green halo in the Active group.
|