Commit Graph
729 Commits
Author SHA1 Message Date
Chris Scott 67cfd862b1 fix(tts): let voice mode read replies aloud on iOS
iOS rejects play() outside a user gesture unless the same media element was
already played inside one. Each chunk used a new Audio element, so replies in
voice mode failed with "Reading the reply failed".

- reuse one audio element for all external TTS playback
- add tts.unlock(), which plays a short silent clip on that element, and call
  it from the voice mode start and orb taps
- route every playback failure through failPlayback(message) and pass the
  message to onEnd so voice mode shows the underlying reason
- report a blocked play() as "Audio playback was blocked by the browser"
2026-10-23 14:08:33 -04:00
Chris Scott 811c22c7ec refactor(frontend): use async/await for composer send completion 2026-10-23 13:06:24 -04:00
ioplex dabe750920 fix: key auth rate limiting on the socket address only and clear sent drafts after unmount
- auth: drop the AUTH_TRUSTED_PROXY_HEADERS opt-in. Configured headers were
  trusted from any peer, so direct access to the published port could still
  rotate them. Better Auth now reads only the Manager-set socket address
  header; the env, compose forwarding, docs and tests are removed.
- composer: a send that completes after the composer unmounted (session
  switched mid-send) left the submitted text in the per-session draft store.
  Sends now complete through mutateAsync and clear the stored draft only if
  it still matches what was submitted, so newer edits are kept.
2026-10-23 12:49:53 -04:00
ioplex 4ec62cd4e7 fix: address findings from the full Docker evaluation of main
Critical and high:
- repos: unlinking a local repo removes only the Manager reference and alias,
  never the repository files; confirm button reads "Unlink"
- auth: rate-limit by the socket address; trust proxy headers only when
  AUTH_TRUSTED_PROXY_HEADERS is set (documented and forwarded in compose)
- composer: per-session in-memory drafts (text, bash mode, attachments);
  Escape no longer clears the prompt
- url params: compose same-tick updates so schedule dialogs stay closed after
  create/delete; delete dialog names the job

Medium:
- tool rows show failures (non-zero shell exit, failed exploration members)
- voice conversation shows the specific error and a starting state
- settings: Escape in dropdowns and the shortcut recorder no longer closes
  the dialog; mobile deep links open the requested section; one content tree
  per platform
- closing pushed sheets, settings, tool panels and schedule dialogs goes back
  in history
- login returns to the requested page; signed-out pages make no
  authenticated requests
- action terminals keep their output (Manager-side output capture and replay)
- unpushed-commit detection, commit message kept on failure
- binary files with unknown extensions are detected and not editable
- tool panel resizes when docked and floats as a dismissible sheet when the
  page is too narrow
- Docker image runs tini as PID 1

Low: not-found states, add-repo and branch validation errors (4xx),
search-aware empty states, mobile repo sort/filter/select cues, sidebar
resize affordance and collapse shortcut, mobile unread badge, preview port
filtering, terminal close handling, walkthrough empty state and helper
session filtering, placeholder contrast, permission labels and focus,
TTS task-list sanitizing, git identity email validation, quieter git
logging, hermetic worktree tests, and accessible names for icon-only
controls.
2026-10-23 11:42:37 -04:00
Chris Scott 1c22ef6ea1 Merge pull request #459 from chriswritescode-dev/feat/voice-conversation-mode
feat(frontend): hands-free voice conversation mode in the composer
2026-10-22 22:13:03 -04:00
Chris Scott 73de3db7f6 fix(frontend): keep external-provider dictations from aborting mid-turn 2026-10-22 22:10:48 -04:00
Chris Scott a5694d874f refactor(frontend): isolate voice conversation from the memoized composer re-renders 2026-10-22 21:58:13 -04:00
Chris Scott 95cd276e37 fix(frontend): keep voice mode listening for the full no-speech window
Chrome raises its own no-speech error after a few seconds of silence and sometimes ends a recognition session by itself. While voice mode is endpointing, restart recognition transparently against one fixed no-speech deadline, send captured words when Chrome ends a session after speech, and bound restarts so a failing recognizer surfaces an error instead of leaving the bar on Listening.
2026-10-22 21:31:47 -04:00
Chris Scott 73af7aec89 fix(frontend): address CodeRabbit review findings on voice conversation mode
Report STT start and capture failures instead of staying on Listening, treat a failed reading as an error, skip replies with no readable text, stop auto-play replaying a reply voice mode already read, focus the text box after Edit in text box, and strip think blocks before text reaches TTS.
2026-10-22 20:36:01 -04:00
Chris Scott 5d8b2c9445 feat(frontend): hands-free voice conversation mode in the composer
The mic opens a voice loop that listens, sends on end of speech, reads each completed reply and reopens the mic when the agent is idle. The phase reducer, pause options and voice-mode instruction move to the shared package. TTS gains per-message completion and pause/resume. The old tap-and-drag recorder, its strip and its CSS are removed.
2026-10-22 20:18:16 -04:00
Chris Scott 6ac264f9d0 test(frontend): cover RepoList empty-state add action
Asserts the empty-state Add repository button calls onAddRepo once, the only add path left on mobile after the header action became desktop-only.
2026-10-22 09:30:07 -04:00
Chris Scott 739f4d3d5c feat(frontend): move the mobile add-repo action into the search row
The header ran out of room on narrow screens now that the server switcher is
always present. The Repo button is desktop-only and mobile gets a bordered
icon button beside the search input instead. The empty state carries its own
add button, since it renders no search row.
2026-10-22 09:20:24 -04:00
Chris Scott 9319579150 fix(frontend): queue TTS auto-play per step instead of cutting each off
The auto-play hook returned early whenever the last assistant message was
still streaming, before it could record that a reply had started, so the
first reply in a fresh session was never spoken. Remove that input and rely
on the message's own completion state.

