540 Commits
Author SHA1 Message Date
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 5738467dee fix(frontend): query combobox options by role in preview and model tests 2026-10-05 00:40:06 -04:00
Chris Scott c7de6629bf fix(pwa): add maskable icons and correct branding metadata 2026-10-04 19:04:23 -04:00
Chris Scott ae4ce0e81c docs: move documentation to hosted site and refresh branding
Remove the in-repo MkDocs site, its deploy workflow, and the tests that
asserted its content. Repoint README, CONTRIBUTING, and .env.example links
to opencodemanager.app/docs, and update logos, favicon, PWA icons, manifest,
and image alt text to the OpenCode Manager branding.
2026-10-04 18:19:35 -04:00
Chris Scott 27860224dc refactor(ui): unify branch pickers into searchable BranchCombobox
Rename BaseBranchSelect to BranchCombobox and rebuild it on the shared
Combobox with an include filter, configurable remote prefixing, and
clearing. Add a useRepoBranches hook and migrate the worktree, integrate,
multi-run, and schedule dialogs onto it. Expose id and ARIA listbox/option
roles from Combobox, and add bg-background to the form prompt panels.
2026-10-04 16:34:22 -04:00
Chris Scott 092add1eb1 feat(schedules): add read aloud playback to scheduled run reports 2026-10-04 12:42:31 -04:00
Chris Scott 03500affe8 Fix documentation drift and phone layouts
- Correct stale UI labels, flows, endpoints, and env var docs across the docs site
- Refresh git and chat screenshots and drop unused images
- Fit source control tabs and commit rows on phone widths; fix terminal filler color
2026-10-04 11:32:53 -04:00
Chris Scott d767fa2c93 fix(terminal): enlarge mobile key bar keys and keep dialog above keyboard 2026-10-04 09:32:34 -04:00
Chris Scott 62e36eb3b2 feat(ui): preview port menu, terminal auto-start, and project actions tabs 2026-10-04 01:34:57 -04:00
Chris Scott cf9fa61118 Merge forge/terminal-dev-loop integration (b13707b5b) into beta
Bring the terminal, project actions and dev server preview merge (OM-17, OM-18, OM-19) onto beta after 4a2e695ec. No conflicts; the merged CreateWorktreeDialog keeps BaseBranchSelect with origin/ remote bases and the worktree setup terminal navigation.
2026-10-04 00:10:17 -04:00
Chris Scott 4a2e695ec2 feat(frontend): add mobile composer tools menu and base branch select 2026-10-04 00:05:53 -04:00
Chris Scott b13707b5b3 Merge forge/terminal-dev-loop into beta
feat: integrated terminal, project actions and dev server preview (OM-17, OM-18, OM-19)

Integration with #380 and #379:
- Adopt the git-config identity model: drop the branch's identity stubs
  (getShellEnv, getAssignedGitIdentityEnv, repo identity ids, duplicate
  createGitService and getMainCheckoutPath); terminals receive only the
  GitHub token env and take their commit identity from git config.
- Add RepoWorkspaceService as the single owner of OpenCode workspace
  side effects: worktree setup commands on create and terminal cleanup on
  remove, used by the workspace routes, the session launcher (ocm tool and
  multi-run) and multi-run discard, with one worktree-sibling matcher.
- Run repo-delete terminal cleanup inside the worktree branch deletion
  flow.
- Combine the CreateWorktreeDialog tests and update docs for the identity
  model and setup command coverage.
2026-10-03 23:50:10 -04:00
Chris Scott fac23b1f1a Merge pull request #379 review fixes from feat/agent-orchestration into beta 2026-10-03 22:51:11 -04:00
Chris Scott a1641bd8a9 Merge pull request #380 review fixes from feat/git-workflow-core into beta 2026-10-03 22:51:11 -04:00
Chris Scott 2072fae1b6 fix(sessions): prevent duplicate goal starts and lost autosave updates
- Block prompt submission while an armed goal is starting.
- Launch multi-runs with mutate so a failed launch is not an
  unhandled rejection.
- Save changed session automation fields in one update so concurrent
  autosaves cannot overwrite each other.
2026-10-03 22:51:03 -04:00
Chris Scott 84e14c4600 fix(git): guard remote branch deletion and skip applied cherry-picks
- Delete a remote branch only when the upstream (read from
  branch.<name>.remote and branch.<name>.merge) has the same name;
  otherwise refuse with REMOTE_BRANCH_MISMATCH before deleting anything.
- Without force, require the branch to be merged into HEAD before
  deleting its remote branch, so pushed unmerged commits are not lost.
- Cherry-pick integration selects only commits not yet applied to the
  target and skips merge commits.
- Create worktrees from a remote-only base as origin/<branch>.
- Show the upstream name in the branch delete dialog and update the
  worktree delete option text and git docs.
2026-10-03 22:51:03 -04:00
Chris Scott 8dec410c63 Merge pull request #379 from feat/agent-orchestration into beta
feat(sessions): add permission modes, session goals, ocm session tool and multi-run

