mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
refactor(frontend): rework speech-to-text to tap-first interaction (#207)
* refactor(frontend): extract VoiceStatusOverlay component and improve swipe tracking - Extract voice status overlay to dedicated VoiceStatusOverlay.tsx component - Move pointer event handlers from button to container for larger swipe surface area - Users can now initiate swipe gesture from anywhere in the container, not just the button * refactor(frontend): add SSE delta support and improve status synchronization - Add SSEMessagePartDeltaEvent type for streaming delta updates - Add SSESessionCreatedEvent type for session creation events - Implement directory filtering for SSE events to prevent cross-contamination - Add version tracking for status snapshots to ignore stale responses - Replace individual status updates with atomic replaceStatuses operation - Refactor parts batcher to use unified operation queue with delta support - Clear stale statuses on initial snapshot and directory changes - Add tests for status snapshot clearing and stale response handling * refactor: remove auto-restart from assistant mode and fix mobile sheet close behavior Stop restarting OpenCode after assistant mode initialization since the startup error logic is no longer needed. Also fix the repo quick switch sheet to stay open when launched from the mobile tab bar, preventing unwanted navigation away from the sheet. * refactor(frontend): improve speech-to-text UI
This commit is contained in:
1 parent
04400c91cc
commit
f0c87ffa5d
11 files changed
+525
-270
No files matched your search
@@ -43,6 +43,17 @@ export interface SSEMessagePartUpdatedEvent {
|
||||
}
|
||||
}
|
||||
|
||||
export interface SSEMessagePartDeltaEvent {
|
||||
type: 'message.part.delta'
|
||||
properties: {
|
||||
sessionID: string
|
||||
messageID: string
|
||||
partID: string
|
||||
field: string
|
||||
delta: string
|
||||
}
|
||||
}
|
||||
|
||||
export interface SSEMessageUpdatedEvent {
|
||||
type: 'message.updated' | 'messagev2.updated'
|
||||
properties: {
|
||||
@@ -74,6 +85,14 @@ export interface SSESessionUpdatedEvent {
|
||||
}
|
||||
}
|
||||
|
||||
export interface SSESessionCreatedEvent {
|
||||
type: 'session.created'
|
||||
properties: {
|
||||
sessionID: string
|
||||
info: Session
|
||||
}
|
||||
}
|
||||
|
||||
export interface SSESessionDeletedEvent {
|
||||
type: 'session.deleted'
|
||||
properties: {
|
||||
@@ -196,9 +215,11 @@ export interface SSESSHHostKeyRequestEvent {
|
||||
|
||||
export type SSEEvent =
|
||||
| SSEMessagePartUpdatedEvent
|
||||
| SSEMessagePartDeltaEvent
|
||||
| SSEMessageUpdatedEvent
|
||||
| SSEMessageRemovedEvent
|
||||
| SSEMessagePartRemovedEvent
|
||||
| SSESessionCreatedEvent
|
||||
| SSESessionUpdatedEvent
|
||||
| SSESessionDeletedEvent
|
||||
| SSESessionCompactedEvent
|
||||
|
||||
Reference in new issue
Block a user