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
2025-11-23 22:17:21 -05:00

OpenCode Manager

A self-hosted command center for OpenCode. Sessions, git, terminal, and schedules in one web app, on your desktop and your phone.

opencodemanager.app · Docs · Releases

License Stars Latest Release PRs Welcome

The same OpenCode Manager session on a laptop and a phone

Quick Start

Requires Docker with Compose v2.

curl -fsSL https://opencodemanager.app/install | sh

The installer starts OpenCode Manager on http://localhost:5003 and asks before sharing anything from your machine. Re-run it to update. On first launch you create an admin account.

Requirements, Compose and source installs, and every feature are covered at opencodemanager.app:

Development

This repository is a pnpm workspace: backend/ (Bun + Hono), frontend/ (React + Vite), shared/ (schemas and types) and ocm-cli/ (the ocm CLI).

pnpm install
pnpm dev
pnpm lint
pnpm typecheck
pnpm test

See the Development Guide for setup, scripts, database notes and testing.

License

MIT

Languages
TypeScript 99.5%
Shell 0.3%
CSS 0.1%