Commit Graph
1328 Commits
Author SHA1 Message Date
Chris Scott 0cecd4b364 chore(shared): publish @opencode-manager/shared to npm
Make the shared package public and publish it from the existing release workflow alongside ocm-cli so the mobile app can install it from npm instead of a pinned git commit.
2026-11-05 21:34:54 -05:00
Chris Scott d874c752e8 Merge pull request #477 from chriswritescode-dev/om-179-finish-adopting-opencode-client-typed
refactor(opencode): stream events through the client and use the v2 config schema
2026-11-05 18:15:08 -05:00
Chris Scott 462b981019 fix: delete an emptied permissions or request block instead of saving it empty (OM-179)
Returning every agent permission to Default now removes the permissions key, and clearing the last sampling value removes the request key, instead of leaving an empty array or an empty body in the config. Found while testing the Settings dialog in a browser.
2026-11-05 18:04:35 -05:00
Chris Scott 8b6ed7a861 fix: check the Assistant config inside its lock and pass bare stream events through (OM-179)
ensureAssistantMode now checks whether opencode.json exists after taking the file lock, so a conversion that ran in between cannot leave it acting on a stale result.

The browser event stream again delivers a message frame that carries a typed event without the directory envelope, as it did before the client migration, instead of dropping it silently.
2026-11-05 16:43:56 -05:00
Chris Scott 052b501963 fix(backend): exclude dist from the type check (OM-179)
With allowJs enabled and no exclude list, tsc --noEmit included backend/dist/index.js after a build, which crashed the checker with a stack overflow. CI type-checks before building, so the exclusion keeps local runs consistent with CI.
2026-11-05 16:32:43 -05:00
Chris Scott 6297403a41 docs: document the OpenCode client migration surfaces (OM-179)
Adds JSDoc comments to the functions this branch adds or changes, so the touched-code docstring coverage clears the review threshold. Comments only; no code, formatting or import changes.
2026-11-05 16:32:43 -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 84aa8dbeac fix: refresh the managed config after a raw config save (OM-179)
A raw editor save now refetches the managed view like a structured save does, so the Settings lists never hand a stale agent, command or provider to the next entity patch when the event stream does not deliver config.updated.
2026-11-05 16:08:22 -05:00
Chris Scott 58a9fcdc8e fix: leave agent temperature and top_p unset unless the user sets them (OM-179)
The agent dialog no longer writes temperature 0.7 and top_p 1 on every save. The fields start empty with a Default placeholder when the agent stores no value; an empty field is omitted, or removed with a merge-patch null when the agent stored it, so the provider default applies.
2026-11-05 16:05:29 -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 7c4cfd858c section 15: Phase 15: ocm-cli server probe through the client; full repo 2026-11-02 12:39:34 -05:00
Chris Scott fbc3e02208 section 14: Phase 14: Model view models use ModelInfo field names 2026-11-02 12:13:36 -05:00
Chris Scott 2d4abe79e1 section 13: Phase 13: Session status from the client type, compaction-dr 2026-11-02 12:01:18 -05:00
Chris Scott 717536c5a6 section 12: Phase 12: One shared flattened stream event type; delete the 2026-11-02 11:34:45 -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 1802cdc7de section 10: Phase 10: Model/provider editor and MCP manager on v2 provid 2026-11-02 10:57:51 -05:00
Chris Scott 81725fb345 section 9: Phase 9: Settings agents and commands read managed v2 config 2026-11-02 10:47:37 -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 af37ac3a8b Merge pull request #475 from chriswritescode-dev/feat/schedules-show-in-inbox
feat(schedules): per-schedule switch to keep runs out of the inbox and notifications
2026-10-30 13:48:59 -04: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 02bd0c01b6 Merge pull request #474 from chriswritescode-dev/refactor/opencode-builtin-goals
refactor(goals): replace the Manager session-goal API with OpenCode built-in /goal
2026-10-30 01:17:22 -04:00
Chris Scott 46ca623989 chore(ocm-cli): bump to 0.5.0 and document the /ocm-goal removal 2026-10-30 01:08:26 -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 c8647c1eec Merge pull request #472 from chriswritescode-dev/docs/readme-screenshots
docs(readme): refresh the hero screenshot and add a desktop one
2026-10-25 21:58:50 -04:00
Chris Scott 469d65de79 docs(readme): refresh the hero screenshot and add a desktop one 2026-10-25 21:57:03 -04:00
Chris Scott da5a9ebabf fix(frontend): collapse the linked-server project header when a tool panel is docked v1.1.0 2026-10-25 19:27:05 -04:00
Chris Scott 50d920fe6c chore(release): bump manager to 1.1.0 and ocm-cli to 0.4.1 2026-10-25 18:32:07 -04:00
Chris Scott 34e1df8944 Merge pull request #471 from chriswritescode-dev/feat/sessions-tool-panel
feat(sessions): move the session picker into the desktop right tool panel
2026-10-25 18:12:29 -04:00
Chris Scott 48d9bed4cc fix(sessions): route remote session deletion through the picker navigation
Replace the picker's onDeleteActiveSession callback override with a
deleteActiveSessionPath destination that goes through the shared open()
helper. Deleting the open remote session from the floating panel no longer
races a history-back close against the project navigation, and the docked
panel stays open on the remote project page like local deletion does.
2026-10-25 17:48:50 -04:00
Chris Scott d26ab578f0 feat(sessions): move the session picker into the desktop right tool panel
Replace the tool rail's Activity tool with a Sessions tool that renders the
full session picker (Activity, This project and Projects tabs, linked-server
selector, add repository), shared with the mobile sheet via RouteSessionPicker.

- A docked panel stays open and follows navigation (picker navigation mode
  'panel'); the floating overlay closes on select (mode 'replace').
- The session page's sessions shortcut and /sessions open the panel; the
  collapsed sidebar opens it when a tool rail is mounted and falls back to
  the modal dialog otherwise.
- useToolPanelToggle is the single panel toggle for the rail, shortcuts and
  sidebar.
- Remove ActivityList, the fixed activity panel width and the window label.
2026-10-25 17:16:36 -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 66b45b8f02 Merge pull request #468 from chriswritescode-dev/fix/remove-compact-activity-list
refactor(activity): remove the compact activity list from the mobile More drawer
2026-10-25 16:43:58 -04:00
Chris Scott 7ec3845cd7 Merge pull request #467 from chriswritescode-dev/fix/schedules-panel-full-height
fix(schedules): fill available panel height with jobs table
2026-10-25 16:43:56 -04:00
Chris Scott 7ec2bded75 Merge pull request #466 from chriswritescode-dev/fix/permission-phrase-wording
fix(notifications): phrase permission labels without losing acronyms
2026-10-25 16:43:52 -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