Commit Graph
1094 Commits
Author SHA1 Message Date
coderabbitai[bot] f80aa1c0e5 docs: document mobile session hooks, plugin test helpers, and viewport detection 2026-10-15 14:06:19 +00:00
Chris Scott b974618dee feat(chat): tailor replies for mobile and text-to-speech 2026-10-14 20:38:54 +00:00
Chris Scott b140a9c77b Merge pull request #426 from chriswritescode-dev/feat/tts-visible-messages-shortcut
feat(tts): play TTS for visible messages with a keyboard shortcut
2026-10-14 14:54:16 -04:00
Chris Scott ae2f7e9844 Merge pull request #428 from chriswritescode-dev/fix/permission-dialog-context
fix(permissions): prioritize the viewed session and add request context to the permission dialog
2026-10-14 14:53:29 -04:00
Chris Scott cee27cd6ef fix(permissions): keep the pinned request in state instead of mutating a ref during render 2026-10-14 14:09:55 +00:00
Chris Scott e6b1fb8138 fix(permissions): prioritize the viewed session and add request context to the permission dialog 2026-10-14 01:04:40 -04:00
Chris Scott cc0e136f3c test(e2e): wait for TTS synthesis to settle before asserting exclusions 2026-10-13 22:57:29 -04:00
Chris Scott 8a893d0d2a refactor(tts): read visible replies when floating button is tapped while scrolled up 2026-10-13 21:31:03 -04:00
Chris Scott eafa8941cb fix(tts): exclude covered messages and skip auto-play during shortcut playback 2026-10-13 20:49:32 -04:00
Chris Scott 7cb6c07494 feat(tts): play TTS for visible messages with a keyboard shortcut 2026-10-13 19:26:31 -04:00
Chris Scott 59ffe6c586 Merge pull request #420 from chriswritescode-dev/feat/sandboxed-html-artifacts
feat(artifacts): render agent HTML files inline in the session chat
2026-10-13 09:30:59 -04:00
Chris Scott e554d4861c Merge pull request #424 from chriswritescode-dev/feat/inline-markdown-images
feat(markdown): render inline images in messages and markdown files
2026-10-13 09:29:16 -04:00
Chris Scott f488b8762d fix(markdown): address inline image review feedback
Keep the leading slash when resolving relative paths against an absolute
markdown file, retry an inline image when its source changes after a load
failure, and render linked markdown images without a nested expand button.
2026-10-13 01:46:51 +00:00
Chris Scott 458f26134b test(e2e): cover inline markdown images and image attachments
Exercise the file browser preview, assistant markdown images served by a
local mock OpenAI-compatible provider, and composer image attachments
in a real browser against the isolated e2e instance.
2026-10-13 01:38:55 +00:00
Chris Scott be93975d90 feat(markdown): render inline images in messages and markdown files
Route markdown image nodes through a shared MarkdownImage component that
loads local paths through the raw file API, and allow data:image/* sources
through the sanitizer and URL transform so inline images survive rendering.

Render image attachments as thumbnails in the message thread, and accept
image/webp uploads.
2026-10-13 00:29:00 +00:00
Chris Scott 93faf387d2 fix(composer): move the mobile dictation button off the floating controls
On mobile the dictation button sat at the right edge of the composer, directly
below the floating cluster (Stop, Clear, TTS pill) anchored to the composer's
top-right corner, so the two were adjacent touch targets. Render the dictation
button ahead of the composer tools menu so it takes the slot one position left.

The reorder exposed a latent bug: renderVoiceButton attaches the same
voiceButtonContainerRef for both variants, so the last one rendered owns it.
The desktop variant is always rendered (CSS-hidden below md), so moving the
mobile variant first handed the ref to the desktop container and the
outside-press guard stopped recognising the mic, ending the recording on the
first tap. Render the desktop variant only at desktop widths so exactly one
voice container exists in the DOM.
2026-10-12 17:01:02 -04:00
Chris Scott 5e2452172c fix(artifacts): render artifacts from the checked path and serve raw files once
- show_artifact returns the validated path as tool metadata; the chat card
  renders from it and maps repo paths with getWorkspaceFilePath, so local
  repos and moved sessions load the right file
- serve .htm as text/html
- raw file route stats and reads once and adds ETag/Last-Modified with 304
- reuse isPathWithinRoot from utils/fs-safe
- move readShowArtifactCall to frontend/src/lib/artifactTool
2026-10-12 16:43:04 -04:00
Chris Scott f7b2ffb865 feat(artifacts): render agent HTML files inline in the session chat 2026-10-12 16:43:04 -04:00
Chris Scott 377e3c2784 fix(composer): size mobile controls for touch and fill the action row
The mobile composer mixed 32-38px controls with the 44px dictation button,
so the action row changed height between the empty (mic) and typed (Send)
states, and most controls sat below the 44px touch target.

Raise the mic, Send, tools, agent, model, Latest and keybar controls to 44px
on mobile and pin the mic to the right edge of its container. Let the model
button fill the row by growing its left-hand group, which was content-sized
and left the model button's flex-1 with nothing to grow into.

Desktop sizes are unchanged through md: guards. The mobile mic is located in
tests through a data-voice-variant attribute rather than Tailwind sizing
classes.
2026-10-12 16:39:29 -04:00
Chris Scott bc958a56a5 Merge pull request #423 from chriswritescode-dev/feat/mobile-dictate-with-send
feat(composer): keep the mobile send button and move dictation into the tools menu
2026-10-12 10:29:26 -04:00
Chris Scott a3269930cc feat(composer): keep the mobile send button and move dictation into the tools menu 2026-10-12 13:54:36 +00:00
Chris Scott 3cf06f0a86 Merge pull request #422 from chriswritescode-dev/e2e-cleanup
test(e2e): clean up run artifacts after the suite
2026-10-12 09:46:55 -04:00
Chris Scott 0b42f7de97 test(e2e): clean up run artifacts after the suite
- server.sh removes e2e/.tmp when the backend exits, forwarding SIGTERM so
  Playwright's graceful shutdown still applies
- a cleanup reporter removes playwright-report and test-results after a
  passing run; failed runs keep them for debugging and CI upload
2026-10-12 09:31:13 -04:00
Chris Scott 132176d6f9 Merge pull request #421 from chriswritescode-dev/fix/context-usage-tui-parity
fix(sessions): match OpenCode TUI context usage
2026-10-12 00:22:24 -04:00
Chris Scott eca2275909 Merge pull request #419 from chriswritescode-dev/feat/session-background-activity
feat(sessions): show background activity for shells and child sessions
2026-10-12 00:17:55 -04:00
Chris Scott 901bcd092e test(e2e): fail background activity cleanup when a shell removal is rejected 2026-10-12 00:11:45 -04:00
Chris Scott 964c6c2f6e test(e2e): cover session background activity indicator 2026-10-11 23:58:49 -04:00
Chris Scott e6d260153b Merge remote-tracking branch 'origin/main' into feat/session-background-activity 2026-10-11 23:48:38 -04:00
Chris Scott 59a25cc39e test(sessions): flush microtasks instead of fixed sleep in transcript test 2026-10-11 23:47:09 -04:00
Chris Scott 627a3e1eee Merge pull request #418 from chriswritescode-dev/docs/correct-developer-and-cli-guides
docs: correct developer test commands and CLI requirements
2026-10-11 23:43:50 -04:00
Chris Scott 2580cdf863 test(e2e): add Playwright suite covering every app route 2026-10-11 22:30:55 -04:00
Chris Scott 10158ac164 fix(sessions): match OpenCode TUI context usage
The header context count differed from the OpenCode TUI and dipped then jumped
back up mid-session:

- cache write tokens were left out of the total, so context stored as a cache
  write was dropped and then reappeared as a cache read on the next step
- the newest assistant message without token data was skipped only one message
  back, so a step without usage showed 0 or a stale count

The total now includes cache write tokens and the newest assistant message that
reports tokens is counted, matching the TUI: messages before the latest completed
compaction are ignored, messages at or after a revert point are ignored, and the
indicator is hidden when no message qualifies or the total is zero.
2026-10-12 01:12:55 +00:00
Chris Scott aec94db9fb fix(sessions): address background activity review feedback
- keep shell state changed by events that arrive while a shell snapshot is in
  flight, so an exited shell is not restored and a new one is not dropped
- resolve session ancestry for the owners of running shells and for new shells
- follow already-known parent links when resolving ancestry
- sync running shells for repository directories added after the stream connects
- announce session and background activity to screen readers from the prompt bar
2026-10-12 01:08:58 +00:00
Chris Scott 5dbf9766a5 fix(sessions): refresh transcript when returning to a session
The transcript cache is never re-read when a mounted session page switches to
another session or is returned to, so a session that finished while the user was
away kept showing its stop button and treated new prompts as queued. Re-read the
newest page whenever the session subscription starts with an existing cache, and
drop refetchOnMount so a mount performs a single read.
2026-10-12 01:08:58 +00:00
Chris Scott 2e2eff05af feat(sessions): show background activity for shells and child sessions 2026-10-11 21:52:03 +00:00
Chris Scott 3b2dfda62c docs: correct developer test commands and CLI requirements 2026-10-11 21:48:34 +00:00
Chris Scott 51e92d8cf2 Merge pull request #416 from chriswritescode-dev/fix/tts-overlap-and-cache-race
fix(tts): prevent overlapping playback and corrupted audio cache
2026-10-11 00:19:15 -04:00
Chris Scott 0b76b6d3c7 test(fs-safe): cover writeFileAtomic failure cleanup and default mode 2026-10-11 00:18:47 -04:00
Chris Scott bda123b6e1 refactor(tts): reuse the shared atomic write helper for the audio cache 2026-10-11 00:14:14 -04:00
Chris Scott 2c5136e21e Merge pull request #417 from chriswritescode-dev/feat/walkthrough-cancel-generation
feat(walkthrough): stop an in-flight change walkthrough generation
2026-10-10 23:19:16 -04:00
Chris Scott d7022b5059 feat(walkthrough): use the selected session model for generation 2026-10-10 23:09:36 -04:00
Chris Scott adaf175ccf fix: apply CodeRabbit auto-fixes 2026-10-10 22:25:33 -04:00
Chris Scott d4a5f46ac6 fix(walkthrough): cancel generation cleanly before the first model call
Guard every newly generated persistence point and each await before it so a
cancelled generation cannot write a walkthrough after DELETE is accepted,
including the mechanical-only path. Treat an aborted model-catalog resolution
as cancellation rather than a model-resolution failure, and let startGeneration
return the stopped state for cancellation while preserving genuine errors.
2026-10-10 15:29:20 -04:00
Chris Scott 169ee25a8a fix(tts): key the audio cache by provider and add a settings clear action
- Hash text, voice, model, speed, normalized endpoint and API key into one SHA-256 key shared by the disk cache and in-flight synthesis, so different providers cannot reuse each other's audio and old keys are not read as fallback.
- Add DELETE /api/tts/cache to remove completed cached audio files, keep temporary files, tolerate missing files and report real failures.
- Add a Clear audio cache action to TTS settings, available even when TTS is disabled or the builtin provider is selected, with pending, success and retryable error states.
2026-10-10 14:54:53 -04:00
Chris Scott 0752ebf360 feat(walkthrough): stop an in-flight change walkthrough generation
Add DELETE /api/change-walkthroughs/:sessionId to cancel the generation for a session and source. The service removes the in-flight entry, persists the partial walkthrough, and aborts a per-generation signal threaded through model resolution and every model call. Cancellation is not recorded as a failure and leaves the remaining stops pending. A Stop button in the walkthrough chrome calls the new endpoint.
2026-10-10 17:48:14 +00:00
Chris Scott 1eba33c6f1 fix(tts): bound synthesis requests and tolerate cache write failures 2026-10-09 23:57:09 -04:00
Chris Scott 2d134d9de7 Merge pull request #415 from chriswritescode-dev/feat/worktree-multi-run-groups
feat(workspaces): group multi-run worktrees in the worktrees tab
2026-10-09 23:32:56 -04:00
Chris Scott 1bfcdd0496 fix(tts): isolate playback and fetch each chunk once
- Tag each playback and ignore stale async continuations and audio events, so a previous message's chunk chain cannot play over the current one.
- Cancel browser speech regardless of the saved provider.
- Fetch each chunk at most once per playback and await an in-flight fetch instead of starting a duplicate.
2026-10-09 22:16:04 -04:00
Chris Scott aed50e6d99 fix(tts): dedupe concurrent synthesis and write the audio cache atomically
- Write cached audio to a temp file and rename it into place so a concurrent read never sees a partial or interleaved file.
- Share one upstream synthesis call per text and cache key, so concurrent requests no longer produce different recordings that race on the same file.
- Return the same upstream error to every waiter.
2026-10-09 22:16:04 -04:00
Chris Scott 3a370b7a5d feat(workspaces): group multi-run worktrees in the worktrees tab 2026-10-09 16:43:42 -04:00