[PR #5341] [CLOSED] Add OpenCode as a connection provider #6734

Closed
opened 2026-10-23 04:13:10 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5341
Author: @Selene29
Created: 8/20/2026
Status: ❌ Closed

Base: staging ← Head: feature/opencode-provider


📝 Commits (4)

  • a76cbb8 feat(connections): add OpenCode provider
  • 2aa18ef chore(models): refresh Codex CLI catalog
  • 860b290 fix(connections): harden OpenCode runtime lifecycle
  • ce61b0c fix(connections): forward OpenCode debug mode

📊 Changes

15 files changed (+932 additions, -17 deletions)

View changed files

📝 CHANGELOG.md (+5 -0)
📝 README.md (+1 -1)
📝 packages/client/src/components/connections/ConnectionEditor.tsx (+35 -2)
📝 packages/client/src/localization/locales/en.json (+6 -0)
📝 packages/server/package.json (+1 -0)
📝 packages/server/src/db/schema/connections.ts (+1 -0)
📝 packages/server/src/routes/connections.routes.ts (+46 -0)
📝 packages/server/src/services/llm/provider-registry.ts (+10 -0)
➕ packages/server/src/services/llm/providers/opencode.provider.ts (+576 -0)
📝 packages/shared/src/constants/model-lists.ts (+13 -13)
📝 packages/shared/src/constants/providers.ts (+14 -1)
📝 packages/shared/src/schemas/connection.schema.ts (+1 -0)
📝 packages/shared/src/types/connection.ts (+1 -0)
📝 pnpm-lock.yaml (+10 -0)
➕ scripts/regressions/opencode-provider.regression.ts (+212 -0)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.

Linked issue

Closes #5342

Why this change

Marinara users who already authenticate providers through OpenCode should be able to reuse those models without copying the same credentials into another application.

Implementation owner: @Selene29

What changed

  • Added OpenCode as a local-auth text connection provider across shared contracts, persistence, server routing, and the connection editor.
  • Starts one shared loopback OpenCode server on demand and discovers models from connected OpenCode providers.
  • Sends each completion through a temporary tool-denied session, forwards transcript attachments, reports token usage, handles cancellation, and removes the session afterward.
  • Added localized setup guidance, README coverage, an Unreleased changelog entry, and focused regression coverage.
  • Refreshed the ChatGPT-authenticated Codex fallback list from the current visible CLI catalog while excluding hidden internal entries.

Validation

  • pnpm build
  • pnpm localization:check
  • pnpm --filter @marinara-engine/server lint
  • pnpm regression:node -- --filter opencode-provider
  • pnpm regression:node -- --filter provider-compat
  • Prettier check for every changed TypeScript and TSX file
  • Ran the app and verified the OpenCode connection flow manually
  • Checked light and dark themes at desktop and mobile widths
  • Read and followed CONTRIBUTING.md

Manual verification notes

Verified by the contributor in the running app:

  • Fetch Models listed models from the connected OpenCode provider.
  • Connection Test completed a real OpenCode request successfully.
  • Send Test Message returned a successful model response.

Still to verify before merge:

  • Cancel an in-flight reply and confirm Marinara returns to idle cleanly.
  • Inspect the connection editor in light and dark themes at desktop and mobile widths.

Docs and release impact

  • Confirm the included README and CHANGELOG updates are sufficient
  • Confirm no docs-i18n follow-up is required because no files under docs/ changed
  • Confirm no version bump is required

UI evidence

Attach the Connection Tests screenshot before merge.

Summary by CodeRabbit

  • New Features
    • Added OpenCode as a locally connected text provider.
    • Added setup guidance, installation prerequisites, provider connections, and model discovery.
    • Supports local chat requests with multimodal prompts and automatic temporary-session cleanup.
    • Added updated GPT-5.6 models and refreshed the ChatGPT-authenticated Codex catalog, removing obsolete entries.
  • Documentation
    • Updated the README and changelog with OpenCode support and model catalog changes.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/5341 **Author:** [@Selene29](https://github.com/Selene29) **Created:** 8/20/2026 **Status:** ❌ Closed **Base:** `staging` ← **Head:** `feature/opencode-provider` --- ### 📝 Commits (4) - [`a76cbb8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a76cbb86d5d30cb8a67ecfca438c83bb57fd0367) feat(connections): add OpenCode provider - [`2aa18ef`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2aa18efdc6c2ecdcd2716e874503c1864b365049) chore(models): refresh Codex CLI catalog - [`860b290`](https://github.com/Pasta-Devs/Marinara-Engine/commit/860b290ecff426d842059102bf4b6bb0dc5d94f5) fix(connections): harden OpenCode runtime lifecycle - [`ce61b0c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ce61b0cf7da5faf400bfe4f55f35edd59d936cdf) fix(connections): forward OpenCode debug mode ### 📊 Changes **15 files changed** (+932 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+5 -0) 📝 `README.md` (+1 -1) 📝 `packages/client/src/components/connections/ConnectionEditor.tsx` (+35 -2) 📝 `packages/client/src/localization/locales/en.json` (+6 -0) 📝 `packages/server/package.json` (+1 -0) 📝 `packages/server/src/db/schema/connections.ts` (+1 -0) 📝 `packages/server/src/routes/connections.routes.ts` (+46 -0) 📝 `packages/server/src/services/llm/provider-registry.ts` (+10 -0) ➕ `packages/server/src/services/llm/providers/opencode.provider.ts` (+576 -0) 📝 `packages/shared/src/constants/model-lists.ts` (+13 -13) 📝 `packages/shared/src/constants/providers.ts` (+14 -1) 📝 `packages/shared/src/schemas/connection.schema.ts` (+1 -0) 📝 `packages/shared/src/types/connection.ts` (+1 -0) 📝 `pnpm-lock.yaml` (+10 -0) ➕ `scripts/regressions/opencode-provider.regression.ts` (+212 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. ## Linked issue Closes #5342 ## Why this change Marinara users who already authenticate providers through OpenCode should be able to reuse those models without copying the same credentials into another application. Implementation owner: @Selene29 ## What changed - Added OpenCode as a local-auth text connection provider across shared contracts, persistence, server routing, and the connection editor. - Starts one shared loopback OpenCode server on demand and discovers models from connected OpenCode providers. - Sends each completion through a temporary tool-denied session, forwards transcript attachments, reports token usage, handles cancellation, and removes the session afterward. - Added localized setup guidance, README coverage, an Unreleased changelog entry, and focused regression coverage. - Refreshed the ChatGPT-authenticated Codex fallback list from the current visible CLI catalog while excluding hidden internal entries. ## Validation - [x] `pnpm build` - [x] `pnpm localization:check` - [ ] `pnpm --filter @marinara-engine/server lint` - [x] `pnpm regression:node -- --filter opencode-provider` - [ ] `pnpm regression:node -- --filter provider-compat` - [ ] Prettier check for every changed TypeScript and TSX file - [x] Ran the app and verified the OpenCode connection flow manually - [ ] Checked light and dark themes at desktop and mobile widths - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes Verified by the contributor in the running app: - Fetch Models listed models from the connected OpenCode provider. - Connection Test completed a real OpenCode request successfully. - Send Test Message returned a successful model response. Still to verify before merge: - Cancel an in-flight reply and confirm Marinara returns to idle cleanly. - Inspect the connection editor in light and dark themes at desktop and mobile widths. ## Docs and release impact - [x] Confirm the included README and CHANGELOG updates are sufficient - [x] Confirm no `docs-i18n` follow-up is required because no files under `docs/` changed - [ ] Confirm no version bump is required ## UI evidence Attach the Connection Tests screenshot before merge. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added OpenCode as a locally connected text provider. * Added setup guidance, installation prerequisites, provider connections, and model discovery. * Supports local chat requests with multimodal prompts and automatic temporary-session cleanup. * Added updated GPT-5.6 models and refreshed the ChatGPT-authenticated Codex catalog, removing obsolete entries. * **Documentation** * Updated the README and changelog with OpenCode support and model catalog changes. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:13:10 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#6734
No description provided.