mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7460] [MERGED] fix(claude-subscription): use any installed claude on Android #7744
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7744
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7460
Author: @qrewq5003-oss
Created: 10/12/2026
Status: ✅ Merged
Merged: 10/12/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/claude-subscription-termux-cli📝 Commits (7)
5889d81fix(claude-subscription): use any installed claude on Android00162c3Merge remote-tracking branch 'origin/staging' into fix/claude-subscription-termux-clid093b6cfix(claude-subscription): prefer a current install on Android too99d6985fix(claude-subscription): stop the request when Claude Code loads claude.ai connectorsa0c4e22fix(claude-subscription): tell Android only to update Claude Codee564b12Merge origin/staging into fix/claude-subscription-termux-cli2b0fa3bMerge branch 'staging' into fix/claude-subscription-termux-cli📊 Changes
6 files changed (+202 additions, -45 deletions)
View changed files
📝
.env.example(+3 -1)📝
docs/CONFIGURATION.md(+13 -13)📝
packages/server/src/routes/connections.routes.ts(+14 -2)📝
packages/server/src/services/llm/providers/claude-subscription.provider.ts(+39 -17)📝
packages/server/src/services/llm/providers/claude-subscription/installed-cli.ts(+10 -6)📝
scripts/regressions/claude-subscription-installed-cli.regression.ts(+123 -6)📄 Description
Linked issue
Closes #7459
Why this change
findClaudeCodeInstall()picks the hostclaudeonly when its version is at least the bundled version, and returns nothing when the bundled version is unknown. On Termux, a host install that is older than the bundled copy (common after an SDK bump, before the host install auto-updates) therefore breaks Claude (Subscription) entirely, even though it is the only build that can run there.What changed
installed-cli.ts: onprocess.platform === "android", accept any installedclaudeand skip the bundled-version floor. Other platforms are unchanged, andCLAUDE_SUBSCRIPTION_USE_INSTALLED_CLI=falseis still honored.claude-subscription-installed-cli.regression.ts: add Android cases (an older host install and an unknown bundled version). Existing cases now pinplatform: "linux"so the suite gives the same result when it runs on Termux.Removed whenCHANGELOG.md: user-facing entry under[Unreleased].stagingwas merged in: PRs no longer add changelog entries (maintainer policy, 2026-10-12); the changelog is written at release time.Maintainer follow-up commits:
origin/stagingto resolve theCHANGELOG.mdconflict by dropping this PR's entry.installed-cli.ts: on Android, still prefer an install that is at least as new as the bundled version when one exists, and fall back to the first older install only when none is. Before this, a stale~/.local/bin/claudecould shadow an up-to-dateclaudelater on PATH.claude-subscription-installed-cli.regression.ts: Android cases for "a current install found after an older one wins" and "CLAUDE_SUBSCRIPTION_USE_INSTALLED_CLI=falsestill holds".Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
What the agent ran (Termux, Android 12, arm64):
node ./scripts/run-regressions.mjs --filter scripts/regressions/claude-subscription-installed-clipasses. It fails on the new Android assertion with theinstalled-cli.tschange reverted.tsc --noEmitinpackages/serverreports no errors in the changed files. A fullpnpm checkwas not run: pnpm is not installed on this device, and the temporary worktree type-checked against an older@marinara-engine/shared, which caused unrelated errors.claudepath to the SDK): Test Connection, Send Test Message and Diagnose Model Routing succeed onclaude-opus-5-5, where all three failed before with the error above.What the maintainer-side agent ran after the follow-up commits (macOS, arm64):
pnpm checkexits 0.node ./scripts/run-regressions.mjs --filter claude-subscriptionpasses (2/2). The new "current install found after an older one" assertion fails against the earlier version of this branch.--committedagainst thestagingmerge base) reported no findings.on v2.5.0 with an equivalent patch: Test
Connection and Send Test Message pass.
Still to verify manually:
claudestill falls back to the bundled build).Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)No files under
docs/are touched, and theCHANGELOG.mdentry was dropped (see above).docs/CONFIGURATION.mdand.env.exampledescribeCLAUDE_SUBSCRIPTION_USE_INSTALLED_CLIas using the installed copy "when it is at least as new as the copy bundled with Marinara", which no longer covers Android; left for a maintainer decision.UI evidence (if applicable)
No UI changes.
🤖 Generated with Claude Code
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.