Commit Graph
322 Commits
Author SHA1 Message Date
Chris Scott 4ea3ecca9e Give each session VM its hidden secrets, attest them, and 2026-12-03 19:53:07 -05:00
Chris Scott a58dcc96d4 microsandbox secret commands, attestation check and Chromium 2026-12-03 19:40:01 -05:00
Chris Scott 32be89316d One resolver decides what a hidden secret becomes per caller 2026-12-03 19:33:16 -05:00
Chris Scott 0a5c514062 Store the hidden flag and allowed hosts on a secret 2026-12-03 19:26:27 -05:00
Chris Scott 1278915e78 Merge remote-tracking branch 'origin/main' into refactor/ocm-native-opencode 2026-11-28 20:38:46 -05:00
Chris Scott 3e92efd22e Report the last plugin.list failure when plugins never load 2026-11-28 20:36:48 -05:00
Chris Scott 12dab07b87 Guard pairing token renewal against concurrent edits and cap pairing names 2026-11-28 20:36:48 -05:00
Chris Scott 3c7bc80988 refactor(ocm): pair linked servers with native OpenCode links and drop legacy CLI stubs 2026-11-28 20:18:05 -05:00
Chris Scott 68f67327fc chore(opencode): move the OpenCode pin and supported floor to 2.4.2 2026-11-28 20:14:02 -05:00
Chris Scott afde60ddf7 Wait for plugins before using the OpenCode default model on cold locations 2026-11-19 22:35:10 +00:00
Chris Scott 3796ba15eb Merge pull request #489 from chriswritescode-dev/fix/remote-schedule-windows-paths
fix(schedules): accept absolute Windows directories for remote schedules
2026-11-19 07:59:31 -05:00
Chris Scott 742660ecfa fix(schedules): accept absolute Windows directories for remote schedules
Remote schedule targets were validated with the host's path.isAbsolute, which rejects Windows paths like C:\Projects\App when the Manager runs on Linux. Share the POSIX/Windows absolute-path check already used by the server terminal routes and use it for remote schedule create and update.
2026-11-18 21:18:33 -05:00
Chris Scott 50d1958d43 Fix the OpenCode 2.3.0 reload Goal assertion found validating cb4204d4-4532-4097-a601-b58eafd9d41c 2026-11-17 20:24:57 +00:00
Chris Scott f737511ba3 Apply remaining changes 2026-11-17 15:07:59 -05:00
Chris Scott edd083e417 Refresh Goal reads on plugin.updated, with recovery coverage 2026-11-17 14:44:25 -05:00
Chris Scott 47066b33b2 Version-aware real-binary proof of the cold-Location Goal 2026-11-17 14:10:15 -05:00
Chris Scott 23d9d1c945 Move the OpenCode pin and supported floor to 2.3.0 2026-11-17 14:02:14 -05:00
Chris Scott 71bde0378a Remove duplicated and constant-only tests 2026-11-13 15:30:56 -05:00
Chris Scott 80e013ec81 Scope goal reads to the session directory and stabilize the background activity tests 2026-11-13 19:47:13 +00:00
Chris Scott fc00273645 Fix remote session delete, unknown commit responses, restart errors and lost autosave clears 2026-11-13 19:47:12 +00:00
Chris Scott 76ca65ec5e Isolate test state and inject the restart-pending check into config routes 2026-11-13 03:26:58 -05:00
lil-worker-cstech[bot] b9ab85d44c fix: apply 2 pr-agent suggestions
- frontend/src/contexts/EventContext.test.tsx:501 Make the deferred-bootstrap test assert real behavior
- backend/test/services/opencode-single-server.test.ts:352 Restore process env instead of deleting HOME/SHELL

Applied-by: pr-agent-autoapply
2026-11-13 06:19:42 +00:00
Chris Scott b625acfc0c chore(lint): replace ESLint with Oxlint and clear anti-slop findings 2026-11-13 01:13:34 -05:00
Chris Scott bf7c6cdbac fix(opencode): address review feedback on the 2.2.5 pin
Document ocm 0.6.x as requiring OpenCode 2.2.5, matching its
@opencode/theme peer, and make the package compatibility test check
bounded peer ranges instead of treating them as one version.

Linked servers on another 2.x release keep the neutral version notice,
while a different major version is shown as unsupported again through
a shared version badge.

The Docker build now fails when the bundled OpenCode is below the
supported minimum, and the entrypoint falls back to the bundled version
as the floor when OPENCODE_MIN_VERSION is unset instead of discarding
every persisted binary.
2026-11-06 09:43:35 -05:00
Chris Scott 807c7cb896 chore(opencode): move the OpenCode pin to 2.2.5 from a workspace catalog
Manager builds against and requires OpenCode 2.2.5. Every @opencode
package, plus effect and the OpenTUI/solid dependencies they share,
resolves from one pnpm workspace catalog instead of separate pins.

The built-against version and the supported floor are now separate
settings, so a future OpenCode release can move the pin before raising
the floor. Docker and the dev setup script read the floor from its own
argument.

