Commit Graph
1035 Commits
Author SHA1 Message Date
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
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 229b16cd86 section 9: Phase 9 — Walkthrough model preference (backend) 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 24b7af216b section 6: Phase 6 — Explain stops in parallel with progressive saves 2026-10-08 15:53:27 -04:00
Chris Scott 76fb634b66 section 5: Phase 5 — Outline and plan prompt (pure functions) 2026-10-08 15:53:27 -04:00
Chris Scott daf9a96a92 section 4: Phase 4 — One retry per model call 2026-10-08 15:53:26 -04:00
Chris Scott 583a99ffb8 section 3: Phase 3 — Mechanical changes stop 2026-10-08 15:53:26 -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 4b5f76f416 section 1: Phase 1 — Stop recomputing the session diff on every poll 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 b16f1f8944 fix(commands): broadcast location catalog events to all stream clients
Location-scoped command, agent and skill catalog events were only delivered to clients subscribed to the originating directory, so a client attached to another location never saw a catalog change and its slash menu stayed on the builtin commands. Route command.updated, agent.updated and skill.updated through the resolved-event broadcast so every connected client receives them.
2026-10-08 15:49:11 -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 7f891f43cd Merge pull request #403 from chriswritescode-dev/feat/sessions-dialog-tui-parity
feat(sessions): TUI-style session picker dialog with search, scope toggle, and delete
2026-10-08 14:42:11 -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 b18e4f13b3 Merge pull request #400 from chriswritescode-dev/feat/desktop-tool-panel
feat(ui): dock repo and session tools in a desktop side panel
2026-10-08 00:59:45 -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 cbdaf164d9 fix(generate-text): resolve default model from global config catalog 2026-10-08 00:39:09 -04:00