Enable user verification for the bundled TUI on supported devices (#43715)

## Why

The app server's device-support probe always returned `false`, preventing the bundled TUI from advertising user verification even on supported hardware.

## What changed

Use `native::device_supported` to enable the existing initialization path for in-process `codex-tui` clients that opt into `experimentalApi`. Eligible clients advertise the `userVerification` MCP extension capability and can receive verification requests.

## Testing

Add tests covering initialization eligibility, rejection of responses from non-owning connections, ownership release before disconnected RPC handlers finish draining, and cancellation of pending requests when authentication changes.

GitOrigin-RevId: cdacc026e8f830b3340f2e6f273851c4a3031a7e
This commit is contained in:
riley-oai authored and copyberry committed 2026-09-08 05:57:24 +00:00
1 parent c7f81afc19
commit d6489472f3
4 files changed
+288 -3

No files matched your search

@@ -12,7 +12,6 @@ pub(super) struct Identity {
impl OutgoingMessageSender {
/// Trusted host activation enables a UI integration after its signing path is available.
#[allow(dead_code)] // Called by the subsequent host activation change.
pub(crate) async fn enable_user_verification_connection(&self, connection_id: ConnectionId) {
self.verification_connections
.lock()