Commit Graph
1129 Commits
Author SHA1 Message Date
Chris Scott a0bdecd9fc fix(walkthrough): wait for the walkthrough to be ready before completing open_walkthrough 2026-10-16 20:09:20 +00:00
Chris Scott 1d31286904 fix(mobile): navigate to activity sessions from the More drawer
The activity row navigated and then called onClose, whose mobileTab-only
replace navigation resolved against the pre-navigation location and
overwrote the new route. Navigating alone drops mobileTab, which closes
the drawer without discarding the destination.
2026-10-16 14:00:24 -04:00
Chris Scott 33d9523666 Merge pull request #436 from chriswritescode-dev/feat/activity-switcher
feat(activity): surface active work across the session picker, tool rail and mobile
2026-10-16 12:48:52 -04:00
Chris Scott cd4b8a7e07 fix(activity): page active work to the window, resolve backfilled ancestors, and tick the window clock 2026-10-16 12:14:51 -04:00
Chris Scott 84cdffa261 fix(activity): roll subagent activity up to its root and accept only selectable windows
- List child sessions in the activity query and credit each child's latest update
  to its root, so Recent includes roots whose subagents were active inside the
  window; children never become rows, and only roots of in-window children are
  fetched
- Show and sort activity rows by that rolled-up time
- Restrict activityWindowMinutes to the selectable options on write, and coerce a
  stored unknown value to the default on read so it cannot reset every preference
2026-10-16 11:57:52 -04:00
Chris Scott 8b6251d83b fix(activity): animate the braille spinner in SVG and tighten the activity lists
- Draw the TUI braille spinner as a 2x4 SVG dot cell stepped by declarative
  <animate> timelines derived from SPINNER_FRAMES: no JavaScript timer or React
  render per frame, and it keeps animating under prefers-reduced-motion so an
  active session never looks stalled
- Enlarge the spinner cell and dots so it stays legible next to 14px text
- Add a compact ActivityList variant for the mobile More drawer and Repos sheet:
  one flat list capped at five rows, single-line rows, no group subheadings
- Let ActivityList callers own navigation so a row tap navigates once instead of
  pushing a duplicate history entry
- Share the picker keyboard navigation between the session and project tabs and
  reuse the shared session merge helpers in the sidebar repo groups
