From 20a3898bf5160bc8e281b4fd563e1e91b99ef7b4 Mon Sep 17 00:00:00 2001 From: Magiczerowxy Date: Sat, 31 Oct 2026 10:10:30 +0800 Subject: [PATCH] page-chat 0.1.4: model brand icons, data-URI images only (a remote image is a link), gateway port from magpie's settings.json, by Magic_zero (#534) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit page-chat 0.1.4, by Magic_zero (Magiczerowxy). This adds: - model brand icons in the picker and the transcript, from @lobehub/icons (MIT, chat/icons/models/NOTICE); - inline images, base64 data URIs only. A remote ![](https://…) image is shown as a link the user can click and is never fetched, so a reply can't send data off the machine through an image URL; - the gateway port read from magpie's settings.json, read-only and 127.0.0.1 only, after an explicit gateway or MAGPIE_ADDR; - a switch for the system prompt; - stdio MCP servers run in a workspace folder of their own; - code fences kept whole while a reply streams. The suggestion buttons and the 「模型」 label are gone from the empty state. finish() still renders a reply that arrives in one chunk (the fix from #498). Run at the reviewed head 8ded766, on the Mac mini (Bun 1.4.2, sandbox HOME): - bun test: 3871 pass, 0 fail, 9 skip. bun scripts/check.mjs: exit 0. - A Playwright probe ran the real service against a fake gateway that sends the reply in one SSE chunk, and recorded every request leaving 127.0.0.1. The reply carried md, http, protocol-relative and blob images, HTML img, srcset, picture, inline style url(), a