forked from anomalyco/opencode
-
Notifications
You must be signed in to change notification settings - Fork 0
Fix dictation prompt initialization order #9
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Problem
Dictation command labels and hints are accessed before initialization, causing a TDZ crash when the prompt mounts.
Proposed fix
- In
packages/agent-core/src/cli/cmd/tui/component/prompt/index.tsx, movedictationKey,dictationCommandLabel,dictationCommandDisabled,dictationHintLabel, anddictationHintColorabove the firstcommand.registercall.
Acceptance criteria
- The TUI prompt loads without a
ReferenceErrorfor dictation fields. - Dictation command labels render based on the current dictation state.
Test plan
cd packages/agent-corebun dev -- --no-daemon --agent zee --prompt "List my calendar events today."
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working