aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-cli/src/meshbay_cli
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-cli/src/meshbay_cli
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-cli/src/meshbay_cli')
-rw-r--r--packages/meshbay-cli/src/meshbay_cli/client/chat.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/meshbay-cli/src/meshbay_cli/client/chat.py b/packages/meshbay-cli/src/meshbay_cli/client/chat.py
index 587303a..d525abf 100644
--- a/packages/meshbay-cli/src/meshbay_cli/client/chat.py
+++ b/packages/meshbay-cli/src/meshbay_cli/client/chat.py
@@ -186,7 +186,7 @@ async def post(session: GroupSession, keys: ChatKeys, text: str, sender_name: st
ident = session.identity
device_b64 = ident.pk_ed
sealed = seal(key, session.group_id, epoch, device_b64, unb64(device_b64), ident.sk_ed,
- {"text": text, "thread_id": None, "sender_name": sender_name,
+ {"text": text, "sender_name": sender_name,
"sent_at": int(time.time())})
if len(sealed["ct"]) > MAX_CIPHERTEXT:
raise CliError(USAGE, "This message is too large for chat; send it as a file "
@@ -195,5 +195,5 @@ async def post(session: GroupSession, keys: ChatKeys, text: str, sender_name: st
"format": FORMAT_SEALED, "epoch": epoch,
"ct": sealed["ct"], "nonce": sealed["nonce"],
"device": unb64(device_b64), "sig": sealed["sig"],
- "thread_id": None, "sender_name": None}, "ack")
+ "sender_name": None}, "ack")