From 6c3aa46ab0271a2e0a8f5894addabaed9b5ddcf2 Mon Sep 17 00:00:00 2001 From: Bendik Aagaard Lynghaug Date: Fri, 11 Sep 2026 11:47:56 +0200 Subject: [PATCH] Fix voices-echoed card: emit bare object, not wrapped array MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The portal's apply_jq collects the jq output stream into an array itself. The wrapping [ … ] made the filter emit one array-valued output, which nested to [[{…}]] and failed the array-of-objects card renderer, dumping raw JSON. Emit a bare object like the releases jq does, so it collects into [{…}] and renders as a card. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01ByshXuDEzH8hXh5qp4VgGk --- questions/index.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/questions/index.yaml b/questions/index.yaml index 305c768..c8cdcbc 100644 --- a/questions/index.yaml +++ b/questions/index.yaml @@ -52,10 +52,12 @@ alternatives: public: true # /pulse (redoal ADR-0023) returns { voices_echoed: N }; shape # it into one card — the number as the heading, the phrase - # beneath. The card renders unlinked when the relay is quiet. + # beneath. Emit a bare object, not a wrapped [ … ]: the portal + # collects the jq output stream into an array itself, so a + # wrapping [ ] nests it ([[{…}]]) and drops to a raw JSON dump. jq: > - [{ "name": (.voices_echoed | tostring), - "description": "voices echoed so far" }] + { "name": (.voices_echoed | tostring), + "description": "voices echoed so far" } empty: The first voice hasn't echoed yet. - name: A drawing is an address description: > -- 2.54.0