Skip to content

Update path prefix handling in opencode_proxy.rs#548

Closed
keganpowers34 wants to merge 1 commit intospacedriveapp:mainfrom
keganpowers34:patch-1
Closed

Update path prefix handling in opencode_proxy.rs#548
keganpowers34 wants to merge 1 commit intospacedriveapp:mainfrom
keganpowers34:patch-1

Conversation

@keganpowers34
Copy link
Copy Markdown

used opencode to fix the issue changed /opencode/ to /api/opencode worked fine

used opencode to fix the issue changed /opencode/ to /api/opencode worked fine
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 7, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 2597563a-58c8-49fd-9b22-0560e44fb23e

📥 Commits

Reviewing files that changed from the base of the PR and between fb5c0f3 and 753016e.

📒 Files selected for processing (1)
  • src/api/opencode_proxy.rs

Walkthrough

Updated proxy path parsing logic in opencode_proxy.rs to strip the /api/opencode/ prefix instead of /opencode/, changing the expected incoming request URI path format and how port and remainder segments are extracted.

Changes

Cohort / File(s) Summary
Proxy Path Parsing
src/api/opencode_proxy.rs
Modified prefix stripping from /opencode/ to /api/opencode/ in path parsing logic, affecting how port and remainder path segments are extracted from incoming requests.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: updating path prefix handling in opencode_proxy.rs from /opencode/ to /api/opencode/.
Description check ✅ Passed The description is related to the changeset, explaining that the prefix was changed from /opencode/ to /api/opencode/ to fix an issue, though the explanation is brief and informal.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@keganpowers34
Copy link
Copy Markdown
Author

@jamiepine

@keganpowers34
Copy link
Copy Markdown
Author

#546

@keganpowers34
Copy link
Copy Markdown
Author

fixed by jamie!

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