A directory subscribed by the stream but neither registered as a repo nor
remembered as a session directory was reconciled on subscribe but skipped on
resync, so a missed shell exit could leave the indicator stale. Pass the
stream's subscribed directories to onResync and reconcile their pending
actions and running shells alongside the tracked ones.
Subscribe responses that arrive after the connection was replaced or the
directory was unsubscribed could also apply snapshots to state the client no
longer owns. Ignore responses from a superseded connection and report only
directories still subscribed.
The stale-indicator e2e test now waits for the successful unsubscribe response
and asserts the subscribe responses succeeded instead of sleeping.
session.moved is published on the old directory and carries the new one in
data.location, so it reached the page. useSSE refreshed the cached session on
session.renamed but had no session.moved case, and the event context only
invalidated session lists, so the page kept using the old directory and never
subscribed the new one. Shells, prompts and other directory-scoped events in
the new directory were missed until a refocus, reconnect or reload.
Handle session.moved like session.renamed. The refetch flips the page's
sessionDirectory, it subscribes the new directory, and the stream's
onDirectoriesSubscribed reconciliation loads that directory's running shells
and pending prompts.
The background activity indicator went stale for sessions living in a
directory that is not a registered repo. Running shells were only synced
for repo directories derived from the repos query, so session directories
subscribed over the event stream were never reconciled, leaving the
indicator visible after the shell had exited.
Report the directories actually subscribed (mid-connection updates and
pending directories flushed after connect) from the event stream through
onDirectoriesSubscribed, and reconcile running shells and pending
permissions/forms for them in the event context.
Add a Sessions | Projects tab switcher to the session picker header, a Projects tab listing navigable projects with search by name or branch and keyboard navigation, and a configurable switchPickerTab direct shortcut (default Ctrl+S) shown in the footer hint and Settings.
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.
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.
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.
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.
- 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
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.
- 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
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.
- 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
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.
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.