thinkpool-pair 0.7.31 → 0.7.32
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/bridge.mjs +4 -1
- package/package.json +1 -1
package/bridge.mjs
CHANGED
|
@@ -904,7 +904,10 @@ channel
|
|
|
904
904
|
// said what — UNLESS silent (an @pool synthesis, which renders its own line).
|
|
905
905
|
const echoYou = () => {
|
|
906
906
|
if (payload.silent) return
|
|
907
|
-
|
|
907
|
+
// Display the clean body (web sends `body` when the agent `text` carries host
|
|
908
|
+
// file paths) + the uploaded attachments, so the partner shows the image — not
|
|
909
|
+
// a raw /var path. The agent already got the full `text` via sendTurn above.
|
|
910
|
+
const evt = { kind: 'you', text: payload.body != null ? String(payload.body) : text, cid: payload.cid, by: payload.by, ...(Array.isArray(payload.files) && payload.files.length ? { files: payload.files } : {}) }
|
|
908
911
|
pushLog(s, evt)
|
|
909
912
|
bcast('code-event', { term: payload.term, evt })
|
|
910
913
|
}
|