mirror of
https://github.com/openai/codex.git
synced 2026-11-26 07:26:11 +00:00
Enable MCP user verification in the TUI (#43712)
## Why The TUI automatically canceled MCP user verification requests, preventing users from completing verification and approving them. ## What changed - Show verification prompts for active and inactive threads, with actions to verify and approve or cancel. - Run approved verification through the local app-server's `userVerification/verify` RPC and return the proof to the original request. Cancel on failure and show a warning in the requesting thread; remote workspaces remain unsupported. - Deduplicate prompts, preserve foreground streaming when another thread requests verification, and surface queued prompts when returning from a side conversation. - Cancel verification when its thread is discarded and ignore stale results after cancellation. ## Testing Add RPC, routing, and snapshot tests covering successful verification, unsupported binaries and remote workspaces, cancellation and late proofs, prompt replay, side conversation switching, and foreground stream preservation. GitOrigin-RevId: 2ae12f47c443e17de25f4ec033f6078ac28b1e03
This commit is contained in:
1 parent
95327467c3
commit
c7f81afc19
23 files changed
+1060
-29
No files matched your search
@@ -162,7 +162,6 @@ pub(crate) enum AppCommand {
|
||||
content: Option<Value>,
|
||||
meta: Option<Value>,
|
||||
},
|
||||
#[allow(dead_code)] // Connected by the following verification UI integration.
|
||||
ResolveUserVerification {
|
||||
server_name: String,
|
||||
request_id: AppServerRequestId,
|
||||
@@ -194,7 +193,6 @@ pub(crate) enum AppCommand {
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize)]
|
||||
#[allow(dead_code)] // Connected by the following verification UI integration.
|
||||
pub(crate) enum UserVerificationResponse {
|
||||
Accept {
|
||||
// AppCommand serialization is used by session recording, not the RPC wire response.
|
||||
@@ -313,7 +311,6 @@ impl AppCommand {
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(dead_code)] // Connected by the following verification UI integration.
|
||||
pub(crate) fn resolve_user_verification(
|
||||
server_name: String,
|
||||
request_id: AppServerRequestId,
|
||||
|
||||
Reference in new issue
Block a user