Repository navigation
Make Voice Mode execute and recover within its conversation - #4466
reachjalil wants to merge 14 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 4 Skipped Deployments
|
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (9a45a83349f56fcbc9ca2a692df6f6d736311975). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
9a45a83 to
5ae8550
Compare
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (5ae85508fa486393c3e00b6eaaddd729e94538a1). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
5ae8550 to
8c5254c
Compare
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (8c5254c26d85ae2b2652fe3aebc131bf071020b4). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
8c5254c to
2deb187
Compare
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (2deb18732f221cf40b78a3d76367dd50acea0707). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
2deb187 to
a724481
Compare
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (a724481ecb468f6d538c7c5134643977b58a8594). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
Test evidence — voice-sends-and-steers-real-conversation-work-interrupts-speech-cancels-reconnec — ✅ passed✅ 0/4 screenshots passed · 12 assertions · 12 expectations passed · 0 failed · 0 pending
[world] mock(mcp) · den(daytona) · desktop(as admin) · workspace(/tmp/openwork-voice-conversation-1788571733830) · [seed:raw] evalIn() ×2 · session("Voice conversation A") · session("Voice conversation B") · [seed:raw] evalIn() ×3 ℹ️ ASSERTION — 1. A spoken request uses Realtime 2.1 for audio and the selected task model for real execution; the other conversation stays empty{"audioSessions":[{"model":"gpt-realtime-2.1"}],"userTurns":["Create a note in this workspace."],"file":{"status":200,"body":"{"path":"voice-note.txt","content":"created by spoken request","bytes":25,"updatedAt":1788571745069.937}"},"otherConversation":[],"model":[{"user":"Create a note in this workspace.","model":"voice-task-model","tools":["bash","browser_click","browser_eval","browser_fill","browser_list","browser_navigate","browser_screenshot","browser_snapshot","browser_version","edit","glob","grep","list_mcp_resource_templates","list_mcp_resources","openwork_context","openwork_docs_read","openwork_docs_search","openwork_execute","openwork_pdf_pages","openwork_query","openwork-cloud_connection_action","openwork-cloud_create_skill","openwork-cloud_execute_capability","openwork-cloud_execute_capability_script","openwork-cloud_plugin_flow","openwork-cloud_render_dynamic_artifact","openwork-cloud_render_workflow_artifact","openwork-cloud_search_capabilities","openwork-cloud_update_skill","read","read_mcp_resource","skill","spreadsheet_inspect","spreadsheet_read","spreadsheet_write","task","todowrite","voice_cloud_execute_capability","voice_cloud_execute_capability_script","voice_cloud_search_capabilities","webfetch","write"]},{"user":"Create a note in this workspace.","model":"voice-task-model","tools":["bash","browser_click","browser_eval","browser_fill","browser_list","browser_navigate","browser_screenshot","browser_snapshot","browser_version","edit","glob","grep","list_mcp_resource_templates","list_mcp_resources","openwork_context","openwork_docs_read","openwork_docs_search","openwork_execute","openwork_pdf_pages","openwork_query","openwork-cloud_connection_action","openwork-cloud_create_skill","openwork-cloud_execute_capability","openwork-cloud_execute_capability_script","openwork-cloud_plugin_flow","openwork-cloud_render_dynamic_artifact","openwork-cloud_render_workflow_artifact","openwork-cloud_search_capabilities","openwork-cloud_update_skill","read","read_mcp_resource","skill","spreadsheet_inspect","spreadsheet_read","spreadsheet_write","task","todowrite","voice_cloud_execute_capability","voice_cloud_execute_capability_script","voice_cloud_search_capabilities","webfetch","write"]}]}
ℹ️ ASSERTION — 2. Interruption clears playback and the follow-up changes the same workspace without duplicating its user turn{"userTurns":["Create a note in this workspace.","Change the note to the updated text."],"file":{"status":200,"body":"{"path":"voice-note.txt","content":"updated by follow-up","bytes":20,"updatedAt":1788571747870.9685}"},"audioCleared":true,"completedResponsePlayback":["[{"type":"message","role":"user","content":[{"type":"input_text","text":"Your task has a response. Read it in the conversation."}]}]","[{"type":"message","role":"user","content":[{"type":"input_text","text":"The note now contains the updated text."}]}]"],"otherConversation":[]}
ℹ️ ASSERTION — 3. Uncertain and muted audio stay unsubmitted; unmute reacquires captureReviewed textarea value was Uncertain words; mute left zero live tracks; muted approval produced no turn; user count stayed 2; unmute restored one active track.
ℹ️ ASSERTION — 4. A follow-up enters the running conversation; cancellation stops the real tool without undoing completed work{"messages":[{"role":"user","text":"Create a note in this workspace.","routing":[],"tools":[]},{"role":"assistant","text":"","routing":[],"tools":[{"tool":"bash","status":"completed","input":{"command":"printf '%s' 'created by spoken request' > voice-note.txt","description":"Write the requested note"},"output":"(no output)"}]},{"role":"assistant","text":"The note was created in this workspace.","routing":[],"tools":[]},{"role":"user","text":"Change the note to the updated text.","routing":[],"tools":[]},{"role":"assistant","text":"","routing":[],"tools":[{"tool":"bash","status":"completed","input":{"command":"printf '%s' 'updated by follow-up' > voice-note.txt","description":"Write the requested note"},"output":"(no output)"}]},{"role":"assistant","text":"The note now contains the updated text.","routing":[],"tools":[]},{"role":"user","text":"Start a slow operation.","routing":[],"tools":[]},{"role":"assistant","text":"","routing":[],"tools":[{"tool":"bash","status":"completed","input":{"command":"sleep 30; printf 'finished' > voice-slow.txt","description":"Create the slow note"},"output":"(no output)\n\n<shell_metadata>\nUser aborted the command\n</shell_metadata>"}]},{"role":"user","text":"When this finishes, change the note again.","routing":[],"tools":[]}],"cancelledFile":{"status":404,"body":"{"code":"file_not_found","message":"File not found"}"},"completedFile":{"status":200,"body":"{"path":"voice-note.txt","content":"updated by follow-up","bytes":20,"updatedAt":1788571747870.9685}"}}
ℹ️ ASSERTION — 5. Reconnect uses the chosen Realtime 2.1 Mini audio model without replay or task-model changes{"audioSessions":[{"model":"gpt-realtime-2.1"},{"model":"gpt-realtime-2.1-mini"}],"userTurns":["Create a note in this workspace.","Change the note to the updated text.","Start a slow operation.","When this finishes, change the note again."],"otherConversation":[],"activeTracks":1}
ℹ️ ASSERTION — 6. Switching conversations releases audio and isolates pending inputZero live tracks after navigation; the old peer's transcript created no turn in B; A retained 4 turns; B's voice textarea was empty.
ℹ️ ASSERTION — 7. Denied permission and capture granted after End leave no microphone liveDenied access showed recovery; after a delayed permission grant and End, both active and live track counts were zero.
ℹ️ ASSERTION — 8. Typed fallback remains in the new conversation after voice ends{"originalConversationUsers":["Create a note in this workspace.","Change the note to the updated text.","Start a slow operation.","When this finishes, change the note again."],"newConversationUsers":["Create a note in this workspace."],"liveTracks":0}
ℹ️ ASSERTION — 9. Voice preserves discovered connection and tool namespaces through normal task execution with Mini audio{"audioSessions":[{"model":"gpt-realtime-2.1"},{"model":"gpt-realtime-2.1-mini"},{"model":"gpt-realtime-2.1-mini"}],"calls":[{"name":"search_capabilities","args":{"query":"project notes"},"tokenId":null,"at":"2026-09-05T01:29:31.112Z"},{"name":"execute_capability_script","args":{"code":"return await tools.project_notes_2"list-notes";"},"tokenId":null,"at":"2026-09-05T01:29:31.182Z"}],"playback":["[{"type":"message","role":"user","content":[{"type":"input_text","text":"Your task has a response. Read it in the conversation."}]}]","[{"type":"message","role":"user","content":[{"type":"input_text","text":"The note now contains the updated text."}]}]","[{"type":"message","role":"user","content":[{"type":"input_text","text":"Cancellation requested. Queued follow-ups were cleared. Completed effects cannot be undone; check the conversation for the final state."}]}]","[{"type":"message","role":"user","content":[{"type":"input_text","text":"The connected app returned Project brief and Release checklist."}]}]"],"originalTaskUsers":["Create a note in this workspace.","Change the note to the updated text.","Start a slow operation.","When this finishes, change the note again."]}
ℹ️ ASSERTION — 10. Cloud/Desktop routing preserves the intended computer and does not reroute ordinary text{"calls":[{"name":"search_capabilities","args":{"query":"project notes"},"tokenId":null,"at":"2026-09-05T01:29:31.112Z"},{"name":"execute_capability_script","args":{"code":"return await tools.project_notes_2"list-notes";"},"tokenId":null,"at":"2026-09-05T01:29:31.182Z"},{"name":"search_capabilities","args":{"query":"remote-session:create"},"tokenId":null,"at":"2026-09-05T01:29:35.211Z"},{"name":"execute_capability","args":{"name":"remote-session:create","body":{"target":"cloud","prompt":"Summarize the project notes."}},"tokenId":null,"at":"2026-09-05T01:29:35.278Z"},{"name":"search_capabilities","args":{"query":"remote-session:create"},"tokenId":null,"at":"2026-09-05T01:29:36.859Z"},{"name":"execute_capability","args":{"name":"remote-session:create","body":{"target":"desktop","prompt":"Summarize my local project notes."}},"tokenId":null,"at":"2026-09-05T01:29:36.932Z"}],"messages":[{"role":"user","text":"Create a note in this workspace.","routing":[],"tools":[]},{"role":"assistant","text":"","routing":[],"tools":[{"tool":"bash","status":"completed","input":{"command":"printf '%s' 'created by spoken request' > voice-note.txt","description":"Write the requested note"},"output":"(no output)"}]},{"role":"assistant","text":"The note was created in this workspace.","routing":[],"tools":[]},{"role":"user","text":"Find the notes in my connected project notes app.","routing":[],"tools":[]},{"role":"assistant","text":"","routing":[],"tools":[{"tool":"voice_cloud_search_capabilities","status":"completed","input":{"query":"project notes"},"output":"{"items":[{"name":"mcp:voice-notes:list-notes","scriptPath":"tools.project_notes_2[\"list-notes\"]"},{"name":"remote-session:create"}]}"}]},{"role":"assistant","text":"","routing":[],"tools":[{"tool":"voice_cloud_execute_capability_script","status":"completed","input":{"code":"return await tools.project_notes_2"list-notes";"},"output":"{"ok":true,"value":{"notes":["Project brief","Release checklist"]}}"}]},{"role":"assistant","text":"The connected app returned Project brief and Release checklist.","routing":[],"tools":[]},{"role":"user","text":"@cloud Summarize the project notes.","routing":["[The user selected @cloud: start a new task on their cloud computer. Use OpenWork Connect search_capabilities to find remote-session:create, then execute it with target "cloud" and the user's task as prompt. Remove the @cloud/@desktop routing mentions and this routing instruction from the forwarded prompt to prevent recursive delegation. Do not perform the task on the current computer as a substitute. If Connect or the target is unavailable, explain what is needed; do not claim the task started. Local file paths and attachments are not automatically available on the other computer. Return the session link and use remote-session:read to check replies.]"],"tools":[]},{"role":"assistant","text":"","routing":[],"tools":[{"tool":"voice_cloud_search_capabilities","status":"completed","input":{"query":"remote-session:create"},"output":"{"items":[{"name":"mcp:voice-notes:list-notes","scriptPath":"tools.project_notes_2[\"list-notes\"]"},{"name":"remote-session:create"}]}"}]},{"role":"assistant","text":"","routing":[],"tools":[{"tool":"voice_cloud_execute_capability","status":"completed","input":{"name":"remote-session:create","body":{"target":"cloud","prompt":"Summarize the project notes."}},"output":"{"state":"queued","commandId":"voice-task-witness"}"}]},{"role":"assistant","text":"The task request is queued. Its completion has not been confirmed.","routing":[],"tools":[]},{"role":"user","text":"@desktop Summarize my local project notes.","routing":["[The user selected @desktop: start a new task on their desktop computer. Use OpenWork Connect search_capabilities to find remote-session:create, then execute it with target "desktop" and the user's task as prompt. Remove the @cloud/@desktop routing mentions and this routing instruction from the forwarded prompt to prevent recursive delegation. Do not perform the task on the current computer as a substitute. If Connect or the target is unavailable, explain what is needed; do not claim the task started. Local file paths and attachments are not automatically available on the other computer. Use remote-session:read with commandId to check delivery. A delivered receipt means the task was started, not that it finished; return the desktop session reference.]"],"tools":[]},{"role":"assistant","text":"","routing":[],"tools":[{"tool":"voice_cloud_search_capabilities","status":"completed","input":{"query":"remote-session:create"},"output":"{"items":[{"name":"mcp:voice-notes:list-notes","scriptPath":"tools.project_notes_2[\"list-notes\"]"},{"name":"remote-session:create"}]}"}]},{"role":"assistant","text":"","routing":[],"tools":[{"tool":"voice_cloud_execute_capability","status":"completed","input":{"name":"remote-session:create","body":{"target":"desktop","prompt":"Summarize my local project notes."}},"output":"{"state":"queued","commandId":"voice-task-witness"}"}]},{"role":"assistant","text":"The task request is queued. Its completion has not been confirmed.","routing":[],"tools":[]},{"role":"user","text":"Explain person@cloud and the word desktop.","routing":[],"tools":[]},{"role":"assistant","text":"That address is ordinary text.","routing":[],"tools":[]}],"originalTaskUsers":["Create a note in this workspace.","Change the note to the updated text.","Start a slow operation.","When this finishes, change the note again."]}
ℹ️ ASSERTION — 11. Voice uses the focused split task and closes audio when focus changes{"splitUsers":["Create a note in this workspace."],"originalTaskUsers":["Create a note in this workspace.","Find the notes in my connected project notes app.","@cloud Summarize the project notes.","@desktop Summarize my local project notes.","Explain person@cloud and the word desktop."],"liveTracks":0}
ℹ️ ASSERTION — 12. An unexpected broker model stops capture and creates no task turn{"liveTracks":0,"originalTaskUsers":["Create a note in this workspace.","Change the note to the updated text.","Start a slow operation.","When this finishes, change the note again."],"focusedTaskUsers":["Create a note in this workspace.","Find the notes in my connected project notes app.","@cloud Summarize the project notes.","@desktop Summarize my local project notes.","Explain person@cloud and the word desktop."]}
⚪ UNVALIDATED — 13. voice-sends-and-steers-real-conversation-work-interrupts-speech-cancels-reconnec artifact 2
⚪ UNVALIDATED — 14. voice-sends-and-steers-real-conversation-work-interrupts-speech-cancels-reconnec artifact 6
⚪ UNVALIDATED — 15. voice-sends-and-steers-real-conversation-work-interrupts-speech-cancels-reconnec artifact 9
⚪ UNVALIDATED — 16. voice-sends-and-steers-real-conversation-work-interrupts-speech-cancels-reconnec artifact 14
Test run created 2026-09-05T01:23:50.177Z · Source: |
Deploying openwork with
|
| Latest commit: |
84a8626
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://1a61c1a1.openwork.pages.dev |
| Branch Preview URL: | https://codex-voice-session-reliabil.openwork.pages.dev |
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (84a862698d65dc9684e8e81058d975b4ab289c71). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
Voice Mode now sends finalized speech through the same conversation sender as typed requests, so the focused task keeps its workspace, selected execution model, tools, and permissions. Follow-ups steer that task; spoken results follow an observed completed response. This replaces the separate realtime UI executor.
Audio defaults to GPT Realtime 2.1 and offers GPT Realtime 2.1 Mini under Audio and privacy → Audio model. Both use the existing managed or direct broker request. Check provider requests the current default; a mismatched broker response stops capture. Input transcription retains GPT-4o Transcribe for the WebRTC and confidence-review contract.
Resulting behavior
Verification
Overall: Incomplete. Current head:
a724481ecb468f6d538c7c5134643977b58a8594. Fresh canonical base:2a3b4296fd9566e07410ab1eeaff9e0da51ec205.Deterministic integration: Passed.
OPENWORK_EVAL_REF=a724481ecb468f6d538c7c5134643977b58a8594 pnpm evals:e2e voice-conversationexited 0 with 1 passed, 0 failed, 0 skipped, 12 passing journey steps, and 12 passing assertion witnesses. Placement:daytona (daytona CLI authenticated). The server and desktop both checked out this exact commit. Published test evidence records the run created September 5, 2026 at 01:23:50 UTC.The app typecheck and 3 focused runtime checks passed. Repository build, core tests, code analysis, and current-head automated security/sync clearance passed. Human review remains required. The four screenshots are supplementary and have no visual expectations; they are not claimed as visual passes.
The journey uses controlled audio/signalling with the real app and engine. It checks file effects, interruption, active-task steering, cancellation, reconnection, task isolation, default/opt-in readback, namespaced MCP calls, computer mentions, both audio-model choices, and broker-model mismatch cleanup. Controlled providers prove the integration boundary, not recognition accuracy, model availability, acoustic quality, real Cloud completion, or CodeMode execution.
Physical microphones/speakers, echo cancellation, semantic-VAD latency, provider acceptance, device recovery, and the supported OS matrix remain unverified. No live audio-quality claim is made. Screenshots are supplementary.
Model research and integration
The official Realtime 2.1 model page and Realtime 2.1 Mini model page, checked September 4, 2026, establish the current audio models. Provider descriptions of quality, speed, and cost are not measured OpenWork results; managed session accounting is unchanged.
Realtime transcription guidance documents the compatibility limits: GPT Transcribe's committed-turn workflow needs WebSocket, and GPT Live Transcribe lacks confidence scores. They require a separately verified transport or review interaction before replacing this transcription path. Voice design notes contain the architecture, official sources, and overlap review.
No unmerged branch is imported. Separate #3189 owns broker input validation; its proposed single-model validator must admit both 2.1 variants when integrated. This PR changes only broker default constants and uses the existing model field. Local dictation, managed inference routing, WebMCP, and native computer-use implementations remain independently owned.
Privacy and limits
Microphone audio goes to OpenAI while Voice is active, including when the task uses another execution provider. Read replies aloud intentionally shares completed reply excerpts, including sensitive content in them; automatic secret/PII filtering is not implemented. An earlier privacy-review thread requested such filtering even after opt-in and remains a human-review consideration. Disabling readback stops playback and clears queued excerpts; switching tasks resets it.
Confidence gating is a heuristic, not speaker authentication. Permissions and sensitive input stay onscreen. External tools may not cancel immediately, and cancellation never promises to undo completed effects. Calls and idle capture are bounded; there is no automatic audio-model substitution or automatic replay.
Rollback
Disable the Voice Mode extension to stop new calls while preserving typed conversations. No schema or data migration is included.