forked from anomalyco/opencode
-
Notifications
You must be signed in to change notification settings - Fork 2
sync: merge upstream v1.0.146 into integration #116
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
Closed
Closed
Changes from all commits
Commits
Show all changes
71 commits
Select commit
Hold shift + click to select a range
6288a03
bump bun to 1.3.4
rekram1-node 03c6c3f
docs: document accept always behavior (#5340)
igordertigor 936a6be
stuff adam needs
thdxr a1175bd
gen types
thdxr 0ab3b88
chore: format code
actions-user 59fb3ae
ignore: add bash tests
rekram1-node 9ad828d
tui: use random free port and enable icon discovery by default
thdxr 8d3eac2
fix type
thdxr 67a95c3
wip(desktop): progress
adamdotdevin a4ec619
wip(desktop): progress
adamdotdevin 6866a06
wip(desktop): progress
adamdotdevin ada40de
wip(desktop): progress
adamdotdevin e694d4d
wip(desktop): progress
adamdotdevin f20d6e8
wip(desktop): progress
adamdotdevin 804ad58
wip(desktop): progress
adamdotdevin 91d743e
wip(desktop): progress
adamdotdevin 190fa4c
wip(desktop): progress
adamdotdevin 58e66dd
wip(desktop): progress
adamdotdevin 86f7cc1
tui: pass dynamic port to frontend
thdxr e060f96
Update Nix flake.lock and hashes
actions-user 7435d94
fix(cli): obtain directory data from server (#5320)
OpeOginni 7d82f17
tweak: small fix
rekram1-node e46080a
fix(auth): add plugin lookup for custom provider in 'Other' flow (#5324)
Yukaii 72eb004
feat: add helicone docs + helicone session tracking (#5265)
H2Shami b274371
feat: use |- for intermediate sub-agent steps (#5336)
paralin e36c349
tweak: oc -> OC
rekram1-node cbb591e
fix: more descriptive tool or subtask execution failed error (#5337)
paralin 85cfa22
wip(desktop): progress
adamdotdevin 15b8c14
fix: tauri
adamdotdevin 89d51ad
compaction: improve compaction prompt (#5348)
shantur 56540f8
wip(desktop): progress
adamdotdevin 1a1874d
docs: desktop
jayair 92fa66d
core: reposition OpenCode as open source multi-platform coding agent
jayair 1361117
fix deploy
thdxr fadeed1
desktop: enable zoom hotkeys in Tauri app
thdxr df55ad8
Add Cerebras integration header with opencode identifier (#5354)
sebastiand-cerebras 01fd0d8
docs(bash): clarify description parameter is required (#5353)
zenyr 499ad4f
fix: light mode visibility for filepath in /undo diff files (#5352)
koichincom bd1f5f8
tauri: update icons
Brendonovich 6f5f73a
desktop: exclude ts-dist from tsconfig sources
Brendonovich 439aebb
tweak: correct thinkingLevel
rekram1-node 7b4f852
ignore: tmp transform exclusion
rekram1-node 530b75a
ignore
thdxr 13a7700
global.dispose
thdxr 28c6320
chore: format code
actions-user d88912a
global bus
thdxr 9b05217
ignore
thdxr f1b8707
ignore
thdxr 7eb509d
ci: rm bash tool from opencode ci workflow, reduce risks
rekram1-node d93c8c7
docs: update doc sdk.mdx (#5315)
AyushWalekar a02223a
sync
thdxr d14462f
fix
thdxr 4309c07
domain
thdxr 5955d20
remove
thdxr 231390c
ci
thdxr 578072b
use new share url
thdxr 6251231
release: v1.0.144
40f121c
prevent indexing of share page
thdxr 65a6b3d
chore: format code
actions-user 85c01e8
enterprise: add social card meta tags to share pages
thdxr 2d9c76b
enterprise: add default social card images to HTML head
thdxr 9e0a2bc
Update Nix flake.lock and hashes
actions-user a8f83cd
ignore: comment out item in project cfg
rekram1-node f7e29a1
downgrade bun
rekram1-node 5d57d03
opencode config
thdxr c211b22
update
thdxr fbad378
release: v1.0.145
ddd5464
release: v1.0.146
dd4e690
sync: merge upstream v1.0.146 into integration
opencode-agent[bot] feed63a
sync: merge upstream v1.0.146 into integration
opencode-agent[bot] 503d678
chore: format code
actions-user 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
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 |
|---|---|---|
| @@ -1 +1 @@ | ||
| v1.0.143 | ||
| v1.0.146 |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| { | ||
| "nodeModules": "sha256-JT8J+Nd2kk0x46BcyotmBbM39tuKOW7VzXfOV3R3sqQ=" | ||
| "nodeModules": "sha256-WcFRAG8w1XwgZxzyAawkQ7mYfJxu5VhA3sPApEG6FdI=" | ||
| } |
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
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,20 @@ | ||
| import type { APIEvent } from "@solidjs/start/server" | ||
|
|
||
| async function handler(evt: APIEvent) { | ||
| const req = evt.request.clone() | ||
| const url = new URL(req.url) | ||
| const targetUrl = `https://enterprise.opencode.ai/${url.pathname}${url.search}` | ||
| const response = await fetch(targetUrl, { | ||
| method: req.method, | ||
| headers: req.headers, | ||
| body: req.body, | ||
| }) | ||
| return response | ||
| } | ||
|
|
||
| export const GET = handler | ||
| export const POST = handler | ||
| export const PUT = handler | ||
| export const DELETE = handler | ||
| export const OPTIONS = handler | ||
| export const PATCH = handler | ||
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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Critical: Add authentication, error handling, and fix URL construction.
The proxy handler has several critical issues:
URL Construction Bug (Line 6): The template literal creates a double slash when
url.pathnamestarts with/. Usehttps://enterprise.opencode.ai${url.pathname}${url.search}instead.Missing Authentication: No authentication or authorization checks before proxying requests to the enterprise endpoint, potentially exposing the backend to unauthorized access.
No Error Handling: The
fetchcall lacks error handling. Network failures, timeouts, or non-2xx responses will propagate as unhandled errors.No Timeout: External calls should have timeout protection to prevent hanging request threads.
Header Leakage: Blindly forwarding all headers (line 9) could leak sensitive client information (cookies, auth tokens, internal headers) to the external service.
Body Streaming: For large request bodies, consider whether the body cloning approach (line 4) is appropriate or if streaming is needed.
Apply this diff to fix the URL construction:
Consider adding authentication, error handling, and timeout:
🤖 Prompt for AI Agents