Commit Graph
1067 Commits
Author SHA1 Message Date
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 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
Chris Scott 4abbfef77f Merge pull request #414 from chriswritescode-dev/chore/release-1.0.0
chore(release): bump manager to 1.0.0 and refresh README
v1.0.0
2026-10-09 11:57:24 -04:00
Chris Scott ea27f481ab chore(release): bump manager to 1.0.0 and refresh README 2026-10-09 11:48:25 -04:00
Chris Scott 458f3a4b05 Merge pull request #413 from chriswritescode-dev/fix/model-catalog-refresh
fix(models): reload the model catalog on reconnect and broadcast its events
2026-10-09 11:44:24 -04:00
Chris Scott 9c32ba2038 fix(models): reload the model catalog on reconnect and broadcast its events
Model pickers without a location, such as the goal auditor and walkthrough model settings, could stay stuck on an empty model list. OpenCode's model and provider catalog events were only delivered to clients subscribed to the originating directory, and the provider catalog was not reloaded on a browser stream reconnect or upstream resync, so a list cached empty while OpenCode was loading or restarting never refreshed.

Route model.updated, provider.updated and integration.updated through the resolved-event broadcast like the command, agent and skill catalogs, and reload the provider catalog on reconnect and resync alongside them.
2026-10-09 11:43:48 -04:00
Chris Scott 4eec94b74c Merge pull request #412 from chriswritescode-dev/feat/agent-open-walkthrough
feat(walkthrough): open the change walkthrough from an agent tool call
2026-10-09 11:27:19 -04:00
Chris Scott c497df5161 fix(walkthrough): address review of agent-opened walkthrough
- Wait for the model catalog once per walkthrough generation instead of before every model call
- Report open_walkthrough as requested, not opened, and drop its unused metadata
- Share the ocm tool and action names through @opencode-manager/shared
- Remove the unused source-request nonce and duplicate session check
- Scan only new messages when auto-opening the walkthrough
- Assert the request action cannot reach the internal change-walkthroughs route
2026-10-09 11:25:26 -04:00
Chris Scott aa1da8d608 feat(walkthrough): open the change walkthrough from an agent tool call 2026-10-09 11:03:21 -04:00
Chris Scott 3eb0b02203 Use agent icon for generate commit message button 2026-10-09 09:46:24 -04:00
Chris Scott fa0440fd66 Merge pull request #411 from chriswritescode-dev/fix/walkthrough-no-changes-source-message
fix(walkthrough): name the selected source in the no-changes message
2026-10-09 09:28:52 -04:00
Chris Scott 520d912c11 fix(walkthrough): name the selected source in the no-changes message 2026-10-09 09:27:44 -04:00
Chris Scott 4180265306 Merge pull request #410 from chriswritescode-dev/fix/session-picker-project-scope
fix(sessions): scope the session picker to the OpenCode project across worktrees
2026-10-09 00:17:38 -04:00
Chris Scott e40eca2838 fix(sessions): scope the session picker to the OpenCode project across worktrees 2026-10-09 00:17:24 -04:00
Chris Scott 04cb3f8291 Merge pull request #408 from chriswritescode-dev/feat/ocm-move-worktree
feat(ocm): move sessions into OpenCode worktrees instead of replacing the Manager checkout
2026-10-09 00:04:34 -04:00
Chris Scott a3af0866b9 fix(ocm): apply working-tree changes when moving into a new worktree
Moving a session into a new worktree uploaded only the git bundle, so
staged, unstaged and untracked changes were dropped, unlike moves into
the main checkout or an existing worktree.

The CLI now sends the working-tree patch with the worktree-create request
behind an X-OCM-Patch-Bytes header, and the backend applies it right after
importing the bundle and before worktree setup runs, so setup sees the
edits. A patch that fails to apply removes the new worktree instead of
leaving it half-created.
2026-10-09 00:04:00 -04:00
Chris Scott 474724a68b Merge pull request #409 from chriswritescode-dev/fix/session-picker-worktree-sessions
fix(sessions): include worktree sessions in the session picker
2026-10-08 23:49:24 -04:00
Chris Scott 08c03235c8 fix(sessions): include worktree sessions in the session picker 2026-10-08 23:49:09 -04:00
Chris Scott 67f70e9635 fix(ocm): make /ocm-move worktree moves safe and round-trippable
- Answer the old /mirror/target routes with a 410 upgrade message and
  serve the lookup at GET /mirror/checkouts; detect older Managers via
  the token probe (MANAGER_FEATURE_MISSING).
