Commit Graph
844 Commits
Author SHA1 Message Date
Chris Scott 4b084ba15c fix(frontend): subscribe event stream directories after connecting instead of in the URL 2026-11-28 22:51:11 -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 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 4a66d4031f fix(frontend): paint the iOS PWA status bar and keep it filled 2026-11-28 15:05:58 -05:00
Chris Scott eab3022d63 Invalidate held playback callbacks when read-back is turned off 2026-11-27 23:11:25 -05:00
Chris Scott efcb9dee28 Pause cleanly at the transcription failure limit, forget resent text once delivered, and keep the composer opaque while a form is open 2026-11-27 23:10:14 -05:00
Chris Scott 1ae24ace07 Clear the transcription failure flag when a turn still sends text 2026-11-27 23:08:18 -05:00
Chris Scott eca6a29b87 Move the read-aloud toggle beside Pause so Stop fits in the voice bar 2026-11-27 23:06:11 -05:00
Chris Scott 99b8d854d4 Keep voice mode listening after empty sends and transcription errors, and let failed sends be resent 2026-11-27 22:49:47 -05:00
Chris Scott 6904cfbc58 feat(frontend): give the composer its own strip and let voice mode skip reading replies 2026-11-27 22:26:32 -05:00
Chris Scott bc36df403f Cap the config panel to available height, add menu keyboard navigation and drop the unreachable model fallback 2026-11-27 22:06:10 -05:00
Chris Scott c586bcb4ad feat(frontend): condense the prompt composer into one session config surface 2026-11-27 21:58:57 -05:00
Chris Scott 86794e896b Apply remaining changes 2026-11-27 00:13:26 -05:00
Chris Scott f01fa4ab2f Remove the duplicate floating Stop and run the full checks 2026-11-27 00:08:14 -05:00
Chris Scott 64749a760d One composer row with the Send, Stop and microphone slot 2026-11-26 23:52:08 -05:00
Chris Scott 13eca93b92 Session config surface replaces the row controls 2026-11-26 23:48:09 -05: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 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 d153bc0d21 Remove the unreachable agent and command rename plumbing 2026-11-13 19:47:14 +00: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 51fb4fd12f Assert the event stream exists in the deferred bootstrap test 2026-11-13 03:28:24 -05:00
lil-worker-cstech[bot] 26fd21250a fix: apply 1 pr-agent suggestions
- frontend/src/components/model/ModelQuickSelect.test.tsx:220 Unwrap the async helper's return type

Applied-by: pr-agent-autoapply
2026-11-13 06:50:08 +00:00
Chris Scott 19ee1d9173 refactor: satisfy no-array-filter-map and no-accumulating-spread 2026-11-13 01:45:13 -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 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 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 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 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 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 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