Commit Graph
857 Commits
Author SHA1 Message Date
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 332c3271d2 Merge pull request #375 from chriswritescode-dev/feat/opencode-failure-reporting
feat(opencode): surface server startup and recovery failures in-app
2026-10-01 18:26:29 -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 e77badb444 fix(opencode): harden supervised server startup failure diagnostics 2026-10-01 17:26:45 -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 53a70d8545 fix(files): skip broken symlinks during directory scans 2026-10-01 11:23:30 -04:00
Chris Scott 074c7d178e Merge pull request #373 from chriswritescode-dev/feat/schedule-mcp-servers
feat(schedules): attach MCP servers to scheduled runs
2026-09-29 21:19:37 -04:00
Chris Scott 8e32507f21 feat(schedules): attach MCP servers to scheduled runs 2026-09-29 19:43:02 -04:00
Chris Scott 24e2037b73 fix(opencode-config): reject redacted placeholder in raw-text config writes 2026-09-29 16:46:10 -04:00
Chris Scott fa2d794239 Merge pull request #372 from chriswritescode-dev/feature/themed-syntax-highlight
feat(themes): drive code block syntax highlighting from active theme
2026-09-29 16:29:37 -04:00
Chris Scott ff629c1d99 docs: add theme showcase video to README 2026-09-29 16:29:18 -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 479adcc719 Merge pull request #371 from chriswritescode-dev/fix/schedules-mobile-run-history
fix(schedules): improve mobile run history layout
2026-09-29 11:36:59 -04:00
Chris Scott 8579ba883b Merge pull request #370 from chriswritescode-dev/fix/schedule-report-links
fix(schedules): open report links in place and route schedule notifications to the run report
2026-09-29 11:36:53 -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
Chris Scott e497dbfe34 fix(schedules): resolve older run links and index session lookups 2026-09-29 10:32:20 -04:00
Chris Scott 0e6e30890a Merge fix/schedule-report-links into fix/schedules-mobile-run-history 2026-09-29 10:14:12 -04:00
Chris Scott 3fff29751f fix(schedules): let run history cards fill the available width 2026-09-29 09:55:20 -04:00
Chris Scott 28f7d34fcd fix(schedules): improve mobile run history layout 2026-09-29 13:38:13 +00:00
Chris Scott 3d8c2f5b5e fix(schedules): open report links in place and route schedule notifications to the run report 2026-09-29 00:33:31 -04:00
Chris Scott 7fbb7555b2 feat(files): fullscreen preview, relative markdown links, and preinstalled Chromium (#369)
* feat(files): add fullscreen preview with a minimal close control

Add a fullscreen toggle to the desktop file preview header. Fullscreen fills the viewport, hides the header, and shows only a small on-top X to exit.

Keep the mobile preview fullscreen by default with its close button layered above the content, and give the headerless mobile preview the same small on-top X.

* fix(files): open relative markdown links and preinstall Chromium

Resolve relative and absolute markdown links against the previewed file
and open them in the file browser; external links open in a new tab.
Install Playwright and Chromium into the Manager image with NODE_PATH
and PLAYWRIGHT_BROWSERS_PATH so agents can run browser automation
without a project-local install.

* refactor(files): share markdown link handling across renderers

* test(docker): cover the preinstalled playwright chromium step
2026-09-29 00:15:52 -04:00
Chris Scott 304f636516 fix: stabilize scheduled runs and background task tracking (#365)
* fix: stabilize scheduled runs and background task tracking

* fix: complete scheduled runs and harden background task status

- Route directory-less OpenCode session events (session.execution.*,
  session.usage.updated) to backend listeners by remembering each
  session's directory in the SSE aggregator, so scheduled runs finish
  and failure push notifications fire; browser delivery is unchanged.
- Resolve background shell status from the transcript completion notice
  when OpenCode no longer lists the shell, keep the first terminal
  status so a kill is not reported as completed, and share one status
  icon and colour mapping between the transcript and background bar.
- Reconcile child sessions only while unknown or running, trigger it
  from the EventProvider alone, refresh children that drop to unknown
  after a poll, and forget deleted sessions.
- Fetch the model list and default concurrently while waiting for the
  schedule model, share configured-model selection, and consolidate
  schedule startup cancellation cleanup.
- Reduce background work re-renders, prune shell exit records, remove
  dead exports, and document background work in the chat guide.

* fix: hide finished background tasks and clip long dialog titles
2026-09-28 23:55:01 -04:00
Chris Scott e80016cc22 fix(navigation): show Assistant sessions in the sidebar and repo switcher (#368) 2026-09-28 23:52:45 -04:00
Chris Scott a1b7f58aae feat(opencode-config): redact secrets and add MCP listing to the internal config API (#366) 2026-09-28 23:52:41 -04:00
Chris Scott 68b13c8e35 fix(files): resolve workspace paths and add sandboxed HTML preview (#367)
* fix(files): resolve workspace paths and add sandboxed HTML preview

Accept workspace-absolute paths in the file service and return repo-relative paths for file reads and directory listings. Serve raw content under a CSP sandbox and preview HTML files in a sandboxed iframe with a raw toggle.

Resolve file-click paths from the session directory and repo local path, detect absolute and html/htm file references while ignoring URLs, accept the legacy filePath input key and filediff metadata, fix the file browser navigating into an initially selected directory, and use focus-visible rings across shared UI primitives.

* fix(files): address review feedback on navigation and path fallback

Key initial directory navigation to the initial selection so viewport changes do not reset it, and open the mobile preview from a separate effect.

Fall back to the legacy filePath input when path is empty, and cover both with regression tests.
2026-09-28 22:27:18 -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 702e3c4e13 docs: refresh screenshots, trim feature docs, and drop the New Repo sidebar CTA (#363) 2026-09-27 19:22:04 -04:00
Chris Scott be6c4108a6 chore: bump version to 0.19.1 v0.19.1 2026-09-26 22:18:02 -04:00
Chris Scott d6b2d555ca feat(sidebar): add loading state to new session button and reposition repo toggle 2026-09-26 22:16:28 -04:00
Chris Scott 54a13af32e feat(sidebar): make desktop sidebar sections mutually exclusive
Replace the independent per-section collapse state with an accordion hook so opening Sessions or Menu closes the other.
2026-09-26 21:55:46 -04:00
Chris Scott 015a44a5f3 feat(sidebar): add repo-grouped session navigation with live status (#361)
* feat(sidebar): add repo-grouped session navigation with live status

- Add a searchable, collapsible session tree to the desktop sidebar, grouped by repository with pinned and time-bucketed ordering.
- Track per-session busy, retry, and compact status in a shared store fed by the SSE event stream and scoped by directory.
- Extract shared navigation components reused by the desktop tree and the mobile repo quick-switch sheet.
- Show a Git tab and hide Schedules inside a repo on the mobile tab bar; add Repos and Assistant entries to the session More drawer.
- Replace the CommitsTab local relative-time formatter with a shared formatShortRelativeTime util.

* refactor(sidebar): unify session status tracking and navigation helpers

* feat(sidebar): add collapsible sessions and menu sections

* fix(sessions): keep specific live status over snapshot busy
2026-09-26 21:50:23 -04:00
Chris Scott 1389e8e59c feat(session): surface background shell and subagent work (#360)
* feat(session): surface background shell and subagent work

* fix(session): address review feedback on background work UI
2026-09-26 15:49:49 -04:00
Chris Scott 8b806e865f ci(ocm-cli): publish via npm OIDC trusted publishing 2026-09-26 13:28:19 -04:00
Chris Scott ed2b38cf83 chore: bump version to 0.19.0 v0.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 v0.18.0 2026-09-20 15:54:41 -04:00
Chris Scott b5dd900efb feat(config): support layered OpenCode config sources with revision-guarded saves (#358)
* feat(config): support layered OpenCode config sources with revision-guarded saves

* refactor(config): harden multi-source OpenCode config handling

- extract shared config-source helpers and default source name
- reject shadowed removals with 409 and require sources/revision
- restart the server on reload with session resume
- mirror multiple host config files on import and warn on removals
- skip restart for mcp-only saves
- drop removedFields and CONFIG_PATCH_TIMEOUT_MS

* fix(config): return null when archiving broken OpenCode config fails
2026-09-20 15:51:40 -04:00
Chris Scott 97370a8296 build(docker): exclude nested node_modules and scratch dirs from build context
Bare `node_modules` matched the context root only, so `COPY shared ./shared`
overlaid the host's stale `shared/node_modules` onto the deps-stage install.
Once the lockfile moved ahead of the host tree the pnpm symlink dangled and
`pnpm --filter frontend build` could not resolve `@opencode-ai/sdk/v2/types`.

Anchor the pattern with `**/` and apply the same correction to `.env`,
`.env.local`, `dist`, `coverage` and `workspace`, which shared the root-only
match and were copying `backend/coverage` into the image. `frontend/dist` and
`backend/dist` become redundant under `**/dist`.

Also exclude `.pnpm-store`, which was sending 598MB of context to the daemon
on every build.
2026-09-20 10:42:54 -04:00
Chris Scott 65f5bd0e6a build(docker): bake chromium runtime libs and refresh pinned tools (#357)
* build(docker): bake chromium runtime libs and refresh pinned tools

Install the Chromium runtime libraries in the runner image from Playwright's
own resolver instead of a hand-maintained package list, so a Playwright e2e
suite runs in the Manager container without root or sudo. PLAYWRIGHT_VERSION
is shared with the sandbox guest image and the docker-build workflow.

Refresh the remaining pins: node 24.21.0, pnpm 10.28.1, OpenCode 1.18.31,
microsandbox 0.7.2 and @opencode-ai/sdk 1.18.31. CI moves to Node 24 to match
the image and the documented requirement.

uv stays at 0.12.7. The runner previously fetched the unversioned installer
URL, so UV_VERSION and the workflow build argument had no effect; it now
installs from the versioned URL and asserts the installed version, and the
workflow pins the release instead of resolving the newest tag. The pin cannot
move past 0.12.7 yet because 0.12.8 and later segfault under qemu-user x86_64
emulation, which is how an arm64 host builds the amd64 platform.

* chore(docker): bump the sandbox image digest to the 1.63 build

The guest image was rebuilt and republished for Playwright 1.63.0, uv 0.12.7
and pnpm 10.28.1. Moving the digest is what makes deployments adopt it:
attestation compares the reference string, so a rebuilt image behind the old
digest would never be pulled or recreated.

* build(sandbox): align toolchain pins and verify on native runners

* feat(sandbox): run Docker with persistent guest storage

* chore(docker): pin the Docker-enabled sandbox image
2026-09-19 22:30:29 -04:00
Chris Scott 50da84541a fix(schedules): fall back to the config default model when an override is gone (#356)
* fix(schedules): fall back to the config default model when an override is gone

* fix(schedules): never fall back to the configured small model

* fix(schedules): distinguish unknown availability and match configured models by key and id
2026-09-19 12:30:56 -04:00
Chris Scott f175aa73a6 refactor(settings): remove command slash prefix and collapse mobile row actions
- Drop the redundant slash prefix from command and uploaded file names
- Move the row primary action into the overflow menu below sm in OpenCode settings
- Align titles, badges, switches, and row controls on the first line
2026-09-19 10:41:46 -04:00
Chris Scott 2a4fa956b4 refactor(settings): redesign OpenCode settings with shared collapsible sections
- Replace bordered cards with compact flat rows and maintenance sections
- Add shared SettingsDisclosure for config, maintenance, and sandbox sections
- Auto-scroll expanded sections into view when outside the scrollport
- Make agent file editor and agent form full-height and keyboard-aware on mobile
2026-09-19 10:14:34 -04:00
Chris Scott 295d24ced7 refactor(config): make on-disk opencode.json the single source of truth (#354)
* refactor(config): make on-disk opencode.json the single source of truth

Make <workspace>/.config/opencode/opencode.json the only store for the active OpenCode configuration. One owner (opencode-config-file.ts) reads, validates, writes, archives, and seeds the file; one owner (opencode-config-apply.ts) decides how an edit is applied: restart pending, or a live patch with recovery. Settings routes, the internal assistant API, the health-watch supervisor, boot, and host import all go through them, so an edit that lands on the file without going through the database is visible immediately instead of at the next Manager boot.

Remove the named-config profiles. Migration 019 archives every opencode_configs row to .config/opencode-configs-archive/<name>.json, restores the default row to opencode.json when no file exists, then drops the table, its indexes, and repos.opencode_config_name. The /opencode-configs* and config/switch routes and the CreateConfigDialog/SwitchConfigDialog dialogs are gone, and the ocm tool gains GET/PUT /opencode-config backed by the same apply owner.

Harden the write path: serialize and atomically write config updates while preserving the file mode, keep withFileLock usable after a rejection, route reloadConfig's cleaned-config write through the file owner, stop boot from rewriting an existing valid config when importing state, prune the health-watch directory to its newest 20 entries, resolve archive paths with realpath, and share one frontend config query across dialogs.

* fix(mirror): canonicalize worktree paths before branch ownership check

* refactor(config): unify opencode config apply and rollback paths

- share one config route factory between public and internal mounts
- capture last-known-good before every config write and restore via one helper
- stop auto-restarting on save; flag restart-required fields and live-patch the rest
- add CONFIG_PATCH_TIMEOUT_MS for config patch requests
- extract canonicalPath helpers, health-watch artifact writer, and useProvidersWithModels hook

* refactor(model-state): use OpenCode state file as model state source of truth
2026-09-19 00:28:34 -04:00
Chris Scott 7a3c5229df fix(download): keep iOS home screen app saves in-app via the share sheet (#353)
* fix(download): keep iOS home screen app saves in-app via the share sheet

* fix: apply CodeRabbit auto-fixes
2026-09-18 22:35:54 -04:00
ifinik b21c80c9e8 fix(session): load more pages when filtered list underfills viewport (#351)
Load additional session pages when child filtering leaves the viewport underfilled. Preserve directory and workspace identity, stop automatic pagination after next-page errors, and provide explicit retry with regression coverage.

Fixes #350
2026-09-12 22:53:56 -04:00