Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/opencode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"@opencode-ai/script": "workspace:*",
"@opencode-ai/sdk": "workspace:*",
"@opencode-ai/util": "workspace:*",
"@openrouter/ai-sdk-provider": "1.5.4",
"@openrouter/ai-sdk-provider": "2.2.3",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The @openrouter/ai-sdk-provider dependency was updated, but the corresponding version-specific patch in patchedDependencies was not. The patch will no longer be applied, causing a silent regression.
Severity: HIGH

Suggested Fix

Create a new patch file for @openrouter/ai-sdk-provider version 2.2.3 that includes the necessary modifications. Update the patchedDependencies entry in the root package.json to point to the new patch file for version 2.2.3. After updating, run the package manager's install command to apply the patch and update the lockfile.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: packages/altimate-code/package.json#L85

Potential issue: The version of the `@openrouter/ai-sdk-provider` dependency was updated
to `2.2.3`, but the corresponding entry in `patchedDependencies` in the root
`package.json` was not updated. The existing patch is specifically for version `1.5.4`.
As a result, the patch, which adds the `providerMetadata.openrouter.reasoning_details`
field to `reasoning-end` stream events, will no longer be applied. This will cause a
silent regression where any code consuming
`providerMetadata?.openrouter?.reasoning_details` will receive `undefined`, leading to
malfunctioning features that rely on these reasoning details from OpenRouter streams.

Did we get this right? 👍 / 👎 to inform future reviews.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The patchedDependencies entry for @openrouter/ai-sdk-provider was not updated to 2.2.3, causing the patch to fail and breaking related functionality.
Severity: HIGH

Suggested Fix

Update the patchedDependencies entry in the root package.json to reference the new version 2.2.3. This may require regenerating the patch for the new version. After updating the package.json, run bun install to update the bun.lockb file with the correct dependency and patch information.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: packages/opencode/package.json#L86

Potential issue: The version of the `@openrouter/ai-sdk-provider` dependency was updated
from `1.5.4` to `2.2.3`, but the corresponding entry in `patchedDependencies` in the
root `package.json` was not updated. The patch is keyed to the specific version `1.5.4`.
When `bun install` runs, it will install version `2.2.3` but will fail to apply the
patch because the version in the patch key does not match. This will lead to the loss of
functionality provided by the patch, such as support for `reasoning_details` in
OpenRouter.

"@opentui/core": "0.1.86",
"@opentui/solid": "0.1.86",
"@parcel/watcher": "2.5.1",
Expand Down
Loading