Repository navigation
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 16, 2026, 2:27 AM ET / 06:27 UTC. ClawSweeper reviewWhat this changesThe PR stops model-fallback transition and recovery notices from being posted in group and channel conversations while leaving direct and unknown conversation behavior unchanged. Merge readinessNo blocking patch findings. The payload-owner gate cleanly suppresses room notices while retaining fallback state and lifecycle events; exact-head CI remains before merge. Likely related people: Peter Steinberger (high confidence). Priority: P1 Review scores
Verification
How this fits togetherThe reply runner turns an agent run’s fallback result into outbound payloads and lifecycle records. This PR changes only the user-facing notice branch after fallback state has already been recorded. flowchart LR
A[Agent run] --> B[Fallback outcome]
B --> C[Fallback state accounting]
C --> D[Reply payload builder]
D --> E{Conversation type}
E --> F[Direct or unknown notice]
E --> G[Group or channel suppression]
C --> H[Lifecycle event]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +5, Tests +22, Docs 0. Total +27 across 3 files. View PR surface stats
Review metrics
Mantis proof suggestionA short Telegram Desktop capture would make the absence of fallback and recovery banners in a room directly inspectable alongside the delivered reply. A maintainer can ask Mantis to capture proof by posting this exact PR comment: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep state persistence and lifecycle emission universal, retain the single payload-owner presentation gate for normalized rooms, and merge only after exact-head checks confirm the approved audience policy. Do we have a high-confidence way to reproduce the issue? Yes—source-reproducible with high confidence: current main builds notices without consulting chat type, and the submitted real Telegram trace exercises fallback transition and recovery in a room. Is this the best way to solve the issue? Yes: presentation is gated at the generic payload owner after accounting, avoiding channel-specific divergence while preserving persisted state and lifecycle events. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against fa57fe5ae5c9. 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 (18 earlier review cycles; latest 8 shown)
|
|
Updated in b463aca.
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Hide model fallback and recovery notices in group and channel conversations while preserving direct-chat notices, persisted state, and lifecycle events. Co-authored-by: NehoraiHadad <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]>
Summary
Suppress model fallback transition and recovery notices in group and channel conversations. Keep direct-chat notices, persisted fallback state, and lifecycle events unchanged.
What Problem This Solves
Fallback notices bypass ordinary source-reply suppression and expose internal model-routing details in shared conversations. This change keeps those operational details out of group and channel replies while preserving the existing direct-chat behavior and internal state/lifecycle records.
Root cause
Fallback notices deliberately bypass ordinary source-reply suppression. The current payload owner,
src/auto-reply/reply/agent-runner-result-payloads.ts, built and delivered those notices without applying the source chat type. The original patch targeted the pre-refactor monolithic runner, so it no longer affected currentmain.Fix
normalizeChatTypecontract at the fallback-notice payload owner.groupandchannel; preserve direct and unknown/non-room behavior.fallback/fallback_clearedlifecycle emission outside the presentation gate.Production delta:
+35/-30(net+5); tests+94/-72(net+22); docs net0. The production growth is the canonical chat-type import and rare-path visibility gate.Evidence
Exact head:
be13689f6636128a0429d13162fc85865c5ce963Model Fallbacknotices remained visible.git diff --check origin/main...HEADpnpm exec oxfmt --checkon all three touched filesnode scripts/run-oxlint.mjson production and test TypeScriptpnpm tsgopnpm tsgo:test(check:test-typesimplementation)$distill: zero blockers; single owner and 0/1 payload path confirmed.$greybeard: initial low allocation finding fixed by moving chat normalization and notice formatting to the rare fallback-change path; zero remaining medium/high findings.Codex contract check: sibling Codex source treats fallback selection as internal model metadata/telemetry (
codex-rs/models-manager/src/manager.rs,codex-rs/models-manager/src/model_info.rs,codex-rs/core/src/compact_model_fallback.rs); it defines no channel-visible notice policy.Maintainer decision
Approved 2026-08-16 by maintainer Ayaan: fallback notices remain visible in direct and unknown/non-room contexts; normalized
groupandchannelconversations suppress them. This preserves the author's audience policy and matches the existing room-versus-direct presentation boundary.Telegram real-user proof
Exact head:
be13689f6636128a0429d13162fc85865c5ce963.openai/gpt-5.5fallback succeeded; TDLib observed the delivered SUT replyOPENCLAW_E2E_OK; visible fallback notices: 0.OPENCLAW_E2E_OK; visible fallback-cleared notices: 0.Redacted transcript excerpt (verbatim retained fields; user, chat, message, run, session, and trace identifiers removed):
Visual recorder limitation: current
mainno longer contains the installed userbot skill'sscripts/e2e/telegram-desktop-recorder.ts, the replacementopenclaw-telegram-user-crabbox-proofcommand is not installed, and artifact publishing is not configured on this host. No visual artifact is claimed; the proof above is the real-user TDLib observation plus redacted provider/Gateway facts.