Repository navigation
feat: render model-authored collapsible details - #114556
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 27, 2026, 8:55 AM ET / 12:55 UTC. ClawSweeper reviewWhat this changesThis PR lets models author Merge readiness⛔ Blocked until real behavior proof is added - 5 items remain Keep this protected maintainer feature PR open. The supplied context shows a coherent implementation and no concrete line-level defect, but its prior review’s real-runtime proof gap remains unresolved: tests and CI do not directly demonstrate streamed Control UI disclosures, Telegram rich rendering, and fallback-channel flattening after the change. Priority: P3 Review scores
Verification
How this fits togetherModel responses flow through the Control UI Markdown renderer for streamed web display and through the outbound delivery layer for channel-specific message delivery. This change introduces disclosure handling in both paths so native-capable renderers can preserve collapsible content while other transports receive readable text. flowchart LR
A[Model-authored Markdown] --> B[Control UI Markdown renderer]
A --> C[Outbound delivery layer]
B --> D[Streamed web disclosures]
C --> E{Channel preserves disclosures?}
E -->|Telegram rich mode| F[Native disclosure message]
E -->|Other channels| G[Flattened Markdown message]
F --> H[Recipient-visible response]
G --> H
Decision needed
Why: The author describes an accepted proof gap, but the current PR does not provide a Before merge
Agent review detailsSecurityNone. PR surfaceSource +525, Tests +534. Total +1059 across 15 files. View PR surface stats
Review metricsNone. Mantis proof suggestionA Telegram Desktop capture can directly prove rich-message disclosure rendering and the readable fallback behavior without asking Mantis to modify the PR. A maintainer can ask Mantis to capture proof by posting this exact PR comment: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land only after maintainers either obtain redacted current-head runtime proof for the Control UI and channel paths or explicitly record an override of that proof gate for this feature, while preserving readable fallback output for all non-native channels. Do we have a high-confidence way to reproduce the issue? Not applicable as a feature request. The supplied tests describe expected behavior, but there is no directly inspectable current-head runtime artifact for the three claimed user-visible surfaces. Is this the best way to solve the issue? Unclear. The design matches the stated native-preserve versus portable-flatten contract, but independent current-main and full adapter-sibling inspection could not be completed from the read-only environment. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 65d58c4945f2. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
ClawSweeper rank-up moves reviewed for head
The source-blind behavior contract was: native Control UI disclosures during streaming, preserved Telegram rich disclosures, and |
|
ClawSweeper rank-up moves reviewed for current head
The shared outbound capability and its documented proof gap are accepted for landing. |
|
Merged via squash.
|
* feat: render model-authored collapsible details in web UI and flatten for plain channels * fix: guard markdown-it line-index access in details block rule * fix: satisfy no-new-array lint in disclosure scanners * fix: unexport internal disclosure scanner types * fix: respect markdown code boundaries in details scanners * fix: preserve escaped disclosure tags
What Problem This Solves
Models cannot currently tuck optional depth behind a disclosure. Raw
<details>tags leak as literal text everywhere except Telegram rich mode, making longer answers noisier and exposing markup that users should never have to see.Why This Change Was Made
This user-requested feature lets models author collapsible sections. The Control UI and Telegram rich mode preserve native disclosures, while every other channel safely flattens them into readable Markdown instead of exposing raw tags.
AI-assisted: yes (Claude and Codex).
User Impact
The Control UI now renders model-authored
<details>and<summary>blocks natively, including while responses stream. Telegram rich mode is unchanged. All other channels show**Summary**followed by the body instead of literal disclosure tags.This is a release-note-worthy feature.
Evidence
gpt-5.6-solat xhigh after 9 rounds, including the block-rule redesign. A fresh post-rebase rerun was also clean with no accepted/actionable findings.cb347732cd4feat: render model-authored collapsible details in web UI and flatten for plain channels5bd53474eccfix: guard markdown-it line-index access in details block rule9dc0e1ed0f4fix: satisfy no-new-array lint in disclosure scanners