ocm-cli moves to 0.6.0 on the same 2.2.5 and OpenTUI 0.8 baseline. A
linked server on a different version is still connectable and now shows
a neutral version notice instead of an unsupported badge.
2026-11-06 09:26:56 -05:00
Chris Scott 64e87ba1ea fix: guard the Assistant config conversion and place agent permission fallbacks after catch-all rules (OM-179)
The Assistant v1-to-v2 conversion now skips the write when OpenCode returns no converted assistant agent for a customized v1 one, or when the converted config fails validation, and it shares a file lock with ensureAssistantMode so the two never overwrite each other.

A new agent wildcard permission rule is inserted after the last catch-all * * rule instead of before it, so the catch-all cannot override it. The event subscription also counts each received event as stream activity.
2026-11-05 16:16:49 -05:00
Chris Scott 670c66f85b fix: add a Default agent permission choice and stop forwarding cookies to OpenCode (OM-179)
Each agent permission select now offers Default, shown when the agent has no wildcard rule for the action. Choosing Allow, Ask or Deny writes an agent rule even when it matches the inherited effect; choosing Default removes the agent's wildcard rules so the global permission applies.

The local OpenCode proxy drops the browser's Cookie header, as the linked-server proxy already does.
2026-11-05 15:58:53 -05:00
Chris Scott 38d618be9b fix: limit the restart-pending 409 to entity patches and keep inherited agent permissions (OM-179)
PATCH /opencode-config refuses only patches that name an agent, command, provider or MCP server while a restart is pending; other keys still apply. The assistant API reference documents the new 409.

The agent dialog adds a wildcard permission rule only for an action whose effect the user changed, so saving an agent no longer overrides an inherited global ask or deny.
2026-11-05 12:43:42 -05:00
Chris Scott 8d92f86142 fix: apply CodeRabbit auto-fixes 2026-11-03 08:29:59 -05:00
Chris Scott 3e6ebbd1dc fix: hold the upstream resync until the OpenCode proxy accepts requests (OM-179) 2026-11-03 00:06:39 -05:00
Chris Scott 9fca96ecea fix: refuse entity saves while a restart is pending and share replay payloads (OM-179) 2026-11-02 23:47:42 -05:00
Chris Scott 8a6fd56e9a fix: keep config references on save and apply review batch 2 fixes (OM-179) 2026-11-02 23:21:33 -05:00
Chris Scott 49bb4ebd36 loop: om-179-finish-adopting-op completed after 19 iterations 2026-11-02 13:13:31 -05:00
Chris Scott 0b2303a870 section 11: Phase 11: Assistant Mode writes v2 config; remove the hand-w 2026-11-02 11:20:39 -05:00
Chris Scott 6578e11eeb section 8: Phase 8: Managed effective config read through api.config.ge 2026-11-02 10:36:56 -05:00
Chris Scott 19d4ae25b6 section 7: Phase 7: Entity saves replace the matching v1 entry in the s 2026-11-02 10:32:28 -05:00
Chris Scott 48ca38c4e3 section 6: Phase 6: Config.Info validation owner and v2 config types in 2026-11-02 10:23:14 -05:00
Chris Scott 66b5d1ac06 section 5: Phase 5: Stop buffering in /api/opencode/* 2026-11-02 10:15:37 -05:00
Chris Scott 2b00825b0a section 4: Phase 4: One streaming proxy forwarder used by both proxy ro 2026-11-02 10:11:15 -05:00
Chris Scott 680a336a24 section 3: Phase 3: Remote server events use the registry client; remov 2026-11-02 10:08:00 -05:00
Chris Scott d749084163 section 2: Phase 2: Local SSE aggregator streams through the local Open 2026-11-02 09:57:21 -05:00
Chris Scott 01d8f0825a section 1: Phase 1: Shared reconnecting OpenCode event subscription and 2026-11-02 09:51:53 -05:00
Chris Scott 65066ab0dc feat(schedules): per-schedule switch to keep runs out of the inbox and notifications 2026-10-30 13:11:35 -04:00
Chris Scott 5db74e3fa7 fix(goals): validate the goal RPC output before returning it 2026-10-30 01:03:14 -04:00
Chris Scott cbe92c92ad refactor(goals): replace the Manager session-goal API with OpenCode built-in /goal 2026-10-29 12:38:39 -04:00
Chris Scott 82c46bbdb2 Merge pull request #469 from chriswritescode-dev/feat/schedules-sandbox
feat(schedules): run scheduled jobs in a per-job sandbox microVM
2026-10-25 16:44:02 -04:00
Chris Scott b46dd27e5b fix(schedules): retry run sandbox removal after the session sandbox is turned off mid-run 2026-10-25 16:39:28 -04:00
Chris Scott 060159f10b fix(schedules): validate sandbox only when updated and tear down by the run session's sandbox state 2026-10-25 16:28:40 -04:00
Chris Scott 070cb2f729 feat(schedules): run scheduled jobs in a per-job sandbox microVM 2026-10-25 14:49:38 -04:00
Chris Scott 8747cfece9 fix(notifications): phrase permission labels without losing acronyms
The always-allow summary interpolated the raw action id ("always allow
shell") while every other surface shows the label ("Run Command"), and
the permission dialog lowercased the whole label, turning "Fetch URL"
into "fetch url". getPermissionPhrase lowercases each word of the label
unless it is all caps, and both the scope summary and the dialog
question use it.
2026-10-25 11:20:21 -04:00