Auto-play now speaks every completed assistant step and queues steps that
arrive during playback, resuming after a short pause, rather than
interrupting the audio in progress. Manual playback and stop still interrupt
and clear the queue.
2026-10-22 00:08:11 -04:00
Chris Scott 276bc1b920 fix(frontend): address CodeRabbit review findings on the transcript branch
- wrap long retry errors instead of truncating them
- keep the server switcher in the home header for the local server too
- accept trailing-slash session detail routes in isSessionDetailRoute
2026-10-21 23:41:12 -04:00
Chris Scott 8d8960849e fix(frontend): open the more sheet on right-edge swipe in linked-server sessions
The swipe gate only matched local session URLs, which predates linked
servers, so the gesture never fired on /servers/<id>/sessions/<id>.
2026-10-21 23:28:01 -04:00
Chris Scott cbdd252d7a feat(frontend): switch servers from the home page header
Replace the read-only connection status with the server switcher, so the
header names the selected linked server and can change servers in place.
2026-10-21 23:14:12 -04:00
Chris Scott c4bb104cc0 fix(frontend): reveal transcript actions on focus and bound the shell preview
- expose the user message action buttons to keyboard focus, not just hover
- compute the shell preview tail once per output change and clamp very long lines
2026-10-21 23:14:12 -04:00
Chris Scott d8495df811 fix(frontend): keep transcript display settings working with the plain log layout 2026-10-21 22:26:33 -04:00
Chris Scott 8004496f10 feat(frontend): restyle the session transcript as a plain log with collapsible tool details 2026-10-21 21:42:11 -04:00
Chris Scott d154d56645 fix(frontend): delay and de-duplicate desktop sidebar tooltips 2026-10-21 14:20:03 -04:00
Chris Scott 095d3a6b37 fix(frontend): keep the discard release from restarting the mic and let reduced motion stop the wave animation 2026-10-21 14:20:03 -04:00
Chris Scott 99cc8a7f24 fix(frontend): raise the mobile composer controls to 44px 2026-10-21 14:13:29 -04:00
Chris Scott a2ae98107d feat(frontend): replace the mobile voice overlay with an in-row recorder 2026-10-21 14:07:10 -04:00
Chris Scott 577d7e8b5b fix(sessions): scroll to the latest message once the transcript is ready 2026-10-21 14:07:10 -04:00
Chris Scott 160770396f fix(frontend): lift the mobile composer row clear of the rounded screen corners and match the agent and model control height 2026-10-21 13:26:20 -04:00
Chris Scott 570e528ba1 feat(frontend): dock the mobile composer as a solid full-width strip and enlarge the mic and tools buttons 2026-10-21 13:08:43 -04:00
Chris Scott 32102cca3e fix(frontend): anchor the mobile activity scanner just below the composer controls 2026-10-21 13:01:48 -04:00
Chris Scott 648713268d feat(frontend): consolidate composer controls at 36px and repaint the activity scanner in CSS 2026-10-21 12:40:34 -04:00
ioplex 76d52b3550 feat(frontend): move send to the input and show key bar in the controls row
- Place Send/Queue/View at the end of the textarea and hide Send when the draft is empty
- Keep the model picker visible on mobile while a session is active
- Keep the mobile mic in the controls row alongside Send
- Show the /, @, ! keys in place of the agent/model selectors while focused on mobile
- Compact the mobile controls row while the prompt is focused
2026-10-21 12:40:34 -04:00
ioplex 332fb07f45 feat(frontend): move session activity scanner under the composer
- Keep the model picker visible while a session is active
- Render a full-width segmented scanner below the composer via shared ScannerBars
- Reduce SessionStatusIndicator to the list-row spinner
2026-10-21 12:40:34 -04:00
Chris Scott eb3937ef7e fix(auth): update auth stack and remove token logging
Upgrade better-auth and @better-auth/passkey to 1.7.12 and hono to
4.13.13, which clears every auth-related advisory in pnpm audit. The
lockfile also picks up patched kysely, @simplewebauthn/server and defu.

