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.
- 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.
/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.
Resolve ChangesWalkthroughSheet conflicts by keeping main's overview/paging model and the branch's source picker, per-stop status, and mechanical hunks.
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.
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.
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.
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.
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.
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.
- 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
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.
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.