summaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/src/meshbay_hub/static/chat-app.js
diff options
context:
space:
mode:
authorChristophe Besson <cbesson@gmail.com>2026-10-15 12:57:51 +0200
committerChristophe Besson <cbesson@gmail.com>2026-10-15 12:57:51 +0200
commita86bced1640ac1a695b95ac68b95e3fc581e687d (patch)
treefe8ea8af945e139a2308eb19ad572e10a41b05e4 /packages/meshbay-hub/src/meshbay_hub/static/chat-app.js
parent988a0eecd522431980174910db28e45a63ff2710 (diff)
downloadmeshbay-a86bced1640ac1a695b95ac68b95e3fc581e687d.tar.gz
refactor(chat): no thread_id — chat has no threads
Nothing ever set it (the page and the CLI sent null) and nothing read it (the node's get_thread had no caller). It is no longer sent by the page or the CLI, in clear or in the sealed payload, nor relayed or served by the node; get_thread and its index are gone, and the protocol and design docs no longer name it. The node still accepts a chat_msg carrying one, from the desktop apps and CLIs already installed, and drops it. The column stays, empty, in chat.db: a node downgraded to an older version names it in every query. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/static/chat-app.js')
-rw-r--r--packages/meshbay-hub/src/meshbay_hub/static/chat-app.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/chat-app.js b/packages/meshbay-hub/src/meshbay_hub/static/chat-app.js
index 1d61c43..34e86eb 100644
--- a/packages/meshbay-hub/src/meshbay_hub/static/chat-app.js
+++ b/packages/meshbay-hub/src/meshbay_hub/static/chat-app.js
@@ -472,7 +472,7 @@ function ChatPanel({ transportRef, username, userId, entries, gekRef,
setSending(true);
setInput('');
try {
- await transport.sendChat(text, 0, null, username);
+ await transport.sendChat(text, 0, username);
setMessages(prev => [...prev, {
id: `own-${Date.now()}-${Math.random().toString(36).slice(2)}`,
own: true,
@@ -480,7 +480,6 @@ function ChatPanel({ transportRef, username, userId, entries, gekRef,
sender_name: username,
payload: text,
timestamp: Date.now() / 1000,
- thread_id: null,
}]);
jumpToBottom();
if (onActivity) onActivity();
@@ -515,11 +514,11 @@ function ChatPanel({ transportRef, username, userId, entries, gekRef,
const structured = JSON.stringify({
text: '', attachment: { filename: storedAs, size: file.size, type: ftype },
});
- await transport.sendChat(structured, 0, null, username);
+ await transport.sendChat(structured, 0, username);
setMessages(prev => [...prev, {
id: `own-${Date.now()}-${Math.random().toString(36).slice(2)}`,
own: true, sender_id: userId || username, sender_name: username,
- payload: structured, timestamp: Date.now() / 1000, thread_id: null,
+ payload: structured, timestamp: Date.now() / 1000,
}]);
jumpToBottom();
} catch (err) {