Commit Graph
966 Commits
Author SHA1 Message Date
Chris Scott 2d7d9d661d fix(ocm): keep the local switch reachable and correct older-Manager status docs 2026-10-07 20:00:20 -04:00
Chris Scott f67a48b728 feat(tui): fuse all started results of a run from the run list 2026-10-07 19:47:02 -04:00
Chris Scott 588bf7b12e refactor(tui): unify dialog row styling with shared rowColors helper 2026-10-07 19:33:57 -04:00
Chris Scott 1e852c935a feat(tui): add session goals, multi-runs and server switching to the ocm TUI
Expose session goals and multi-runs on the Manager internal API, add shared goal label formatters, and add the /goal, /multirun and /ocm commands with their dialogs, Manager auth and API helpers, and tests.
2026-10-07 19:01:52 -04:00
Chris Scott a9a1fd8d5a section 7: Phase 7: Browse recent multi-runs: open, discard, and fuse f 2026-10-07 18:33:03 -04:00
Chris Scott 0aaa2bd3d6 section 6: Phase 6: Launch a multi-run from the TUI (/multirun) 2026-10-07 18:33:03 -04:00
Chris Scott e63f756c32 section 5: Phase 5: Session goals in the TUI (/goal, composer status 2026-10-07 18:33:03 -04:00
Chris Scott 87e55372c0 section 4: Phase 4: Prompt and multi-select dialog helpers 2026-10-07 18:33:03 -04:00
Chris Scott a99e69f653 section 3: Phase 3: Shared Manager auth helper and Manager API client f 2026-10-07 18:33:03 -04:00
Chris Scott b316cb960c section 2: Phase 2: Attach env carries the Manager URL and repo id 2026-10-07 18:33:03 -04:00
Chris Scott e8548b1e07 section 1: Phase 1: Expose session goals and multi-runs on the internal 2026-10-07 18:33:03 -04:00
Chris Scott 704f81884b Merge pull request #393 from chriswritescode-dev/fix/assistant-mobile-files-tab
fix(navigation): scope the mobile Files tab to the assistant workspace
2026-10-07 17:12:31 -04:00
Chris Scott e133d37842 fix(navigation): scope the mobile Files tab to the assistant workspace 2026-10-07 17:09:40 -04:00
Chris Scott 0045a74716 Merge pull request #392 from chriswritescode-dev/feat/group-tool-calls
feat(chat): group exploration tool calls
2026-10-07 16:52:49 -04:00
Chris Scott 02d2e89bca feat(chat): group exploration tool calls
Collapse consecutive read, search and fetch tool calls in the chat transcript into one expandable summary line, matching the OpenCode TUI. Adds a groupToolCalls preference (default on) with a Settings toggle.
2026-10-07 16:40:38 -04:00
Chris Scott 81dd00e89f Merge pull request #391 from chriswritescode-dev/feat/multi-run-sheet
feat(multi-run): add a runs sheet with inline fusion
2026-10-07 13:13:01 -04:00
Chris Scott ec96ac0d55 feat(multi-run): always run fusions in a new worktree 2026-10-07 13:12:25 -04:00
Chris Scott 30783c49ec fix(multi-run): deny defaults on fusion session permissions 2026-10-07 12:07:56 -04:00
Chris Scott 00b38552bf fix(multi-run): log fusion permission-mode failures separately
applyDefaultMode ran inside the launch try/catch, so a permission-mode
failure was swallowed by the launch-failure handler instead of being
logged, and any later post-launch step was skipped. Move it into its own
try/catch that logs with the session id, leaving the fusion started.
2026-10-07 11:53:06 -04:00
Chris Scott f2e06abb62 feat(multi-run): add a runs sheet with inline fusion
Replace the centered Multi-run dialog and the stacked Fusion dialog with one
right-side runs sheet, turn fusion into an inline selection mode, and
pre-approve each selected source workspace for the fusion session.

- Move MultiRunDialog into a SideDrawer with Runs / New run tabs; add
  MultiRunCard, FusionComposer and an optimistic starting fusion.
- Add buildFusionSourcePermissionRuleset (external_directory allow, edit deny)
  and thread permissions through SessionLauncher.launch.
- Apply the default permission mode to fusion sessions after launch.
- Let ModelCombobox and BranchCombobox take a listClassName; make SideDrawer
  ignore an Escape already handled by a nested layer.
2026-10-07 11:36:36 -04:00
Chris Scott b0361cd98b Merge pull request #390 from chriswritescode-dev/fix/expired-permission-requests
fix(permissions): clear expired permission requests
2026-10-07 09:49:01 -04:00
Chris Scott fa0cde5d51 test(permissions): lock the declared error tag as FetchError.code 2026-10-07 09:43:37 -04:00
Chris Scott 041ca200f1 fix(permissions): unify expired pending-action handling 2026-10-07 09:22:50 -04:00
Chris Scott 2b12fc34cb style(worktree): drop the source badge corner radius 2026-10-07 09:05:33 -04:00
Chris Scott 83e8650949 fix(permissions): clear expired permission requests 2026-10-07 09:05:21 -04:00
Chris Scott bf9903862b Merge pull request #389 from chriswritescode-dev/fix/ocm-worktree-sessions
fix(ocm): scope the repo proxy to the requested worktree
2026-10-06 23:30:38 -04:00
Chris Scott 4cc9785948 fix(ocm): pass workspace directories through the repo proxy
Keep any directory inside the Manager workspace (repos, OpenCode and
schedule worktrees) instead of forcing the bound repo, so /projects and
worktree session lists work. Only remap a directory the client sent on the
session list, and stop adding a directory filter to lists that carry none.
2026-10-06 23:02:56 -04:00
Chris Scott f952a99b37 fix(ocm): scope the repo proxy to the requested worktree 2026-10-06 22:47:43 -04:00
Chris Scott f4d2221d46 fix(sidebar): give sessions the spare height and cap the menu section
Sessions now fills the remaining sidebar height while the Menu section is
capped at 40% and scrolls internally. Menu rows use a denser variant of
SidebarItem, cutting each row from 44px to 32px.
2026-10-06 21:30:47 -04:00
Chris Scott a81c0becfa Merge pull request #387 from chriswritescode-dev/refactor/unify-model-picker
refactor: unify model selection with the TUI
2026-10-06 21:26:12 -04:00
Chris Scott 65b72e55ae refactor: unify model selection with the TUI
Align the manager's model selection with the OpenCode TUI: one
model.json-backed preference store, one provider catalog, one ordering
and default-ownership rule, and one set of availability, ref-formatting
and variant helpers shared across chat, schedules, agents and the goal
auditor.

- Add a shared TUI-compatible model-preference module and make the
  backend model.json store match its format.
- Consolidate the frontend provider catalog, availability check, model
  ref formatter and variant persistence into single owners.
- Drive chat, schedule, agent and goal-auditor model lists from a shared
  useModelSections hook and buildModelSections, following TUI ordering.
- Extract a shared ModelCombobox with a taller list, and list models the
  TUI way in ModelQuickSelect.
- Add a shared isRecord util and model-selection comparison helpers.
2026-10-06 20:44:27 -04:00
Chris Scott 3d143568c1 fix: sanitize rendered markdown HTML
Add a shared rehype pipeline (rehype-raw -> rehype-sanitize -> rehype-highlight) to every markdown renderer so scripts, frames and event handlers are stripped from model output and repository files while safe HTML and highlighting survive.

Also delete change walkthroughs when their session is deleted (including in-flight generation), build schedule model options from default/favorite/recent state, and include 127.0.0.1 origins in the default trusted origins.
2026-10-06 19:27:49 -04:00
Chris Scott b36d412ca2 feat: add multi-run fusion and session change walkthroughs
Fuse two to five completed multi-run entries into one synthesized session,
and explain a session's diff as ordered walkthrough stops cached by diff hash.

- Multi-run fusion service, persistence, routes and FuseRunDialog
- Change walkthrough service, persistence, routes and ChangesWalkthroughDialog
- Shared unified-diff parser plus bounded text generation, json-extract,
  text-truncate and service-error helpers
2026-10-06 15:27:14 -04:00
Chris Scott 90c6ccf236 Merge pull request #385 from chriswritescode-dev/feat/schedule-workspace-modes
feat(schedules): add workspace modes and worktree management
2026-10-06 11:24:32 -04:00
Chris Scott 7612ee31e5 feat(schedules): switch repository from the schedules header
- add ScheduleRepoSwitcher: the header title opens a picker with All
  repos and every repository, on desktop (dropdown) and mobile (sheet
  with search)
- wire it into the per-repo schedules header and the all-repos header so
  the scope can be changed from either page
- mark the current scope active and navigate on selection
2026-10-06 11:21:51 -04:00
Chris Scott 8ac0f31758 fix(schedules): render schedule-only worktrees and fix job detail mobile layout
- mount the worktrees session list for schedule-only repos so kept
  worktrees are visible and expandable
- keep worktree groups mounted while sessions load so schedule group
  expansion is not reset
- constrain the job detail grid on mobile so the worktree path no longer
  overflows and clips
- label the icon-only Remove all worktrees button
- avoid invalid p-in-p nesting in the clear history description
2026-10-06 11:15:21 -04:00
Chris Scott 26ff08d891 feat(schedules): require worktrees and choose commit or discard on removal
Drop the repo workspace mode so every scheduled run executes in a
worktree. Clearing run history or deleting a run now asks whether to
commit pending changes and keep the run branches, or force-remove the
worktrees and delete the branches.

Sibling repo listings carry the schedule name, and the repo detail
workspace view subscribes to schedule worktree sessions only while
expanded. Also unify schedule worktree path/branch helpers, refuse a run
branch already checked out elsewhere, and clean up terminals when a
worktree is removed.
2026-10-06 11:02:29 -04:00
Chris Scott 6ec3f3bd91 feat(schedules): add workspace modes and worktree management 2026-10-06 10:16:34 -04:00
Chris Scott c06075651d feat(sidebar): match repo names and debounce session search
Session search now also matches repository names, showing a matching repo's recent sessions. Search runs automatically after a short debounce instead of requiring Enter, and emptying the input restores the full list immediately.
2026-10-05 15:32:20 -04:00
Chris Scott 1efd1c6a3b docs: sharpen README tagline 2026-10-05 15:19:17 -04:00
Chris Scott 54a338a0ff chore: bump version to 0.21.0 v0.21.0 2026-10-05 15:16:21 -04:00
Chris Scott 7ccf1df717 Merge pull request #384 from chriswritescode-dev/feat/one-line-installer
feat(docker): one-line installer and release Compose file
2026-10-05 15:14:26 -04:00
Chris Scott 27996ed12d feat(docker): one-line installer and release Compose file
Add scripts/install.sh, a one-line installer that checks Docker and
Compose v2, installs into ~/opencode-manager (override with OCM_DIR),
prompts for an optional OpenCode config import, a repos folder mount and
LAN sign-in, then pulls and starts the published image.

- Add docker-compose.release.yml, which runs the published image under
  the Compose project name ocm; a checkout's docker-compose.yml keeps
  building from source
- Generate AUTH_SECRET on first container start and persist it to the
  data volume when unset, so Compose installs need no .env
- Refuse to install over a source checkout or beside an existing
  install, so volumes and the auth secret are not silently replaced
- Test the installer, entrypoint secret handling, and the two Compose
  files staying in step
2026-10-05 15:07:23 -04:00
Chris Scott 87636bf1ff Merge pull request #382 from chriswritescode-dev/feat/ocm-clone-repo
feat(ocm): let the assistant clone repos through POST /repos
2026-10-05 15:00:44 -04:00
Chris Scott 5138cd6a76 docs(ocm): note cloning status in repo clone response 2026-10-05 15:00:00 -04:00
Chris Scott c9be507f4e feat(ocm): let the assistant clone repos through POST /repos 2026-10-05 17:28:18 +00:00
Chris Scott 33be4afeb7 test(frontend): read theme source files with ?raw imports instead of node builtins 2026-10-05 17:15:21 +00:00
Chris Scott 9b405325c0 test(backend): allow admin sign-in test time for scrypt under coverage 2026-10-05 17:08:57 +00:00
Chris Scott cead35fcab test(backend): pin MSB_PATH in vitest env so sandbox tests ignore the host value 2026-10-05 17:03:34 +00:00
Chris Scott 5738467dee fix(frontend): query combobox options by role in preview and model tests 2026-10-05 00:40:06 -04:00