Commit Graph
113 Commits
Author SHA1 Message Date
Chris Scott 85da1ceb13 chore(release): bump manager to 0.22.0 and ocm-cli to 0.4.0 2026-10-07 23:04:41 -04:00
Chris Scott 54a338a0ff chore: bump version to 0.21.0 2026-10-05 15:16:21 -04:00
Chris Scott 52b6147ed3 chore: bump version to 0.20.0 2026-10-02 22:55:54 -04:00
Chris Scott 5bd688de4b feat(themes): apply OpenCode color themes app-wide with a settings picker (#364)
- Vendor the 36 OpenCode theme palettes into the shared package, synced
  from the pinned OpenCode release tag via pnpm themes:sync.
- Add a colorTheme user preference across the settings schema, defaults,
  and the assistant internal API.
- Extend palettes with success, warning, info, and diff colors, and add a
  resolver that maps palettes to CSS tokens and applies them to the DOM.
- Apply the theme app-wide through a ThemeProvider context, adopting the
  tokens in message, repo, session, and settings components, agent
  colors, git status styles, and diff viewers.
- Add a theme picker to General settings and make model quick-select
  follow the active theme (fixes #355).
2026-09-28 00:19:32 -04:00
Chris Scott be6c4108a6 chore: bump version to 0.19.1 2026-09-26 22:18:02 -04:00
Chris Scott ed2b38cf83 chore: bump version to 0.19.0 2026-09-26 13:21:09 -04:00
Chris Scott dacde879d6 feat(opencode): migrate OpenCode Manager to OpenCode 2 (#359)
* feat(opencode): migrate OpenCode Manager to OpenCode 2

Port the backend lifecycle, generated plugins, event aggregation,
schedules, worktrees, provider credentials, MCP, config handling, the
frontend chat model, and the ocm CLI to OpenCode 2.

Adopt @opencode/client 2.0.15 as the single typed V2 API contract,
require OpenCode 2.0.0 or newer (pinned 2.0.15), and delete every
V1-only code path.

* refactor(opencode): reload config in place and drop v1 compatibility shims

Route config/skill/AGENTS.md changes through the OpenCode location reload
API instead of a full server restart, stop auto-resuming interrupted
sessions, remove the restart coordinator and v1 MCP/version shims, and pin
support to OpenCode >=2.0.15 <3.0.0. Adds integration-ready retries,
service-mode launch, ocm-cli repo proxy, and new frontend form/MCP helpers.

* refactor(opencode): consolidate v2 migration helpers and harden install, proxy, and session flows

- extract shared semver and model-ref utilities, reuse across version checks
- share the OpenCode release download script across Docker, entrypoint, dev setup
- unify install/upgrade failure recovery and guard externally managed OPENCODE_BIN
- scope the repo proxy location rewrite and surface ocm proxy errors
- rework frontend session projection, permission lookup, and cache invalidation

* fix(schedules): reject unavailable agents before creating a session

* feat(opencode): add ocm install, schedule agent fallback, and session move guards
2026-09-26 13:16:45 -04:00
Chris Scott 6c2ebd764b chore: bump version to 0.18.0 2026-09-20 15:54:41 -04:00
Chris Scott caf95dd3d8 chore: bump version to 0.17.5 2026-09-09 11:03:23 -04:00
Chris Scott a1bf873584 chore: bump version to 0.17.2 2026-08-29 16:50:13 -04:00
Chris Scott 5446faadec chore: bump version to 0.17.1 2026-08-27 09:02:01 -04:00
Chris Scott dc404fe339 chore: bump version to 0.17.0 2026-08-25 23:52:30 -04:00
Chris Scott 90a3c29c12 feat(sandbox): add KVM-backed agent sandboxing via microsandbox (#338)
* feat(sandbox): add KVM-backed agent sandboxing via microsandbox

* feat(sandbox): route host-shell surfaces into microVM via shell wrapper

* feat(sandbox): route host-shell surfaces into microVM via shell wrapper

* fix(sandbox): harden enforcement validation and backup handling

* fix(sandbox): bound lifecycle queue and harden install/backup paths

Bound the OpenCode supervisor lifecycle queue to one running plus one
pending operation so repeated restarts cannot stack unbounded HTTP
requests, while exempting stop() so shutdown is never dropped.

Reject enforcement backups that carry no recoverable removed sections,
matching the existing fail-closed handling of unparseable backups.

Install OpenCode through a private mktemp staging directory instead of
the predictable /tmp/opencode path.

Use named path/os imports in the files added by this branch.

* refactor(sandbox): remove OpenCode version allowlist gating under enforcement

* fix(settings): use resolved opencode binary and verify installed version

* refactor(sandbox): scope enforcement to agent bash tool only

* fix(sandbox): plan bash against factory directory and attest runtime tmpfs; align permission reply API

* fix(sandbox): pin neutral entrypoint and persist opencode upgrades across rebuilds

* fix(sandbox): align canonical spec with msb 0.6.8 runtime defaults

* feat(sandbox): show unwrapped sandboxed bash commands in message UI

* refactor(sandbox): pin shell shim to sandbox agent bash without rewriting commands

* feat(sandbox): route notifications through a host-side manager tool

* feat(sandbox): route all assistant capabilities through the ocm tool

Add an allow-listed request action to the generated ocm plugin so agents
reach settings, assistant reload, repos, git-info, workspaces, and
schedules through the tool instead of curling the internal API with a
bearer token, which is impossible under sandboxing.

Rewrite the curl-based skills to use the ocm request action and drop the
apiBaseUrl plumbing. Remove the now-unread .opencode/internal-token file
and the sandbox tmpfs mask that hid it; attestation now rejects any
tmpfs other than the runtime /tmp mount.

* fix(sidebar): wire new-session and new-schedule actions to every page

AssistantRedirect never registered a listener for the sidebar's
new-session event, so the desktop sidebar CTA on /assistant was a
no-op; the Schedules pages had the same gap for new-schedule.

Make useSidebarAction the single source of truth for action keys and
event dispatch, and warn when an action is dispatched with no mounted
handler so an unhandled CTA fails loudly instead of silently. Wire the
missing listeners to the existing per-page handlers.

* feat(sandbox): forward git credentials into the microVM and add sandbox guest image

* feat(sandbox): add git credential forwarding toggle to settings
2026-08-25 23:38:52 -04:00
Chris Scott 1d477bdee4 chore: bump version to 0.16.2 2026-08-11 00:59:33 -04:00
Chris Scott db927864a4 chore: bump version to 0.16.1 2026-07-31 14:06:08 -04:00
Chris Scott 4f0da40169 chore: bump version to 0.16.0 2026-07-31 13:59:08 -04:00
Chris Scott ff250cb1d2 chore: bump version to 0.15.0 2026-07-23 23:09:44 -04:00
Chris Scott 8b76fe9b20 chore: bump version to 0.14.6 2026-06-30 19:59:20 -04:00
Chris Scott 9425921200 chore: bump version to 0.14.5 2026-06-29 11:27:49 -04:00
Chris Scott 01e50a7019 feat: add bundle-based OCM mirror sync (#289)
* feat: add bundle-based OCM mirror sync

* feat: add OpenCode model editor and HEAD-safe bundle import

* fix: consolidate discovery-cache, batch bundle refs, remove dead code (#290)

* fix: consolidate discovery-cache, batch bundle refs, remove dead code

* refactor: consolidate discovery cache into generic discoverCached, extract spawnGit helper

* feat: extract project-id-resolver, add CLI full-fallback prompt, wire lint into root scripts

- Extract shared project-id-resolver for origin URL matching (replaces local-repo duplicates)
- Add promptYesNo / confirmFullFallback to ocm CLI before slow full mirror
- Backend: consolidate opencode-workspaces routes with project-id-resolver
- Frontend: fix schedules prompt/global page navigation
- CLI: add eslint config, lint/lint:fix scripts, fix no-fallthrough in ocm.ts
- Root: wire CLI into build, test, typecheck, lint, lint:fix chains
- Fix test lint issues (_code, const, require→import)

* fix: replace polynomial regex with linear-time string ops in gitRemoteParts

* feat: add divergence guards for push/pull, streaming bundle upload, server-side ancestry check

- Backend: GET /:repoId/mirror/head (head+branch+dirty) and GET /:repoId/mirror/contains/:sha (ancestry check)
- CLI: checkPushDivergence warns before overwriting server commits; checkPullDivergence warns before discarding local commits; both require confirm or --force
- Bundle upload now streams from disk instead of buffering entire file in memory
- Version visible in --help and default (no-arg) output
- Version bump 0.1.5 → 0.2.0

* fix: show connecting message before fetching repos in default command

* fix: update default command messages to reflect actual matching behavior
2026-06-28 11:57:38 -04:00
Chris Scott 634dcd9af9 chore: bump version to 0.14.1 2026-06-20 00:42:20 -04:00
Chris Scott 617962f2dd feat: directory files upload system, deferred restart model, cache invalidation consolidation, and misc improvements (#281)
* feat: show variant label on model picker and add folder upload for agents/commands

- Replace three-dot variant menu trigger with selected variant label
- Add POST /api/settings/opencode-directory-files/install endpoint
- Upload agents/commands markdown folders into .config/opencode/{agents,commands}/
- Reload OpenCode server after upload so files are picked up

* fix: revalidate branch/git caches when mobile sheet opens and on vcs.branch.updated SSE

- add shared invalidateRepoGitCaches() helper for consistent invalidation
- revalidate repo list when mobile repo quick-switch sheet opens
- revalidate current repo when mobile More drawer opens
- revalidate repo/git caches when Source Control dialog opens
- handle vcs.branch.updated SSE event with optimistic cache update
- use helper in branch create/switch mutations in useGit and BranchesTab

* style: make variant selector look more like a button with chevron and compact sizing

* refactor: consolidate settings editors, add folder upload support, and clean up unused code

* refactor: consolidate settings editors, add folder upload support, and clean up unused code

* feat: add opencode-directory-files listing service and consolidate settings editors

* fix: distinguish scroll from tap in suggestion popups on touch devices

* refactor: consolidate settings editors and add DirectoryFilesList component

* refactor: target repo status cache updates only to affected batch entries

* refactor: streamline settings, git hooks, and query invalidation logic
2026-06-20 00:40:36 -04:00
Chris Scott 288302775f chore: bump version to 0.14.0 2026-06-18 10:47:19 -04:00
Chris Scott cb7c707593 chore: bump version to 0.13.1 2026-06-10 08:36:38 -04:00
Chris Scott 931f1215e6 chore: bump version to 0.13.0 2026-06-09 14:59:08 -04:00
Chris Scott 30c34e867e chore: bump version to 0.12.3 2026-06-06 13:08:46 -04:00
Chris Scott 735af66940 chore: bump version to 0.12.2 2026-06-05 18:28:33 -04:00
Chris Scott ab624a0970 chore: bump version to 0.12.0 2026-05-31 20:07:23 -04:00
Chris Scott b9236f7f20 feat(worktree): worktree tabs, server env vars, and multi-directory SSE (#240)
* loop: worktree-tabs-2 completed after 4 iterations

* loop: server-env-vars completed after 7 iterations

* feat(worktree): add worktree tabs and server env vars settings

* refactor(worktree): multi-directory SSE support and workspace chip row

* feat(workspace): collapsible workspace manager and sibling filtering

* feat(workspace): workspace creation endpoint, refactored workspace manager, and tests

* refactor(frontend): unify workspace label and remove dead code

- extract shared workspaceLabel helper into api/repos and reuse in
  WorkspaceManager and RepoDetail directoryLabels
- remove unused useSessions hook and subscribeToDirectory subscription
- drop redundant frontend workspace dedup now guaranteed by backend
- align WorktreeTabs empty-state test with create-workspace button
2026-05-30 19:44:07 -04:00
Chris e4611ee1ab chore: bump version to 0.11.0 2026-05-25 10:18:42 -04:00
Chris Scott 03bd3dac95 feat(frontend): improve model selection experience (#237)
* chore: remove dead code and unused exports

* fix: preserve model form during config refresh

Signed-off-by: mehmet turac <mehmetturac@gmail.com>

* loop: model-select-fix completed after 11 iterations

* fix(frontend): show provider prefix for duplicate models in quick select dropdown

When the same model exists under multiple providers, show the provider name
for both entries so users can distinguish them. Detects duplicates by modelID
across all favorites and recents.

* refactor(frontend): replace useTallScrollContent with scroll visibility hook

* fix: harden mirror push rollback

* Remove Load button from skill cards, clicking card loads skill

* feat(backend): add plugin installation support and schema updates

* refactor(frontend): remove unused useHeaderScrollVisibility hook

* refactor(frontend): replace model dropdown with bottom sheet selector

Replace DropdownMenu-based ModelQuickSelect with a bottom sheet
implementation featuring favorites, recents, provider browsing, and
search. Remove onShowModelsDialog prop from PromptInput and
SessionDetail, using data attribute trigger instead. Fix ZodIssueCode
deprecation, input text color, and portal rendering for bottom sheet.

* fix(frontend): simplify session model restore and fix mobile swipe reset

* loop: single-source-models completed after 10 iterations

* refactor(frontend): add desktop sidebar layout to model quick select

* refactor(frontend): improve model selector with connected providers, favorites, and recent management

* fix(frontend): constrain model name width to prevent overflow in prompt input

* fix(frontend): adjust padding and styling in model quick select

* fix(frontend): add optimistic removal with rollback for recent models

---------
2026-05-25 09:47:59 -04:00
Chris Scott a86e4b1238 feat(ocm-cli): workspace repo sync and manager token targeting (#233) 2026-05-23 19:49:44 -04:00
Chris Scott 819797ef7f chore: bump version to 0.10.1 2026-05-08 00:24:25 -04:00
Chris Scott c3d6549f01 feat: add assistant mode, SSE streaming, and OpenCode server integration (#214) 2026-05-02 21:51:37 -04:00
Chris Scott 1212e6c6fb refactor: add desktop sidebar navigation and consolidate header actions (#199)
* refactor: add desktop sidebar navigation and consolidate header actions

- Add DesktopSidebar component with collapsible navigation
- Add useDesktop and useSidebarAction hooks for sidebar state management
- Add useSidebarCollapsed hook with localStorage persistence and error handling
- Integrate sidebar into App layout with tooltip support
- Remove repoUrl and isRepoWorktree props from SourceControlPanel
- BranchesTab now fetches repo data internally using getRepo query
- Remove unused to prop from SidebarItem
- Simplify RepoList conditional rendering
- Add comprehensive test coverage for new components

* refactor: remove LSP status button and memory plugin status hook

- Delete LspStatusButton component and its test file
- Remove unused useMemoryPluginStatus hook from RepoDetail
- Clean up dead code as part of desktop header refactor
2026-04-25 10:36:14 -04:00
Chris Scott a107ad0a17 chore: bump version to 0.9.21 2026-04-24 09:44:31 -04:00
Chris Scott b61a3c83d1 chore: bump version to 0.9.20 2026-04-19 12:49:08 -04:00
Chris Scott 4a90dda1a0 refactor - Add tabs menu - fix swipe nav 2026-04-19 12:48:12 -04:00
Chris Scott 8e90ba2e6e refactor: remove custom title generation and optimize session updates (#187)
* chore: bump version to 0.9.16

* Remove custom session title generation and rely on upstream OpenCode titles

- Delete backend/src/routes/title.ts and backend/src/services/session-title.ts
- Remove /api/generate-title route from backend/src/index.ts
- Delete backend/test/routes/title.test.ts
- Remove useTitleGenerating hook and title generation logic from frontend/src/hooks/useOpenCode.ts
- Remove generating prop from Header.EditableTitle and frontend/src/pages/SessionDetail.tsx
- Clean up unused imports in frontend/src/hooks/useOpenCode.ts and frontend/src/components/ui/header.tsx
- Session titles now come directly from upstream OpenCode via session refetches after prompt

* refactor: optimize session query updates with setQueryData

- Remove redundant query invalidations in useSendPrompt
- Use setQueryData for optimistic updates in SSE session.updated handler
- Update session cache directly when session exists in list
- Prepend new sessions to list when not found
- Fall back to invalidation only when cache is empty
2026-04-16 09:59:35 -04:00
Chris Scott 1e6f1293e2 chore: bump version to 0.9.15 2026-04-13 21:48:04 -04:00
Chris Scott 0a37fd14a3 feat: add OpenCode models editor and bump version to 0.9.13 2026-04-12 12:14:35 -04:00
Chris Scott 5620388aa6 Bump version to 0.9.12 2026-04-06 12:34:42 -04:00
Chris Scott 0f9caad98d Migrate memory plugin to standalone repository and remove Kasm files (#182)
Remove packages/memory from monorepo - plugin now lives at
chriswritescode-dev/opencode-memory and is installed from npm.

Update Dockerfile, docs, and workspace config to reflect the change.
Remove Dockerfile.kasm, kasm-startup.sh, and Kasm CI workflow.
2026-04-06 11:47:42 -04:00
Chris Scott 5c04eee031 Bump version to 0.9.11 2026-03-25 16:19:32 -04:00
Chris Scott e451c28675 Add memory package tests to root test script
Run both backend and memory tests with pnpm test.
2026-03-24 11:41:53 -04:00
Chris Scott df2bebc73e Bump version to 0.9.10 2026-03-22 18:57:14 -04:00
Chris Scott 1e863c5fc5 Add cron-based scheduling with prompt templates integration (#164) 2026-03-21 23:33:03 -04:00
Chris Scott b9b5d50643 Bump version to 0.9.09 2026-03-20 21:09:07 -04:00
Chris Scott 35556ed44a Fix Docker build by adding jsonc-parser to shared dependencies
The shared package imports jsonc-parser but did not declare it as a dependency, causing Docker builds to fail due to strict pnpm install. Added jsonc-parser ^3.3.1 to shared/package.json and bumped manager version to 0.9.08.
2026-03-07 10:52:56 -05:00
Chris Scott cffe33c8c3 chore: bump version to v0.9.07 and update lockfile 2026-03-07 10:42:39 -05:00