feat(control): wire Codex Micro MIC key to voice.pushToTalk actions - #2
Open
derekclair wants to merge 2 commits into
Open
feat(control): wire Codex Micro MIC key to voice.pushToTalk actions#2derekclair wants to merge 2 commits into
derekclair wants to merge 2 commits into
Conversation
A missing socket now marks health stale, and status.sh says so instead of reprinting yesterday’s connected snapshot. Co-authored-by: Cursor <cursoragent@cursor.com>
- Add voice.pushToTalk.{start,stop,latch} to SupportedControlAction
- Extend GrokWireAction union and wireActionFor() mapping so the daemon
no longer throws UnsupportedActionError for PTT gestures
- Introduce voice-ptt.ts stub with VoicePTTContext + handleVoicePTT()
ready for interactive UI integration
Native timing, routing, health JSON voice state and lighting were already
implemented in native-input.ts and daemon.ts. This change completes the
control-plane contract so authenticated Grok CLI sessions can receive
PTT events and create prompts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Completes the control-plane path so the wide MIC key on a Codex Micro can create prompts in authenticated Grok CLI sessions.
Changes
grok-cli/src/control/types.ts— addedvoice.pushToTalk.{start,stop,latch}toSupportedControlActiongrok-micro/packages/bridge/src/grok-control.ts— extendedGrokWireActionunion andwireActionFor()so the daemon routes PTT gestures instead of throwingUnsupportedActionErrorgrok-cli/src/control/voice-ptt.ts(new) —VoicePTTContextinterface +handleVoicePTT()dispatcher ready for TUI integrationAlready implemented (no code changes)
native-input.tsdaemon.tslastAction+voicefield updatesNext integration step
Wire
handleVoicePTTinto the interactive action handler (LocalControlServer.setActionHandler) and supply the four context methods (focusComposer,beginListening, STT glue,stopListeningAndSubmit).Verification
pnpm verify(bridge) +bun run typecheck && bun test src/control/(grok-cli) expected to stay greenCloses the remaining MIC gesture gap listed in PARITY.md / AGENTS.md.