Commit Graph
20 Commits
Author SHA1 Message Date
Mohamed Boudra c4d544baf6 Reduce workspace render churn 2026-06-12 21:53:22 +07:00
Mohamed Boudra 660b4d3cec refactor(app): fix type-aware lint errors in voice, tabs store, host-connection, audio recorder (#706)
Clear all type-aware lint errors in four app state/runtime files:

- voice-context.tsx: bind runtime methods before passing to useSyncExternalStore
  and object spreads to satisfy the unbound-method rule
- workspace-tabs-store.ts: replace unsafe `as` casts with isPlainRecord type
  predicate + toObjectRecord; add coerceWorkspaceTabTarget to bridge unknown
  storage data to WorkspaceTabTarget without assertions
- host-connection.ts: same isPlainRecord/toObjectRecord pattern; replace
  String(record.x ?? "") calls with typeof guards to fix no-base-to-string
- use-audio-recorder.native.ts: construct real Blob instead of casting an
  object literal; restructure useEffect for consistent-return; drop await on
  void recorder.record(); use instanceof Error for message extraction; remove
  redundant Boolean() wrapping
2026-05-05 19:58:16 +07:00
Mohamed Boudra 4cd9e76bd2 Remove unnecessary type assertions across codebase
Add oxlint-tsgolint and configure typescript/no-unnecessary-type-assertion
to flag redundant `!` and `as Foo` casts. Type-aware mode is left off by
default to keep `npm run lint` fast; the rule sits configured for when we
turn type-aware on intentionally. Auto-fix removed ~283 redundant casts;
two manual touch-ups: a real tsgolint false positive in split-container.tsx
and a stale ChildProcess import after a double-cast collapsed.
2026-05-05 19:56:26 +07:00
Mohamed Boudra f6579dbeb4 Switch to double quotes and reformat codebase with Biome 2026-03-21 20:22:15 +07:00
Mohamed Boudra d1632d80e3 refactor(voice): defer speech confirmation and add diagnostics 2026-03-14 20:05:48 +07:00
Mohamed Boudra 502dd2d2e2 refactor(app): remove debug logging from voice and UI components 2026-03-13 21:07:18 +07:00
Mohamed Boudra 80a2f8052c refactor(app): replace voice hooks with voice runtime and audio engine architecture 2026-03-13 20:53:55 +07:00
Mohamed Boudra d128a32d2f Unify app connection state around host runtime 2026-02-20 10:37:59 +07:00
Mohamed Boudra a644adbf9b feat: add voice capability status reporting to client 2026-02-14 13:14:57 +07:00
Mohamed Boudra 5f864a4dd7 Add speech-start grace period before voice interrupt 2026-02-12 14:05:46 +07:00
Mohamed Boudra 0d60588431 Update files 2026-02-11 11:04:49 +07:00
Mohamed Boudra 8adcb0a4cd Update files 2026-02-07 14:41:21 +07:00
Mohamed Boudra 3cc7feab21 Update files 2026-02-07 14:06:11 +07:00
Mohamed Boudra 4a9cf9e90f Update files 2026-02-07 09:43:44 +07:00
Mohamed Boudra 4a4cff105f Refactor voice mode to agent-only flow 2026-02-06 23:12:44 +07:00
Mohamed Boudra 7d388b456f Tune web voice VAD for short utterances 2026-02-06 15:58:02 +07:00
Mohamed Boudra ae27a14e3b Update files 2026-02-05 12:02:25 +07:00
Mohamed Boudra 0aa2fede08 Update files 2026-02-04 10:18:51 +07:00
Mohamed Boudra 363566587e Fix web voice mode; share VAD/segmenting 2026-02-04 08:22:27 +07:00
Mohamed Boudra d500b25632 refactor: rename realtime to voice throughout codebase 2026-02-03 23:12:17 +07:00