feat(keyboard): unify assistant voice and AI workflows
Merge dictation and AI controls into one assistant surface, preserve safe insertion and clipboard actions, and align settings and tests with the new flow.
This commit is contained in:
@@ -37,7 +37,7 @@ struct KeyboardSurfaceRoot: View {
|
||||
Group {
|
||||
switch state.surface {
|
||||
case .voice:
|
||||
KeyboardRootView(
|
||||
AIKeyboardView(
|
||||
state: state,
|
||||
typing: typing,
|
||||
onInsert: wrappedInsert
|
||||
@@ -50,6 +50,8 @@ struct KeyboardSurfaceRoot: View {
|
||||
onDeleteBackward: wrappedDeleteBackward
|
||||
)
|
||||
case .ai:
|
||||
// Legacy persisted surface; controller canonicalizes it to
|
||||
// `.voice`, but render the unified assistant defensively.
|
||||
AIKeyboardView(
|
||||
state: state,
|
||||
typing: typing,
|
||||
|
||||
Reference in New Issue
Block a user