Resolve the duplicate parseJsonBody added by both #380 and #379 into one
helper: #379's result shape and allowEmpty option, with the first
validation message as the error and the issues as details. Update the
repo-git callers, affected route tests and the internal API docs.
2026-10-03 22:42:53 -04:00
Chris Scott da3821b0d4 Merge pull request #380 from feat/git-workflow-core into beta
feat(git): extend source control with worktrees, stashes, conflicts and identities
2026-10-03 22:20:56 -04:00
Chris Scott 53238a6324 feat(git): extend source control with worktrees, stashes, conflicts and identities
- Create a worktree from a new or existing branch
- Integrate a worktree branch into a target branch by merge commit or cherry-pick, with continue/abort on conflicts
- Delete a worktree with keep, delete-local, or delete-local-and-remote branch options, using safe branch deletion for unmerged branches
- Add a stash tab (list, push, apply, pop, drop) shared across a repository and its worktrees
- Rename and delete branches, optionally deleting the remote branch and updating scheduled base branches
- Detect in-progress merge, rebase, cherry-pick and revert operations and hand conflicts to an agent session
- Generate commit messages from staged changes with the default model
- Add a default git identity and saved per-repository identities written to git config
- Unify git error mapping behind a typed error and one route helper; consolidate git mutations and cache invalidation
- Update repository docs
2026-10-03 21:59:00 -04:00
Chris Scott 96e02e9646 feat(sessions): add permission modes, session goals, ocm session tool and multi-run
Per-session permission modes: each root session runs in ask or auto.
Auto answers each permission request once from the backend, child
sessions inherit their root's mode, forks copy the source's mode, and
scheduled runs and agent-created sessions stay on ask. A lock reason
reports why a session's mode cannot change.

Session goals: arm a goal in the composer and a backend audit loop keeps
the session working until an auditor model returns done or blocked. The
loop is bounded by continuation and token limits, survives restarts, and
pushes an outcome notification. Goals cannot start on scheduled-run or
child sessions.

ocm session tool: allow-listed internal routes to list, create, follow up
on, read replies from, and fork sessions. Created and forked sessions are
pinned to ask, listing covers a repo's workspaces, and replies wait for
the session to settle with a capped response.

Multi-run: launch one prompt on up to five models, optionally each in its
own OpenCode workspace, with per-entry status and discard.

Also add the shared owners this group needed (session launcher, session
reply, workspace create/remove, multi-run storage) and update the feature
docs.
2026-10-03 21:16:05 -04:00
Chris Scott 2af2577af8 loop: agent-orchestration completed after 23 iterations 2026-10-03 11:41:44 -04:00
Chris Scott 444a43aa1d section 13: Phase 13: Multi-run launcher and run groups in the repo page 2026-10-03 11:03:06 -04:00
Chris Scott 8cd00e1a8a section 8: Phase 8: Goal mode in the composer, goal status bar and goal 2026-10-03 10:29:46 -04:00
Chris Scott c60a9b35f2 fix(terminal-dev-loop): address branch review findings
Security:
- Reject same-site and cross-site state-changing requests on cookie-authenticated routes unless the origin is trusted
- Drop Manager and ocm_preview Set-Cookie headers from preview responses
- Show and hash the full executable content of .ocm/project.json at trust time
- Restrict action URLs to http(s) and refuse symlinked repo config paths
- Keep the preview start redirect on the gateway origin

Lifecycle:
- Stop terminals in OpenCode workspace siblings when a repo is deleted
- Report preview as unavailable instead of crashing when the gateway port cannot be bound

Performance:
- Skip branch lookups when validating terminal and project-config directories
- Stop the /proc scan once all listening sockets are mapped and pause port polling while a preview is open
- Close slow WebSocket clients with 1013 so they reconnect with replay
- Lazy-load the xterm terminal view and skip unchanged resize requests
- Request uncompressed responses from preview targets

Cleanup:
- Share one repo directory resolver, trusted-origins parser, cookie prefix, WebSocket frame forwarder, header filter, icon map and dialog-param helper
- Remove unused props, options and exports

