Commit Graph
1369 Commits
Author SHA1 Message Date
Forge Sandbox 2f10f12e12 Fix chat row menus and delete confirmation hidden behind the mobile session sheet
The picker list menu sat at z-200 and the destructive confirm dialog at
z-70, both below the bottom sheet overlay at z-250, so on a phone neither
the Chats tab row menu nor the chat delete confirmation could be tapped.
Raise both above the sheet the way other menus over sheets already do.
2026-11-17 23:10:45 +00:00
Chris Scott 8af2c189e9 Apply remaining changes 2026-11-07 16:46:21 -05:00
Chris Scott 5846ee3c20 Chats tab in the session picker (phone sheet and desktop 2026-11-07 15:54:59 -05:00
Chris Scott ccb150d5e6 Desktop sidebar Chats group 2026-11-07 14:59:28 -05:00
Chris Scott 275483f5e9 Frontend chat API, hooks and the chat session page 2026-11-07 14:54:26 -05:00
Chris Scott 3c064e4b60 Chat terminals and chat notification links 2026-11-07 14:40:15 -05:00
Chris Scott 666c1f0e0a Chat folders, ChatService and the /api/chats REST API 2026-11-07 14:36:10 -05:00
Chris Scott c6c13335e5 Merge pull request #480 from chriswritescode-dev/fix/shortcut-missing-key
fix(frontend): ignore keyless key events and stop composer autocorrect
2026-11-06 10:20:11 -05:00
Chris Scott bb196cb118 fix(frontend): turn off autocorrect, capitalization and spellcheck in the composer
Prompts often mention file names, commands and identifiers, which browser text assistance rewrites. Disable autocorrect, auto-capitalization and spellcheck in every composer mode, not only bash mode.
2026-11-06 10:19:30 -05:00
Chris Scott 6676c7ce7e Merge pull request #482 from chriswritescode-dev/chore/opencode-2.2.5-themes
chore(themes): regenerate OpenCode theme palettes from v2.2.5
2026-11-06 10:11:10 -05:00
Chris Scott 5ee0628fa5 chore(themes): regenerate OpenCode theme palettes from v2.2.5
PR #481 moved OPENCODE_PINNED_VERSION to 2.2.5 but left the generated palettes on an older tag. Rerun pnpm themes:sync against v2.2.5 and update the license attribution. Only colour values change, mainly the Catppuccin light variants.
2026-11-06 09:57:24 -05:00
Chris Scott 9205a6451d Merge pull request #481 from chriswritescode-dev/chore/opencode-2.2.5-catalog
chore(opencode): move the OpenCode pin to 2.2.5 from a workspace catalog
2026-11-06 09:48:57 -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 95b4d2cc52 Merge pull request #473 from fireball71/Fix-0-Providers
fix(frontend): show provider integrations missing from the active catalog
2026-11-06 09:13:28 -05:00
Chris Scott a1c2546219 fix(frontend): disable browser autocomplete and autocorrect in the composer 2026-11-06 08:41:43 -05:00
Chris Scott c87df9de4b fix(frontend): ignore a key event with no key in the shortcut handler 2026-11-06 08:41:43 -05:00
Chris Scott 8cebb9449e fix(frontend): leave MCP server integrations out of provider settings 2026-11-06 00:13:18 -05:00
Chris Scott 99713e15b4 fix(frontend): load provider integrations through the typed OpenCode client
Fetch integrations with callOpenCode instead of a dedicated backend route,
drop the unused provider credentials list query, label an existing key as
"Edit API key", and keep the loaded provider list when a background
refetch fails.
2026-11-06 00:10:20 -05:00
Chris Scott b179267376 Merge branch 'main' into Fix-0-Providers
# Conflicts:
#	frontend/src/contexts/EventContext.test.tsx
2026-11-06 00:10:18 -05:00
Chris Scott dc0220843e Merge pull request #479 from chriswritescode-dev/chore/publish-shared
chore(shared): publish @opencode-manager/shared to npm
2026-11-05 21:43:50 -05:00
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