Repository navigation
Conversation
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
commit: |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7afa852b9b
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| const suppressRetryStatus = event.type === 'retryDue' || (automaticRetry && plan.target === 'retryWaiting'); | ||
| if (!suppressRetryStatus && (plan.forceEmit === true || !publicEntriesEqual(before, after))) { | ||
| this.emit(entry); |
There was a problem hiding this comment.
Preserve notifications for OAuth waiters after retry failures
When an OAuth credential event arrives during an automatic reconnect, WorkspaceMcpService.handleMcpOAuthEvent sees pending and waits at lines 214–234 for the next non-pending status before applying the credential change. If that attempt fails transiently, this condition suppresses the retryWaiting/failed notification, so the waiter remains subscribed and the saved or invalidated credentials are not acted on until a later attempt eventually succeeds or reaches a terminal error; during a prolonged outage, each credential event can also leave another listener behind indefinitely. Suppress the user-facing duplicate downstream, or otherwise notify this coordination path when the attempt settles.
AGENTS.md reference: AGENTS.md:L131-L133
Useful? React with 👍 / 👎.
| const suppressRetryStatus = event.type === 'retryDue' || (automaticRetry && plan.target === 'retryWaiting'); | ||
| if (!suppressRetryStatus && (plan.forceEmit === true || !publicEntriesEqual(before, after))) { | ||
| this.emit(entry); |
There was a problem hiding this comment.
Add a CLI changeset for suppressed retry updates
This changes user-visible CLI behavior: automatic retries previously produced alternating pending/failed status events that the TUI renders, while the updated tests now require those repeats to disappear. Because this internal-package fix perceptibly changes CLI output, add a patch changeset for @moonshot-ai/kimi-code so it is included in the release changelog.
AGENTS.md reference: AGENTS.md:L90-L91
Useful? React with 👍 / 👎.
* fix(agent-core-v2): suppress automatic MCP retry status repeats (#4492) * ci: release packages (#4463) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: Haozhe <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Requirement or Bug
Backport of #4491 to
release/2026-10-28.Transient MCP failures trigger automatic reconnects, but each retry emits another failure status, causing repeated MCP failure rows in the TUI.
Bug Reproduction Steps
MCP server "<name>" failed: ...rows. Restoring the server allows the connection to recover.Root Cause
McpConnectionManager.transitionemitted every publicfailed → pending → failedtransition. The TUI's status deduplication key changes onpending, so each laterfailedpasses deduplication and appends another row. Durable failure episodes were already deduplicated; the problem is limited to observable status events. This is a targeted fix at the event-production boundary, not a change to retry policy.Code Changes
This backport applies the same two-file change as #4491:
retryDueand a connecting entry with an existing failure streak.pendingstate and its return toretryWaiting.Behavior Changes and Affected Users
pendingand anotherfailed, producing repeated TUI error rowsnextRetryAtAffected module:
agent-core-v2MCP connection management. Verification on the release branch: 46 focused tests passed andagent-core-v2typecheck passed. The original change also passed full typecheck/lint, the m0-dev full suite of 17,903 tests, native SEA smoke, and a real MCP connected → error → connected session.Checklist
gen-changesetsskill; no changeset was added at the author's request.