-
Notifications
You must be signed in to change notification settings - Fork 240
fix: preserve forward upstream URLs in cURL exports #395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
5ffc4a1
fix: preserve forward upstream URLs in cURL exports
YoungCan-Wang e1e486f
docs: identify issue 392 trace evidence
YoungCan-Wang 1954384
test: cover copied cURL interaction
YoungCan-Wang 91244a8
test: exercise copied cURL in coverage gate
YoungCan-Wang 39b1d29
fix: harden forward cURL URL reconstruction
YoungCan-Wang a7fa031
Merge main into codex/fix-curl-upstream-url
liaohch3 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # Issue 392 cURL upstream evidence | ||
|
|
||
| This evidence comes from a real OpenCode 1.16.0 forward-proxy run against the | ||
| configured OpenCode provider. The isolated trace session is | ||
| `820a25b9-e9b6-49d9-b70e-c3f1cf6ee776` and contains three captured records. | ||
|
|
||
| The exported viewer records `https://opencode.ai` as `upstream_base_url` for | ||
| the model request at `/zen/v1/chat/completions`. Invoking the viewer's cURL | ||
| copy action produced: | ||
|
|
||
| ```text | ||
| curl -X POST 'https://opencode.ai/zen/v1/chat/completions' \ | ||
| ``` | ||
|
|
||
| The screenshot shows the real response marker `ISSUE392_OK` together with the | ||
| captured upstream origin and request path. Authentication headers remain | ||
| redacted in traces and copied cURL commands by design. |
Binary file added
BIN
+175 KB
...vidence/pr/issue-392-curl-upstream/opencode-forward-trace-upstream-metadata.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.