From d4f26f5156c083a9f7ae52fd77f1ccc4d65afcb3 Mon Sep 17 00:00:00 2001 From: nesquena-hermes Date: Fri, 5 Jun 2026 19:52:52 -0700 Subject: [PATCH] =?UTF-8?q?Release=20v0.51.288=20=E2=80=94=20Release=20JD?= =?UTF-8?q?=20(stage-r24=20=E2=80=94=20collapsible=20approval=20card=20#35?= =?UTF-8?q?15)=20(#3697)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(approval): make the approval card collapsible (#3515) Adds a collapse toggle to the approval card header so users can shrink it to a thin header strip and keep the tool-call rationale/transcript above readable. Full ARIA (aria-expanded/controls/label), chevron swap, and transcript reflow that preserves near-bottom scroll. Closes #3007. Co-authored-by: Rod Boev * docs(changelog): v0.51.288 — Release JD (stage-r24) * fix(approval): clear collapsed state for a distinct queued approval (#3515) Codex regression-gate finding: showApprovalCard's sameApproval check didn't include approval_id and didn't clear .collapsed in the !sameApproval branch, so a NEW/parallel approval arriving while the card was already collapsed could render collapsed with its command + action buttons hidden. Add approval_id to the signature; clear .collapsed for a distinct approval before syncing. +2 regression tests. --------- Co-authored-by: Rod Boev Co-authored-by: nesquena-hermes <[email protected]> --- CHANGELOG.md | 5 ++ static/index.html | 3 +- static/messages.js | 68 +++++++++++++++- static/style.css | 10 +++ tests/test_3007_approval_card_collapse.py | 98 +++++++++++++++++++++++ 5 files changed, 182 insertions(+), 2 deletions(-) create mode 100644 tests/test_3007_approval_card_collapse.py diff --git a/CHANGELOG.md b/CHANGELOG.md index db622dbc..d9b2bc96 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,11 @@ ## [Unreleased] +## [v0.51.288] — 2026-06-06 — Release JD (stage-r24 — collapsible approval card) + +### Added +- **The tool-call approval card can be collapsed to a thin header strip.** A chevron toggle in the approval-card header shrinks the card to just its "Approval required" heading so the tool-call rationale and transcript scrolled above it stay readable; clicking again re-expands it. Includes full ARIA (`aria-expanded`/`aria-controls`/`aria-label`), an icon swap, and transcript reflow that preserves a near-bottom scroll position. State resets to expanded for each new approval, so a fresh approval is never hidden. (#3515, @rodboev; closes #3007) + ## [v0.51.287] — 2026-06-06 — Release JC (stage-r22 — WeCom session classification + worker-profile picker hiding) ### Fixed diff --git a/static/index.html b/static/index.html index 1a44b24d..dc8c8725 100644 --- a/static/index.html +++ b/static/index.html @@ -456,11 +456,12 @@
Approval required +
-
+