Repository navigation
fix(discord): hide internal Code Mode wait progress - #99893
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 4, 2026, 4:41 AM ET / 08:41 UTC. Summary PR surface: Source +72, Tests +258. Total +330 across 14 files. Reproducibility: yes. at source level: current main creates Code Mode Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Mantis proof suggestion Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Keep the instance-scoped lifecycle flag approach, merge only after exact-head checks and maintainer review, and prefer optional live Discord proof for visual confidence. Do we have a high-confidence way to reproduce the issue? Yes, at source level: current main creates Code Mode Is this the best way to solve the issue? Yes; the proposed fix is better than a Discord-only or name-based filter because it marks the concrete hidden tool instance and preserves telemetry plus unrelated catalog tools named AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9a0c9f83952d. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +72, Tests +258. Total +330 across 14 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
Hide invocation-specific Code Mode wait controls from channel progress while preserving telemetry and visible non-internal tools.
What Problem This Solves
Code Mode exposes an internal
waitcontrol so the model can resume suspended JavaScript runs. Channel progress treated that control like ordinary work, producing repeatedWaitcards between real tool operations.Why This Change Was Made
Add invocation-specific channel-progress metadata to agent tool lifecycle events. The Code Mode
waitcontrol opts out of transient channel progress, while telemetry and lifecycle accounting remain intact. Synthetic catalog calls propagate metadata from their concrete tool instance, so an unrelated catalog or plugin tool also namedwaitstays visible.User Impact
Discord and other channel progress UIs no longer show internal Code Mode
Waitrows. Real operations such asexecand catalog tools continue to appear normally.Evidence
pnpm check:changedpassed remotely for core and core-test lanes, including typechecks, all core lint shards, import-cycle checks, and runtime guards.