Docs: update terminal, preview, project actions, sandboxing, internal API and environment pages
2026-10-03 10:00:33 -04:00
Chris Scott dd4db97c0b section 4: Phase 4: Permission mode toggle in the composer and default 2026-10-03 09:26:33 -04:00
Chris Scott 33799e0433 fix(schedules): open repo session for finished worktree runs using run branch
Teardown clears worktree_path when a run finishes, so the previous check never matched and Open session navigated to the original session whose worktree directory had been removed. run_branch persists and reliably identifies worktree runs.
2026-10-03 09:17:51 -04:00
Chris Scott 16b91ccf02 loop: terminal-dev-loop completed after 30 iterations 2026-10-03 04:29:40 -04:00
Chris Scott a383e57bc5 section 16: Phase 16: Documentation, container ports and full repository checks 2026-10-03 04:07:44 -04:00
Chris Scott 81a9f0c8ef section 9: Phase 9: Project actions settings dialog 2026-10-03 02:32:44 -04:00
Chris Scott c320e2ac7d section 5: Phase 5: Terminal panel, navigation and mobile key bar 2026-10-03 01:40:39 -04:00
Chris Scott dc7cd2382f section 4: Phase 4: Frontend terminal client and xterm view 2026-10-03 01:24:03 -04:00
Chris Scott 13c29c635e section 3: Phase 3: Terminal WebSocket bridge 2026-10-03 01:16:24 -04:00
Chris Scott 9ae48d8a98 fix(schedules): let drawer content scroll under the safe area and add tab bar spacing 2026-10-02 21:34:06 -04:00
Chris Scott 6a5f8926c1 fix(schedules): apply mobile tabbar padding to scrollable panels 2026-10-02 21:03:39 -04:00
Chris Scott d046bccaf6 refactor(schedules): improve mobile table layout and extract tabbar padding utility 2026-10-02 20:57:42 -04:00
Chris Scott 91607a2531 Merge remote-tracking branch 'origin/main' into feat/slash-command-parity
# Conflicts:
#	frontend/src/components/schedules/RunDetailPanel.test.tsx
#	frontend/src/components/schedules/RunDetailPanel.tsx
#	frontend/src/pages/__tests__/SessionDetail.export.test.tsx
2026-10-02 19:52:28 -04:00
Chris Scott ca348f20a3 feat(schedules): open repo session with run context for finished worktree runs 2026-10-02 12:52:46 -04:00
Chris Scott 7102715068 fix(commands): run multi-line and Enter commands, restore focus, refresh forks
- Match command arguments across newlines so a multi-line /btw or custom
  command runs instead of being sent as plain text.
- Run a typed command on plain Enter once its name is complete, while
  Enter stays a new line for regular text and Shift+Enter for commands.
- Focus the prompt when a session opens on a pointer device, and return
  focus to the previously focused element when a dialog closes, except a
  text field on touch so the keyboard stays closed.
- Invalidate the session list on session.forked so a forked session shows
  in the sidebar without waiting for the next event.
- Correct the Quick Start keyboard shortcuts.
2026-10-02 10:45:20 -04:00
Chris Scott 7e93eb4c34 feat(commands): align built-in slash commands with OpenCode v2
Replace the split built-in command name list and switch with one typed
registry, so a registered command without a handler is a compile error.
Remove the broken themes/share/unshare/editor entries and the hardcoded
init; server and custom commands now win on a name clash and built-ins
dispatch by registry identity.

Add /copy, /btw, /rename, /fork (message picker), /timeline, /model,
/agent, /variants, /mcp, /skills, /settings and /connect. Open the model
picker through state so /model and the select-model shortcut work while a
response is running, load full session history in the fork picker, and
keep attachments when a built-in command is submitted.

Extract shared clipboard and primary-agent helpers, reuse CopyButton in
the manager token settings, and update the Quick Start and chat docs.
2026-10-02 09:53:57 -04:00
Chris Scott f695c142f1 fix(schedules): use real row buttons and correct run timestamps
- replace row-level keyboard handlers with buttons and aria-labels
- keep the active run resolvable when filtered out of the list
- show run startedAt consistently and ignore the unread shortcut with modifiers
2026-10-02 00:04:13 -04:00
Chris Scott 4cf69e9023 refactor(frontend): drop sidebar action bus and primary CTAs 2026-10-01 23:56:55 -04:00
Chris Scott 5a8a81419c feat(schedules): add unread run report notifications and run search 2026-10-01 23:35:10 -04:00
Chris Scott 7cac8baade style(frontend): apply thin theme-matched scrollbars globally 2026-10-01 18:35:56 -04:00
Chris Scott 9a23aa0c2a fix(frontend): keep sidebar state usable when localStorage throws 2026-10-01 18:25:25 -04:00
Chris Scott edc3fb4219 feat(frontend): default sidebar sections open and theme toasts
- Rework useSidebarSections to track sections independently, open by default
- Theme sonner toasts with app color tokens and the selected theme mode
2026-10-01 17:49:57 -04:00
Chris Scott 7e9afc3da4 feat(opencode): surface server startup and recovery failures in-app 2026-10-01 16:13:11 -04:00
Chris Scott 8e32507f21 feat(schedules): attach MCP servers to scheduled runs 2026-09-29 19:43:02 -04:00
Chris Scott 6396e8c22c feat(themes): drive code block syntax highlighting from active theme 2026-09-29 16:26:51 -04:00
Chris Scott b53f192830 fix(schedules): keep cached reports visible after polling errors 2026-09-29 11:10:07 -04:00
Chris Scott eb40a04353 fix(schedules): intercept local report links while repo data loads 2026-09-29 10:43:49 -04:00