Repository navigation
fix(channels): preserve actionable presentation fallbacks - #116990
Conversation
|
Codex review: found issues before merge. Reviewed July 31, 2026, 3:22 PM ET / 19:22 UTC. ClawSweeper reviewWhat this changesThis PR centralizes portable-control fallback labels so unsupported or overflowed command buttons and select options show their public slash command or link while opaque callbacks, approvals, questions, and disabled controls remain label-only. Merge readinessKeep this PR open for maintainer review. The shared-owner implementation is a coherent way to make unsupported controls actionable while retaining opaque callback privacy, but it changes the documented select fallback contract from label-only to displaying typed slash commands; that product and public-docs decision needs explicit confirmation before merge. Priority: P2 Review scores
Verification
How this fits togetherAgent and plugin code emits a portable message presentation that channel adapters render natively when possible or downgrade to text when a transport lacks controls or hits limits. The shared fallback renderer supplies the text sent onward by Matrix, Mattermost, Microsoft Teams, and other channel adapters. flowchart LR
A[Agent or plugin presentation] --> B[Shared control fallback renderer]
B --> C[Channel capability and limit adapter]
C --> D[Public command or link text]
C --> E[Opaque action stays label-only]
D --> F[Channel fallback message]
E --> F
Decision needed
Why: The technical implementation is centralized and privacy-aware, but current user-facing Matrix documentation explicitly defines the opposite select fallback behavior; only maintainers can choose the intended portable presentation contract. Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource 0, Tests +191. Total +191 across 7 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Confirm that typed select commands are intentionally public in plain-text fallbacks, then update the Matrix fallback documentation and retain focused coverage that commands are exposed while callbacks, approvals, question identifiers, and disabled controls remain private. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: current main renders command buttons with their command but renders select options as labels only in Is this the best way to solve the issue? No, not yet: placing the formatter in the shared payload owner is the best technical layer, but the PR must first resolve the documented label-only select contract and align the public docs with the chosen behavior. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 629d3c2144ae. 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
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
…16990) * fix(channels): preserve actionable presentation fallbacks * test(interactive): isolate presentation fallback regression coverage --------- Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
Fixes an issue where users following a channel-delivered command menu would see only an action label, with no slash command they could enter, when the control exceeded a transport limit or the channel did not support select menus. This affected portable presentation fallbacks across Mattermost, Microsoft Teams, Matrix, and other channel adapters.
Why This Change Was Made
The shared presentation payload owner now formats visible action fallbacks once and both fallback paths reuse that canonical decision. Explicit command actions retain their public slash commands and public links retain their targets, while opaque callback values, approval identifiers, question identifiers, and disabled actions remain private.
User Impact
This is a bounded internal display-owner refactor with zero net production lines; no public SDK, configuration, security, protocol, persistence, or dependency contracts change.
Evidence
36b80ada3ceae2de21b3d8710b883d778e4c4578; immutable reviewed candidate:aa4d32229c269cf3c2690161d8b34fcb2832537b.gpt-5.6-sol, high reasoning, priority P3) returned zero P0/P1/P2/P3 findings, 0.94 confidence, and genuine TruffleHog clean.../codex/codex-rs/app-server-protocol/src/protocol/v2/item.rs:1435,../codex/codex-rs/app-server-protocol/src/protocol/v2/item.rs:1607, and../codex/codex-rs/app-server-protocol/src/protocol/common.rs:1512.src/interactive/payload.test.tsis byte-for-byte identical to frozen main; the unchanged command/privacy assertion now lives in focusedsrc/interactive/payload.fallback.test.ts, resolving the priorcheck-lintmaximum-lines failure without suppression or lost coverage.git diff --check, immutable baseline ancestry, clean final worktree, and unchanged public Plugin SDK barrel all verified.No live provider credentials, real channel sends, public contract changes, or persistent-state modifications are included.