From f02e01f629fba68ed7b9e5fb79bcf24c270572bc Mon Sep 17 00:00:00 2001 From: Jeffery Date: Mon, 3 Aug 2026 08:07:45 +0000 Subject: [PATCH] =?UTF-8?q?fix(=E5=8A=87=E5=A0=B4=E6=B8=B2=E6=9F=93):=20ro?= =?UTF-8?q?om=20read=20=E7=9A=84=E6=8B=AC=E8=99=9F=E5=90=83=E6=8E=89?= =?UTF-8?q?=E5=8B=95=E4=BD=9C=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit roomScript() 用 roomTag() 組括號,room read 卻自己拼「(情緒)」——同一份逐字稿 用兩支路徑渲染,動作格在 room read 這邊會整格消失。改成也走 roomTag()。 Co-Authored-By: Claude Opus 5 (1M context) --- scripts/persona.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/persona.mjs b/scripts/persona.mjs index 77721ff..0c7b547 100644 --- a/scripts/persona.mjs +++ b/scripts/persona.mjs @@ -1861,8 +1861,8 @@ commands.room = ({ flags, positional }) => { // (`roomPost` 已在寫入端處理,這是給舊逐字稿的第二道)。 for (const row of rows) { const arrow = row.to && row.to !== pl.ROOM_ALL && row.to !== row.speaker ? ` → ${row.to}` : ""; - const emotion = pl.injectSafeLine(row.emotion); - lines.push(`[${row.ts}] ${row.speaker}${emotion ? `(${emotion})` : ""}${arrow}:${pl.injectSafeLine(row.text)}`); + // 括號用 `roomTag()` 組,跟 `roomScript()` 同一支——自己拼 `(情緒)` 會把動作格吐掉。 + lines.push(`[${row.ts}] ${row.speaker}${pl.roomTag(row)}${arrow}:${pl.injectSafeLine(row.text)}`); } emit({ room, meta, messages: rows }, flags.json, lines); return;