Drop the Set-Cookie and cookie-name logging that exposed session tokens,
match ADMIN_EMAIL case-insensitively, revoke admin sessions when
ADMIN_PASSWORD_RESET rotates the password, and require user verification
for passkeys.
2026-10-21 11:00:15 -04:00
Chris Scott 884233d95c fix(e2e): stop the login page requesting linked servers and update the background-activity test 2026-10-20 23:04:26 -04:00
Chris Scott 63364baab5 fix(events): restore frontend build after stale pending-action fixes 2026-10-20 18:40:03 -04:00
Chris Scott 539f10f9a3 fix(events): ignore stale pending-action results for disabled servers and gone sessions 2026-10-20 18:24:03 -04:00
Chris Scott 9c28ab6873 fix(events): reconcile pending actions per server and drop unreachable ones
- Reconcile pending forms and permissions per server on reconnect, remote resync, and when a server is enabled after connect
- Resolve the directory of pending sessions with no known directory, dropping them when the session returns 404
- Drop a remote server's pending items when reconciling it fails as unreachable (status 0, 502, 504)
- Generalize the pending-item pruning helper
2026-10-20 18:16:02 -04:00
Chris Scott 382b26806e fix(events): clear stale pending questions from remote servers
- Drop pending forms and permissions when a session is deleted or its page returns 404
- Reconcile remembered remote directories on browser reconnect, not only local repos
- Purge pending items from remote servers that are disabled or removed
- Prefer the viewed session's pending item over a pinned item from another session
- Time out remote proxy GET/HEAD requests that never send headers (504)
2026-10-20 21:01:16 +00:00
Chris Scott 24ac88e724 fix(repos): add bottom padding to the desktop repo and remote project lists 2026-10-19 23:14:17 -04:00
Chris Scott 1a5776dd5b fix(sessions): keep the question card within the space above the prompt 2026-10-19 23:12:40 -04:00
Chris Scott 050f0a27e4 Merge remote-tracking branch 'origin/main' into feat/mobile-fullscreen-form-prompt
# Conflicts:
#	frontend/src/pages/SessionDetail.tsx
2026-10-19 22:50:16 -04:00
Chris Scott a525314c38 feat(sessions): add a side-question button to the mobile question sheet 2026-10-19 22:43:58 -04:00
Chris Scott b01e8707ee feat(sessions): full-screen mobile question sheet with persisted draft answers 2026-10-19 19:07:54 -04:00
ioplex 360ceea3ac fix(servers): reconcile linked server statuses once the server list loads
The browser stream usually connects before the linked server list resolves, so a fresh page never fetched remote active sessions and busy remote sessions showed as idle until their status changed. Reconcile each enabled linked server once per stream connection, including servers that arrive or are enabled after the stream connects.
2026-10-19 19:01:31 -04:00
Chris Scott 8605dbf494 feat(servers): open a remote directory session from a dialog
The open-directory form no longer sits at the bottom of the project list, where it overlapped the mobile tab bar. A button beside the search input opens it in a dialog.
2026-10-19 15:41:23 -04:00
Chris Scott c18c3584ef feat(servers): show linked server projects on the home page and remove the server page
The home page follows the sidebar server selection and lists a linked server's projects with the same cards, search and row actions as local repositories. /servers/:id now selects that server and redirects home. Back from a remote session goes to its project page and back from a project goes home, and the selection follows the route app-wide so mobile keeps the linked server.
2026-10-19 15:01:48 -04:00
Chris Scott c1e09f34a5 feat(servers): name the local server OC Manager in the switcher 2026-10-19 12:58:17 -04:00
Chris Scott 0a520babc4 feat(models): share favorites, recents and variants across linked servers
Model preferences are per user, as in the OpenCode TUI, so linked servers read and write the same model state as the local server. The picker still only lists models in the current server's catalog, and a failed preference load no longer blocks model selection.
2026-10-19 12:27:59 -04:00
Chris Scott a926991637 fix(navigation): ignore malformed server ids on remote project routes 2026-10-19 11:42:47 -04:00
Chris Scott 24745597f2 Merge remote-tracking branch 'origin/feat/linked-opencode-servers' into feat/remote-server-automation
# Conflicts:
#	frontend/src/lib/navigation.test.ts
2026-10-19 11:37:57 -04:00
Chris Scott 42dd733378 fix(servers): open settings tabs with history and keep server selection on load errors
External settings openers push a history entry and close the mobile sheet. The sidebar server selection only falls back to Local after the server list loads successfully.
2026-10-19 11:37:42 -04:00
Chris Scott 1659664d53 fix(servers): test edited server URLs with the stored password
Test always checks the draft URL. When the password is left blank, the stored password is reused only if the draft URL has the same origin as the saved server.
2026-10-19 11:37:40 -04:00