Skip to content

TUI: replay in-progress MCP calls as started#23236

Merged
etraut-openai merged 1 commit into
mainfrom
etraut/tui-mcp-replay-status
May 18, 2026
Merged

TUI: replay in-progress MCP calls as started#23236
etraut-openai merged 1 commit into
mainfrom
etraut/tui-mcp-replay-status

Conversation

@etraut-openai
Copy link
Copy Markdown
Collaborator

@etraut-openai etraut-openai commented May 18, 2026

Fixes #22300.

Summary

MCP tool calls can appear in thread history while still in progress. During replay, handle_thread_item routed every ThreadItem::McpToolCall to the completion handler, so an in-progress item with no result or error was rendered as MCP tool call completed without a result.

This updates replay handling to mirror command executions: InProgress MCP calls go through on_mcp_tool_call_started, while completed and failed calls continue through the completion path.

Validation

  • cargo test -p codex-tui replayed_in_progress_mcp_tool_call_stays_active

@etraut-openai etraut-openai force-pushed the etraut/tui-mcp-replay-status branch from f9996f8 to d35cf09 Compare May 18, 2026 03:35
@etraut-openai etraut-openai merged commit ae03d07 into main May 18, 2026
31 checks passed
@etraut-openai etraut-openai deleted the etraut/tui-mcp-replay-status branch May 18, 2026 18:34
@github-actions github-actions Bot locked and limited conversation to collaborators May 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

2 participants