2026-10-16 11:42:03 -04:00
Chris Scott 4bca305167 Merge pull request #435 from chriswritescode-dev/feat/agent-built-change-walkthrough
feat(walkthrough): build the change walkthrough in a spawned agent session
2026-10-16 00:56:06 -04:00
Chris Scott d8f2fcf29c feat(activity): surface active work across the session picker, tool rail and mobile 2026-10-16 00:54:06 -04:00
Chris Scott 0b637cadf4 feat(walkthrough): build the change walkthrough in a spawned agent session
Replace the fixed, stop-based walkthrough with an agent-built one. Every
request (Generate, Update, Regenerate, /walkthrough, the multi-run button
and the agent's open_walkthrough) now spawns a separate walkthrough
session. That session reads the diff through a new walkthrough_changes
action, writes one self-contained HTML file into a Manager-owned
directory, and calls publish_walkthrough; the panel renders the file in a
sandboxed frame shared with the inline artifact card and the file browser
HTML preview.

Publication marks the walkthrough ready while execution is tracked
separately, so Stop, the 15-minute limit, polling, refine gating and
interruption when the target session is deleted follow the agent instead
of the first publish. One diff copy is reused per run. Regenerate
interrupts the previous session and removes its output directory.

Walkthrough sessions are kept and listed, with their completion and error
push notifications muted. The stop pipeline, its wire schemas and the
concurrency limiter it used are removed.
2026-10-16 03:58:31 +00:00
Chris Scott be874ee07c Merge pull request #434 from chriswritescode-dev/fix/sse-close-on-pagehide
fix(sse): close the event stream on pagehide and reconnect on bfcache restore
2026-10-15 17:10:39 -04:00
Chris Scott bea9fb4567 Merge pull request #430 from chriswritescode-dev/feat/sandbox-sessions
feat(sandbox): per-session sandbox VMs with resource settings and provider arbitration
2026-10-15 17:10:02 -04:00
Chris Scott e0a1c093c7 fix(sandbox): reject core.worktree and symlinked .git redirects when deriving VM mounts 2026-10-15 16:53:49 -04:00
Chris Scott 2d2921a6c6 fix(sandbox): verify worktree back-links, fail fast on root lookup, and tidy settings saves 2026-10-15 16:53:49 -04:00
Chris Scott 1d001bc43e feat(sandbox): remove session VMs when the sandbox is turned off or idle
Turning a session's sandbox off now removes its microVM and Docker data volume in the background. The idle sweep removes idle session VMs instead of stopping them, covering stopped VMs and VMs left from before a Manager restart, and starts when the Manager boots. Removal is serialized against boots so a command planned during a removal gets a fresh VM.
2026-10-15 16:53:49 -04:00
Chris Scott 493a51f803 fix(sandbox-image): restart dockerd until ready in ocm-dockerd-start
On a freshly created session VM dockerd can exit with "timeout waiting for containerd to start" before its first initialization finishes. Supervise dockerd for up to 180s, relaunching it when it exits, instead of failing after 60s. Takes effect once the sandbox image is republished and its digest is pinned.
2026-10-15 16:53:49 -04:00
Chris Scott 27c673d830 fix(sandbox): recreate orphaned microVMs with --replace
A session VM create that fails partway leaves an orphaned msb sandbox that msb ls omits but every later create rejects as already existing, so the session could never get a VM again. Retry the create once with --replace when msb reports the name already exists.
2026-10-15 16:53:49 -04:00
Chris Scott 052218d5d6 fix(sse): notify listeners of events that cannot be routed to a directory
session.deleted carries only a session id, so after a Manager restart the aggregator could not resolve a directory for sessions created earlier and dropped the event before any listener ran. Deleting such a session leaked its sandbox microVM and volume, its sandbox and permission mode rows, goals, and walkthroughs. Listeners now receive unroutable events with a null directory.
2026-10-15 16:53:49 -04:00
Chris Scott 95a9f6e1ed feat(sandbox): add the session sandbox control to the desktop composer
The sandbox toggle and resources dialog were only reachable from the mobile composer menu. Add SessionSandboxMenu next to the permission toggle on desktop and share the sandbox menu items with the mobile menu.
2026-10-15 16:53:49 -04:00
Chris Scott b21fdf5b94 feat(sandbox): per-session sandbox VMs with resource settings and provider arbitration
- Sandbox new root sessions by default with a per-session composer toggle;
  child sessions inherit their root session's mode (OM-82)
- Run each sandboxed root session in its own microVM that mounts only the
  session's repository, with per-session CPU/memory overrides, Settings
  defaults, idle stop, and a cap on running VMs (OM-89)
- Arbitrate shell sandboxing with other plugins (opencode-forge) through the
  shared opencode.sandbox-arbiter.v1 registry so exactly one provider
  sandboxes each call regardless of load order; fail closed on claim errors
- Throw when another plugin rewrites a pinned sandbox shell setting
- Tag sandboxed tool results with the owning provider and show it in the badge
- Hint the agent to start Docker inside the VM only when OCM owns the session
2026-10-15 16:53:49 -04:00
Chris Scott ccdf75d803 Merge pull request #429 from chriswritescode-dev/feature/mobile-friendly-replies
feat(chat): tailor replies for mobile and text-to-speech
2026-10-15 16:45:28 -04:00
Chris Scott 1902fe5878 Merge pull request #425 from chriswritescode-dev/feat/session-picker-projects-tab
feat(sessions): switch between sessions and projects in the session picker
2026-10-15 16:45:20 -04:00
Chris Scott afc95039a8 fix(sessions): focus picker search after the tab shortcut on touch devices 2026-10-15 16:45:08 -04:00
Chris Scott cd2f6d47ea fix(sse): close the event stream on pagehide and reconnect on bfcache restore 2026-10-15 16:38:39 -04:00
Chris Scott abcecd1c0c fix(sessions): keep search focus when switching picker tabs 2026-10-15 16:36:23 -04:00
Chris Scott ef7ff521bd Merge pull request #433 from chriswritescode-dev/fix/backend-test-isolation
test(backend): isolate sandbox env and bound OpenCode stop in binary-backed tests
2026-10-15 16:00:47 -04:00
Chris Scott 6ee719cf1b fix: apply CodeRabbit auto-fixes 2026-10-15 15:58:21 -04:00
Chris Scott 87f28fbc6d Merge remote-tracking branch 'origin/main' into feat/session-picker-projects-tab
# Conflicts:
#	frontend/src/components/settings/KeyboardShortcuts.tsx
2026-10-15 14:20:32 -04:00
Chris Scott d102cd59a9 test(backend): isolate sandbox env and bound OpenCode stop in binary-backed tests 2026-10-15 17:54:38 +00:00
Chris Scott 1270e4b52e fix(sessions): render picker views inside matching tab panels 2026-10-15 17:32:19 +00:00
Chris Scott a7b961fe30 Merge pull request #431 from chriswritescode-dev/fix/stale-background-activity
fix(session): stop the background activity indicator going stale
2026-10-15 10:54:08 -04:00
Chris Scott 1b2665bd2b fix(background-activity): address review on resync scope and stale subscribe responses
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.
2026-10-15 10:18:06 -04:00
coderabbitai[bot] f80aa1c0e5 docs: document mobile session hooks, plugin test helpers, and viewport detection 2026-10-15 14:06:19 +00:00
Chris Scott 74a2f6fb6e fix(session): follow a moved session's new directory without a reload
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.
2026-10-15 13:25:01 +00:00
Chris Scott 37b4ab89f0 fix(background-activity): reconcile shells for directories subscribed by the stream
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.
2026-10-15 13:00:08 +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 c41eff304c fix(shortcuts): share one shortcut label formatter between settings and the session picker 2026-10-14 01:14:55 -04: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 18102a3ce8 feat(sessions): switch between sessions and projects in the session picker
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.
2026-10-13 10:06:18 -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