chore: merge upstream anomalyco/opencode:dev into collab - #72
Merged
Conversation
Co-authored-by: Luke Parker <10430890+Hona@users.noreply.github.com>
Co-authored-by: Matt Carey <mcarey@cloudflare.com>
…nomalyco#38119) Co-authored-by: Brendan Allan <git@brendonovich.dev> Co-authored-by: Brendan Allan <14191578+Brendonovich@users.noreply.github.com>
Co-authored-by: Jack <jack@anoma.ly>
Co-authored-by: Aiden Cline <rekram1-node@users.noreply.github.com> Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
Co-authored-by: Aiden Cline <rekram1-node@users.noreply.github.com>
Co-authored-by: Filip <34747899+neriousy@users.noreply.github.com>
…re AI Gateway (anomalyco#42634) Co-authored-by: Keefe Tang <keefe@pentagram.me>
Co-authored-by: Victor Navarro <36263538+vimtor@users.noreply.github.com>
Co-authored-by: Aiden Cline <rekram1-node@users.noreply.github.com>
Co-authored-by: Luke Parker <10430890+Hona@users.noreply.github.com>
Co-authored-by: Frank <frank@anoma.ly>
Brings 2,400+ upstream commits into the collab branch: - New providers: xAI, Snowflake Cortex, Cloudflare AI Gateway improvements - Improved session runtime, compaction, and context-source model - ModalPlugin, CodexAuthPlugin with experimental WebSocket support - AppNodeBuilder pattern in server.ts - Structured logging (Effect.logError with structured args) - New skill loading architecture (skills moved to @opencode-ai/core) - NoProvidersError / NoModelsError Effect error types - Upstream UI improvements across non-collab paths - Updated GitHub Actions workflows (test.yml refreshed) Collab-specific code preserved: - collabMiddleware in server.ts (preview routing, SW kill-switch) - Production auth gate in serve.ts (ADR-0001) - Cookie-auth + internal-token layers in authorization.ts - Collab routes in app.tsx (/collab/new, /collab/admin, /collab/:id) - pickAgent / disconnectedProvider fixes in context/local.tsx - ResizeHandle bounds in session.tsx - GraphifyPlugin retained in plugin/index.ts and skill/index.ts - All packages/collab/* and packages/app/src/components/collab/* untouched bun.lock: staged upstream's version — run `bun install` to update with @opencode-ai/collab workspace entries. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Important Review skippedToo many files! This PR contains 2960 files, which is 2860 over the limit of 100. To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to a paid plan to raise the limit. Usage-priced reviews support at most 300 files. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (40)
📒 Files selected for processing (2960)
You can disable this status message by setting the |
- Replace deprecated octal escape \200B with literal U+200B in session-ui prompt-input - Fix providers.all().find() → .has() (Map API) in local.tsx - Replace out-of-scope `local.*` refs with props.controls.* in prompt-input.tsx - Fix a.dataUrl → a.blob.url (ImageAttachmentPart API change) - Fix DialogConnectProvider props: provider → controller - Add disconnectedProvider stub to createPromptModelSelection return type Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- skill/index.ts: remove duplicate CUSTOMIZE_OPENCODE_SKILL_BODY import (TS2440) - server/shared/ui.ts: replace removed AppFileSystem.mimeType with FSUtil.mimeType (TS2552) - authorization.ts: cast string[] before join() to fix narrowing to never (TS2339) - graphify.ts: replace removed @opencode-ai/core/util/log with inline console logger (TS2307) - server.ts: add inline error logger; fix AsyncIterable cast; import Database from db.ts (TS2307) - storage/db.ts: restore (removed by upstream merge); adapt for drizzle rc.2 — remove RuntimeFlags/Log deps, expose $client publicly via intersection type override - storage/db.bun.ts: restore (removed by upstream merge) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
drizzle rc.2 changed integer({ mode: "timestamp_ms" }) to return Date objects
instead of numbers, and tightened insert types accordingly.
- Replace Date.now() with new Date() in all timestamp_ms inserts/updates
- Replace `date < Date.now()` with `date.getTime() < Date.now()` in comparisons
- Remove `new Date(row.created_at)` wrapping where column now returns Date
- Fix SQLQueryBindings: pass null instead of undefined for optional string (github-pr.ts)
- Fix mentionsToEvents calls: move suggestionId into context object (router.ts)
- Add "nt" to collabId prefix union (collab/id.ts) for notes table
- Remove now-unused @ts-expect-error directives from preview-router.ts
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
sqeeswy
approved these changes
Aug 18, 2026
This was referenced Aug 18, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
anomalyco/opencode:devintocollabWhat upstream brings
AppNodeBuilderpattern inserver.tsEffect.logErrorwith structured args (replaces string interpolation)@opencode-ai/core/plugin/skill/— relative import paths updatedNoProvidersError/NoModelsErrorEffect error types indefaultModel()test.ymlGitHub Actions workflowCollab code preserved
collabMiddlewareblock inserver.ts(preview routing, SW kill-switch, healthz)serve.ts— now includes upstream's lazyServerimportauthorization.ts/collab/new,/collab/admin,/collab/:id) inapp.tsxpickAgent/disconnectedProviderfixes incontext/local.tsxResizeHandlemin/max bounds insession.tsxGraphifyPlugininplugin/index.tsandskill/index.tspackages/collab/andpackages/app/src/components/collab/untouchedBefore merging
bun installlocally — upstream'sbun.lockdoesn't include@opencode-ai/collabworkspace entriesbun run build— verify no TypeScript errorsdeploy-collab.ymlto ship🤖 Generated with Claude Code