Commit Graph
601 Commits
Author SHA1 Message Date
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 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 d7022b5059 feat(walkthrough): use the selected session model for generation 2026-10-10 23:09:36 -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 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 3a370b7a5d feat(workspaces): group multi-run worktrees in the worktrees tab 2026-10-09 16:43:42 -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 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 520d912c11 fix(walkthrough): name the selected source in the no-changes message 2026-10-09 09:27:44 -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 08c03235c8 fix(sessions): include worktree sessions in the session picker 2026-10-08 23:49:09 -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 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 7fedab6815 fix(prompt): drop the command icon from the slash menu
The slash menu prefixed every command with the Command (⌘) glyph, which the leading "/" already conveys and which only consumed horizontal space. Render the kind icon only for kinds that have one, so command rows start at the label while agent, skill and file rows keep theirs.
2026-10-08 16:20:38 -04:00
Chris Scott 79d6ba2f7e fix(commands): load each location's commands instead of trusting the builtin seed
The commands query seeded every new directory key with the builtin commands as initialData. With the app's 10s staleTime, React Query treated that seed as freshly fetched data, so switching to a session in another project never requested that location's commands and the slash menu showed only the builtins until some later invalidation.

Mark the seed as stale with initialDataUpdatedAt: 0 so each directory fetches its commands on mount.
2026-10-08 16:16:51 -04:00
Chris Scott 88b3543dc1 feat(walkthrough): plan-then-explain generation with selectable diff sources 2026-10-08 15:53:49 -04:00
Chris Scott aeea96b466 section 13: Phase 13 — Source picker in the walkthrough panel 2026-10-08 15:53:27 -04:00
Chris Scott d5f56fc061 section 12: Phase 12 — Per-source storage, service and routes 2026-10-08 15:53:27 -04:00
Chris Scott 11c23da67e section 11: Phase 11 — Diff sources: contract and git reader 2026-10-08 15:53:27 -04:00
Chris Scott df1891a52d section 10: Phase 10 — Walkthrough model setting (frontend) 2026-10-08 15:53:27 -04:00
Chris Scott 7ed93743b0 section 8: Phase 8 — Panel shows stops as they finish 2026-10-08 15:53:27 -04:00
Chris Scott 64f8869cca section 7: Phase 7 — Incremental reuse and per-stop retry 2026-10-08 15:53:27 -04:00
Chris Scott 7bf6c35f29 section 2: Phase 2 — Content-hashed hunk ids and stop status 2026-10-08 15:53:26 -04:00
Chris Scott 2996758198 fix(pwa): show a persistent update banner instead of a toast
The service worker update notice was a dismissible toast that was easy to miss, leaving users on a stale build. Render a persistent status bar above the app shell with an explicit Reload action, and switch the shell to a flex column so pages size against the shell height (h-full) rather than the viewport (h-dvh), keeping the layout correct while the banner is visible.
2026-10-08 15:49:13 -04:00
Chris Scott e7dc106af7 fix(commands): reload location catalogs on stream reconnect
OpenCode returns an empty command list for a location until it has
loaded that location's config, then emits a command.updated event. When
the browser stream or the upstream SSE connection is reconnecting, that
event is missed and nothing reloads the list, leaving the slash menu
stuck on the builtin commands until the OpenCode server is restarted.

