From aba1ee7a39cf9c31702803dec7e8f7110022e202 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20Bene=C5=A1?= Date: Tue, 3 Nov 2026 14:49:33 +0000 Subject: [PATCH] Working notes: show cards come with app API 2 Co-Authored-By: Claude Opus 5.5 --- Working-notes.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Working-notes.md b/Working-notes.md index 04c2754..364d976 100644 --- a/Working-notes.md +++ b/Working-notes.md @@ -65,8 +65,8 @@ layout on a real phone at its narrowest; the emulator's default is not a phone. - **A server is told apart by its device-link protocol, not its version.** The app needs protocol 3 (LLeMbas 2.0; `api/Compat.kt`). The version string is no good for this: the server's `dev` says 1.7.x until its first beta. -- **The app cannot see a `show` card until the server publishes it.** `/api/v2` copies only the - tool-event fields in `serialise.py`'s `TOOL_FIELDS`, and `show` was not among them when 1.0 - was written; nor did a token have a route to the file (the web viewer's routes are the - cookie's). The app reads `GET /api/v2/chats/{chat}/show?node=&version=` or `?shown=` as plain - text, and says so when the route is missing. +- **`show` cards come with app API 2.** `/api/v2` copies only the tool-event fields in + `serialise.py`'s `TOOL_FIELDS`; `show` is one of them from app API 2, and the contract carries + `tool_show.json`. The file's text is `GET /api/v2/chats/{chat}/show?node=&version=` or + `?shown=` (plain text, at most 1 MB; 413 too large, 415 not text, 404 out of reach). The app + refuses a server whose app API is not 2.