Repository navigation
Conversation
The ACP parent relay resolved the effective preview stream mode itself, by stamping mode: "progress" into the config entry when the channel id was literally "discord". Telegram's default became progress too, so on a Telegram parent session the entry kept no mode, resolved to partial, and the commentary relay stayed off with nothing explaining why. Channels own that default, so ChannelStreamingAdapter now carries the channel's own rule and the relay asks for it instead of guessing. Discord and Telegram declare the helpers they already had; every other channel keeps the core partial default. The config-stamping helper and its hardcoded id are gone, which drops the file under max-lines and retires its grandfathered suppression.
|
Codex review: found issues before merge. Reviewed August 6, 2026, 4:49 AM ET / 08:49 UTC. ClawSweeper reviewWhat this changesThe PR makes ACP parent-commentary relay obtain the effective preview-stream mode from the active channel rather than applying a Discord-specific default in core. Merge readiness⛔ Blocked by patch quality or review findings - 7 items remain Keep open: current main still suppresses bare Telegram ACP parent commentary, but this head has a test-type failure, retains the prior hot-path loading defect, and lacks real behavior proof. Likely related people: Peter Steinberger (high), obviyus/Ayaan Zaidi (high), and Vito Cappello (medium). Priority: P1 Review scores
Verification
How this fits togetherACP sub-agents emit commentary that the parent-session relay filters using the parent channel’s stream policy before forwarding it as a session event. Channel plugins own preview-mode defaults, while the core relay consumes the resolved mode. flowchart LR
A[ACP sub-agent commentary] --> B[Parent-session relay]
C[Parent channel configuration] --> D[Channel preview-mode policy]
D --> B
B --> E[Commentary eligibility decision]
E --> F[Parent session event]
Decision needed
Why: The submitted fix introduces an exported plugin contract while the repository's channel and agent policies require a lightweight path instead of full plugin loading. Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource -10, Tests +69, Other -1. Total +58 across 8 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Mantis proof suggestionA Telegram transcript can directly demonstrate that default-mode ACP commentary reaches the parent session. A maintainer can ask Mantis to capture proof by posting this exact PR comment: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Use a lightweight channel-owned preview-mode artifact, preserve the generic partial fallback only when no channel declares a policy, correct Telegram’s exported base type, and prove the default Telegram ACP relay through a redacted live or qualifying mock-gateway run. Do we have a high-confidence way to reproduce the issue? Yes—source-reproducible on current main: start an ACP relay with a Telegram parent configuration of channels.telegram: {} and enabled commentary; the relay supplies partial instead of Telegram's progress default. Is this the best way to solve the issue? No. Channel-owned mode resolution is the right direction, but obtaining it by loading a full channel plugin on the ACP path and exposing an unresolved public API is not the narrowest maintainable repair. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against f99b6a48f774. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (7 earlier review cycles)
|
… rule The relay test stubs the plugin registry, so a missing declaration on the shipped channels would still pass. These assert the plugin bases themselves carry the rule and that an explicit mode still wins.
What Problem This Solves
An ACP sub-agent relays its commentary into the parent session. Whether that relay runs depends on the parent channel's effective preview stream mode — and the relay resolved that itself, with a hardcoded channel id:
src/agents/acp-spawn-parent-stream.ts:127-133before this change.Telegram's default preview mode is now
progressas well. On a Telegram parent session the entry carries no mode, so the resolver fell back topartial, andresolveChannelStreamingProgressCommentaryreturnedfalse: the sub-agent's commentary was never relayed, with nothing in the session explaining why. Every future progress-default channel would have inherited the same silent no-op.Why This Change Was Made
The default belongs to the channel — Discord and Telegram already own that decision in
resolveDiscordPreviewStreamMode/resolveTelegramPreviewStreamMode— so core should ask rather than guess.ChannelStreamingAdaptergainsresolvePreviewStreamMode, alongside theblockStreamingCoalesceDefaultsit already carries, and the relay reads it the same way block streaming reads that sibling field (src/auto-reply/reply/block-streaming.ts:209).Discord and Telegram declare the helper each already had, so there is one rule per channel rather than a core copy that drifts. Channels that accept the core
partialdefault declare nothing and are unaffected.This also removes a core→plugin-identity dependency: no core file names a channel to decide channel behavior. Stamping a synthetic mode into a config entry to smuggle a resolved value is gone with it — the relay now passes the resolved mode as the argument the resolver already accepts.
User Impact
Sub-agent commentary now reaches the parent session on Telegram, matching Discord. No config surface added, changed, or retired;
streaming.modeandstreaming.progress.commentarybehave as documented, and an explicitly configured mode still wins on every channel.Behavior is unchanged for Discord (same rule, now sourced from the channel) and for channels with no declared rule (still
partial).The relay resolves the mode through
getChannelPlugin, which falls back to the bundled plugin for built-in channels; if no plugin resolves, it degrades to today'spartialdefault rather than failing.Evidence
src/agents/acp-spawn-parent-stream.test.ts, 36 passing. New case asserts a parent relay on bothdiscordandtelegramwithchannels.<id>: {}— no configured mode — relays commentary; onmainthe Telegram half of that loop fails. Existing cases still pass unchanged: explicitstreaming.mode: "off"on Discord suppresses the relay, account-level overrides keep their explicit off, and generic channels keep the partial default.The test declares the same rule the shipped channels declare, resolved through the real
resolveChannelPreviewStreamMode, so an explicit mode still wins in the stub exactly as in production.Typecheck clean (
tsgo:core,tsgo:extensions); oxlint clean;check-import-cyclesreports 0 runtime cycles. Non-test source is net −22 lines, and dropping the stamping helper putsacp-spawn-parent-stream.tsunder the max-lines limit, so its grandfathered suppression and baseline entry are retired (check-max-lines-ratchet --prune).Related
Surfaced while landing #116272, which fixed the same silent-no-op class on the direct channel path: the commentary gate guessing a mode instead of taking the caller's resolved one.
🤖 Generated with Claude Code