Skip to content

fix(frontend): restore voice stream cancel contract types - #139

Merged
gac0812 merged 2 commits into
1024XEngineer:MVPfrom
gac0812:codex/frontend-voice-assistant
Aug 1, 2026
Merged

fix(frontend): restore voice stream cancel contract types#139
gac0812 merged 2 commits into
1024XEngineer:MVPfrom
gac0812:codex/frontend-voice-assistant

Conversation

@gac0812

@gac0812 gac0812 commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Restore VoiceStreamCancelCommand / VoiceStreamCancelAck after they were dropped during the MVP merge
  • Fix the matching FakeWsServer import for cancel handling

Why

After #132 landed, CI typecheck failed because VoiceStreamPort and FakeWsServer still reference cancel types that were missing from contracts/voice.ts.

Related

Test plan

  • cd frontend && npm ci && npm run typecheck
  • npm run test -- --testPathPattern=VoiceStream
  • Confirm Minimal CI is green

geasd and others added 2 commits August 1, 2026 14:51
CI typecheck failed after the MVP merge dropped VoiceStreamCancelCommand/Ack while cancel handling remained in the port and fake server.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@gac0812
gac0812 merged commit de98259 into 1024XEngineer:MVP Aug 1, 2026
3 checks passed

@fennoai fennoai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary

Found one correctness issue in the fake voice-cancellation path. Automated typecheck was not completed because the workspace's tsc executable returned Permission denied.

SessionHello,
SessionReady,
VoiceParseResultMessage,
VoiceStreamCancelCommand,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correctness: Importing VoiceStreamCancelCommand does not restore fake-server cancellation by itself. handleMessage still falls through to default for voice.stream.cancel, even though handleVoiceCancel already exists. Consequently, WsVoiceStreamPort.cancel() receives no acknowledgement and waits for the request timeout whenever the fake transport is used. Please restore a case 'voice.stream.cancel' branch that calls handleVoiceCancel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant