-
Notifications
You must be signed in to change notification settings - Fork 2
feat(mcp): elicitation during tool execution — phase 2 #2522
Copy link
Copy link
Closed
Labels
P3Research — medium-high complexityResearch — medium-high complexityenhancementNew feature or requestNew feature or request
Description
Context
MCP Elicitation support was added in #2521. A known architectural limitation: elicitation requests arriving while the agent loop is blocked waiting for an MCP tool call result always time out, because process_pending_elicitations is only called at turn boundaries.
Required work
Implement elicitation handling during tool execution:
- Detect elicitation events mid-tool-await (select on both tool result and elicitation_rx)
- Pause tool execution or buffer the elicitation, prompt the user, resume
- Ensure no deadlock between MCP server handler and agent loop
Phase 2 scope
- TUI interactive dialog widget for elicitation
- Telegram inline keyboard / reply-based elicitation flow
- Elicitation during tool call execution
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P3Research — medium-high complexityResearch — medium-high complexityenhancementNew feature or requestNew feature or request