- Create the move worktree and import the bundle in one call; worktree
  setup runs after the import and the worktree is removed on failure.
- Never rewind a server branch: suffix the new worktree branch when the
  server branch has commits the local branch lacks, and skip both the
  source and target branch when updating refs.
- Reuse clean <branch>-ocm[-N] worktrees and legacy worktree repo rows
  instead of creating new ones on every move.
- Let ocm push/pull target the worktree on the local branch via a
  directory parameter on the mirror read routes; no tarball fallback
  for worktrees.
- Share one sibling loader (listRepoSiblings), validate branch names,
  compare canonical paths in isDirectoryInUse, and cut redundant git
  work in the checkouts lookup and the CLI destination choice.
2026-10-08 23:23:00 -04:00
Chris Scott d9843a0ff7 Merge pull request #407 from chriswritescode-dev/feat/walkthrough-plan-explain
feat(walkthrough): plan-then-explain generation with selectable diff sources
2026-10-08 22:08:47 -04:00
Chris Scott bd7c3e3fef feat(ocm): move sessions into OpenCode worktrees instead of replacing the Manager checkout
/ocm-move previously failed when the Manager checkout was dirty, behind, or on
another branch. Choose the destination instead: replace in place only when the
checkout is on the local branch, clean, and has nothing the local branch lacks;
otherwise reuse an existing OpenCode worktree on that branch when it is equally
safe; otherwise create a new OpenCode worktree through the same service the UI
and multi-runs use, so it appears in the repo's worktree lists. The new
worktree's branch is the local branch when free, else <branch>-ocm, -ocm-2 and
so on. Server work is never discarded, the confirmation states the destination
and why the main checkout was skipped, and a detached HEAD is refused.

The mirror push endpoints (bundle upload and patch) accept a worktree
directory, rejected unless it belongs to the repo, and a new endpoint creates
the worktree. The old <repo>-<branch> path that registered a plain git worktree
as a separate Manager repo is removed.
2026-10-08 20:47:02 -04:00
Chris Scott 0d65edfa44 feat(walkthrough): move source picker into the panel header 2026-10-08 18:11:37 -04:00
Chris Scott b01d3ab6db Merge branch 'main' into feat/walkthrough-plan-explain
Resolve ChangesWalkthroughSheet conflicts by keeping main's overview/paging model and the branch's source picker, per-stop status, and mechanical hunks.
2026-10-08 17:36:07 -04:00
Chris Scott 4119fec60a fix: apply CodeRabbit auto-fixes 2026-10-08 16:47:24 -04:00
Chris Scott ae0dff6e84 Merge pull request #402 from chriswritescode-dev/feat/walkthrough-overview-nav
feat(walkthrough): open on an overview page and page through stops
2026-10-08 16:30:23 -04:00
Chris Scott b9345e53b6 fix(walkthrough): return to the top of the overview on regeneration 2026-10-08 16:30:06 -04:00
Chris Scott bc9676606b Merge pull request #405 from chriswritescode-dev/fix/pwa-update-banner
fix(pwa): show a persistent update banner instead of a toast
2026-10-08 16:27:26 -04:00
Chris Scott 1ce5a9ba2d fix(pwa): keep the update banner and auth forms usable when space is tight
Addresses two CodeRabbit findings on the update banner change.

The banner row could not fit the icon, message and Reload button on a narrow viewport at large text zoom, and the root clips overflow, so the button could be unreachable. Let the row wrap; the button drops to its own centered line only when the content does not fit.

The login, register and setup containers centred their forms with no scrolling, so once the banner reduced the shell height a tall form was clipped and its submit button could not be reached. Make the container the scroll area and centre the form wrapper with min-h-full, matching the pattern already used in GlobalSchedules and PromptsTab.
2026-10-08 16:27:14 -04:00
Chris Scott fc83b7dfa3 Merge pull request #406 from chriswritescode-dev/fix/command-catalog-refresh
fix(commands): broadcast location catalog events to all stream clients
2026-10-08 16:23:10 -04:00