Reload commands, agents and skills on both a browser stream reconnect
and an upstream resync, and handle skill.updated so skill changes
refresh like agent and command changes already do.
2026-10-08 15:27:30 -04:00
Chris Scott 7bc71d7123 fix(sessions): settle session before revert stage and notify active-session delete eagerly 2026-10-08 14:36:26 -04:00
Chris Scott 2d14972fad fix(sessions): address PR #403 review findings
- fetch picker sessions only while the dialog is open
- list all-projects sessions with one request per page
- block infinite-scroll paging while a search is pending
- memoize picker rows with stable callbacks
- remove deleted sessions from list caches instead of refetching
- keep the repo tab when the open session is deleted
- reuse useSessionSearch in the sidebar session tree
- drop dead activeSessionID/isActive and share delete, session-key and repo-map helpers
- move usePersistentBoolean to its own hook
2026-10-08 14:36:26 -04:00
Chris Scott 85288d6393 feat(sessions): TUI-style session picker with scope toggle and delete 2026-10-08 14:36:26 -04:00
Chris Scott f13463f82a feat(sessions): type-to-filter and keyboard navigation in the sessions dialog 2026-10-08 14:36:26 -04:00
Chris Scott e89b782fef feat(shortcuts): add favorite model cycle shortcut (Ctrl+R) 2026-10-08 14:26:41 -04:00
Chris Scott 994a8b82e8 feat(shortcuts): rework shortcut bindings, focus restore, and input guards
Resolve effective bindings from stored prefs plus defaults with leader/direct collision handling and default leader Ctrl+X; let direct actions pass through in terminals and suppress abort while an overlay is open. Add half-page scroll disengage, verified overlay focus restore, and consolidate prompt reset.
2026-10-08 12:40:04 -04:00
Chris Scott 7e8443f54f feat(shortcuts): add half-page message scroll shortcuts 2026-10-08 11:50:37 -04:00
Chris Scott 50e249d5d2 feat(walkthrough): open on an overview page and page through stops 2026-10-08 10:47:52 -04:00
Chris Scott b06de60f6b feat(ui): app-wide keyboard shortcuts with TUI keybind import 2026-10-08 10:47:52 -04:00
Chris Scott 09630a7794 feat(walkthrough): dock change walkthrough in the desktop tool panel
Share walkthrough state through a context provider so navigation and regenerate controls render in the panel chrome, generate walkthroughs with the session's selected model, and dedupe a favorite that is also the default model in model sections.
2026-10-08 00:57:29 -04:00
Chris Scott a9331cb484 refactor(mobile): group MoreDrawer items and remove command/file mention entries 2026-10-08 00:18:01 -04:00
Chris Scott 485ab940aa feat(ui): dock repo and session tools in a desktop side panel
Add a docked desktop tool panel with an icon rail, driven by the shared panel URL param, and keep the mobile dialogs and drawers. Extract dialog bodies into reusable content components, rename the walkthrough dialog to a sheet, and make walkthrough generation asynchronous with client polling.
2026-10-07 23:58:56 -04:00
Chris Scott bdbcc60716 Merge pull request #399 from chriswritescode-dev/fix/mobile-header-actions
fix(mobile): tighten repo header actions and hide empty reports inbox
2026-10-07 23:10:43 -04:00
Chris Scott fbdc14b408 fix(mobile): tighten repo header actions and hide empty reports inbox
Group the back button with the title so the repo name truncates instead
of colliding with actions, unify the mobile header buttons to 40px
ghost icons, collapse the reports inbox when nothing is unread, and let
Header.Title truncate on every page.
2026-10-08 03:03:29 +00:00
Chris Scott 4553af41dc fix(composer): stop the mobile caret misplacing on command mode toggles
The composer frame kept `opacity-95` and `backdrop-blur-md`, so it stayed a
composited layer with the textarea inside it. Repainting that layer whenever
command or mention mode toggled (frame class change, mode badge mount, takeover
list mount, z-index change) still made iOS draw the caret at a stale position
below the typed text, even after the transition was removed.

Render the frosted background as a `before:` pseudo-element and drop the
compositing from the frame, so the textarea's ancestor is never a layer that
repaints on mode changes. Add a regression test pinning the invariant.
2026-10-07 22:01:53 -04:00
Chris Scott db08aca1c7 fix(composer): keep the mobile caret aligned when command mode toggles
The composer frame used transition-all, so entering or leaving command/mention mode animated its border, ring and shadow. While that transition ran iOS Safari painted the textarea caret in the wrong place and left it there, dropping the caret below the typed text once the command list closed. Drop the transition so the frame changes in a single frame.
2026-10-07 21:37:10 -04:00