[PR #1133] [MERGED] feat(claude-subscription): pass OAuth env through refactor Docker compose #4936

Closed
opened 2026-10-22 04:11:51 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1133
Author: @aeriondyseti
Created: 5/24/2026
Status: ✅ Merged
Merged: 5/25/2026
Merged by: @cha1latte

Base: refactor ← Head: feat/claude-subscription-env-discoverability


📝 Commits (2)

  • af3f2e5 feat(claude-subscription): surface CLAUDE_CODE_OAUTH_TOKEN in .env.example and docker-compose
  • fcbccd1 Merge refactor base for Claude subscription env

📊 Changes

1 file changed (+6 additions, -0 deletions)

View changed files

📝 docker-compose.yml (+6 -0)

📄 Description

Linked issue

Closes #1134.

Why this change

  • The Claude Subscription provider (claude_subscription) can use a long-lived OAuth token via CLAUDE_CODE_OAUTH_TOKEN.
  • The refactor branch Docker Compose path did not pass Claude Subscription env vars into the container, so Docker users who set the token in their shell or .env still would not get it inside marinara-server.
  • On the refactor branch, .env.example no longer exists, so this version carries the Docker passthrough only.

What changed

  • docker-compose.yml: add CLAUDE_CODE_OAUTH_TOKEN=${CLAUDE_CODE_OAUTH_TOKEN:-} to the marinara-server service environment.
  • docker-compose.yml: add CLAUDE_CONFIG_DIR=${CLAUDE_CONFIG_DIR:-/data/claude-config} so the Claude CLI config/session path defaults inside the mounted /data volume.

This keeps the change no-op for users who do not set the token while making shell env and compose env-file values available to the refactor Docker service.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

Codex verified on the refactor-targeted branch:

  • pnpm check passes.
  • docker compose config renders the default empty token and /data/claude-config config path.
  • docker compose config with shell env propagates CLAUDE_CODE_OAUTH_TOKEN.
  • docker compose --env-file propagates both CLAUDE_CODE_OAUTH_TOKEN and a custom CLAUDE_CONFIG_DIR.

Suggested manual checks before merge:

  • Manually verify with a real token in .env: set CLAUDE_CODE_OAUTH_TOKEN=sk-ant-oat01-..., docker compose up --build, confirm the container env includes it, then test a Claude Subscription connection in the UI.
  • Manually verify with token in shell env instead: export CLAUDE_CODE_OAUTH_TOKEN=sk-ant-oat01-..., same compose and UI checks.
  • Manually verify the no-op default: with neither value set, docker compose up --build should still start normally.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

No version or release metadata changes.

UI evidence (if applicable)

No UI changes - Docker config only.


🔄 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/1133 **Author:** [@aeriondyseti](https://github.com/aeriondyseti) **Created:** 5/24/2026 **Status:** ✅ Merged **Merged:** 5/25/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `feat/claude-subscription-env-discoverability` --- ### 📝 Commits (2) - [`af3f2e5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/af3f2e5489ee1397d015712faa4f7eb584cd5a1a) feat(claude-subscription): surface CLAUDE_CODE_OAUTH_TOKEN in .env.example and docker-compose - [`fcbccd1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/fcbccd1ca9a2f1cd3b646c3abc118f818c9d8b98) Merge refactor base for Claude subscription env ### 📊 Changes **1 file changed** (+6 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docker-compose.yml` (+6 -0) </details> ### 📄 Description ## Linked issue Closes #1134. ## Why this change - The Claude Subscription provider (`claude_subscription`) can use a long-lived OAuth token via `CLAUDE_CODE_OAUTH_TOKEN`. - The refactor branch Docker Compose path did not pass Claude Subscription env vars into the container, so Docker users who set the token in their shell or `.env` still would not get it inside `marinara-server`. - On the refactor branch, `.env.example` no longer exists, so this version carries the Docker passthrough only. ## What changed - `docker-compose.yml`: add `CLAUDE_CODE_OAUTH_TOKEN=${CLAUDE_CODE_OAUTH_TOKEN:-}` to the `marinara-server` service environment. - `docker-compose.yml`: add `CLAUDE_CONFIG_DIR=${CLAUDE_CONFIG_DIR:-/data/claude-config}` so the Claude CLI config/session path defaults inside the mounted `/data` volume. This keeps the change no-op for users who do not set the token while making shell env and compose env-file values available to the refactor Docker service. ## Validation - [x] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes Codex verified on the refactor-targeted branch: - `pnpm check` passes. - `docker compose config` renders the default empty token and `/data/claude-config` config path. - `docker compose config` with shell env propagates `CLAUDE_CODE_OAUTH_TOKEN`. - `docker compose --env-file` propagates both `CLAUDE_CODE_OAUTH_TOKEN` and a custom `CLAUDE_CONFIG_DIR`. Suggested manual checks before merge: - [ ] Manually verify with a real token in `.env`: set `CLAUDE_CODE_OAUTH_TOKEN=sk-ant-oat01-...`, `docker compose up --build`, confirm the container env includes it, then test a Claude Subscription connection in the UI. - [ ] Manually verify with token in shell env instead: `export CLAUDE_CODE_OAUTH_TOKEN=sk-ant-oat01-...`, same compose and UI checks. - [ ] Manually verify the no-op default: with neither value set, `docker compose up --build` should still start normally. ## Docs and release impact - [x] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) No version or release metadata changes. ## UI evidence (if applicable) No UI changes - Docker config only. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:11:51 +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#4936
No description provided.