Skip to content

Fix CLI-backed Studio actions in bundled runtime (honor PODCLI_BACKEND)#26

Merged
nmbrthirteen merged 1 commit into
mainfrom
fix/runcli-backend-path
Jun 19, 2026
Merged

Fix CLI-backed Studio actions in bundled runtime (honor PODCLI_BACKEND)#26
nmbrthirteen merged 1 commit into
mainfrom
fix/runcli-backend-path

Conversation

@nmbrthirteen

Copy link
Copy Markdown
Owner

Bug

In the bundled runtime, thumbnail-config import/export/reset failed:

Import failed: .../runtime/python/bin/python3: can't open file
'.../podcli/backend/cli.py': [Errno 2] No such file or directory

runCli (and the DaVinci export) resolved the Python backend at projectRoot/backend. In a hermetic install the bundle ships the backend under runtime/backend and the launcher points PODCLI_BACKEND at it, so the hardcoded path missed it. This broke every CLI-backed Studio action in the bundle (clips edit, bake-thumbnail, and the new thumbnail-config commands). Executor-based features were unaffected because pythonBackend already honored PODCLI_BACKEND.

Fix

Resolve the backend dir once in paths.tsPODCLI_BACKEND when set, else projectRoot/backend — and use it for runCli, pythonBackend, and the DaVinci CLI path. Works identically in dev and in the bundled runtime, on every platform.

Verification

  • Ran the built dist/studio/web-server.mjs with PODCLI_BACKEND set (as the launcher does): GET, PUT import, and reset all succeed; no "No such file" errors.
  • npx vitest run — 47 pass (incl. paths.test.ts); root + client tsc clean; studio bundle builds.

runCli and the DaVinci export resolved the Python backend at
projectRoot/backend, which in a hermetic install points outside the
bundle (the launcher ships it under runtime/backend and sets
PODCLI_BACKEND). That broke every CLI-backed Studio action there —
including the new thumbnail-config import/export/reset, which failed with
"can't open .../backend/cli.py: No such file or directory".

Resolve the backend dir once (PODCLI_BACKEND, else projectRoot/backend)
and use it for runCli, pythonBackend, and the DaVinci CLI, so the same
code works in dev and in the bundled runtime on every platform.
@coderabbitai

coderabbitai Bot commented Jun 19, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@nmbrthirteen, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 32 minutes and 53 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 766ea58d-1dfb-4d4e-a685-2810541e5b50

📥 Commits

Reviewing files that changed from the base of the PR and between 4402588 and 12ac980.

📒 Files selected for processing (2)
  • src/config/paths.ts
  • src/ui/web-server.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/runcli-backend-path

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@nmbrthirteen nmbrthirteen merged commit f4d8f51 into main Jun 19, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant