Skip to content

chore(sync): promote dev to main (2026-06-29) - #49

Merged
trevor050 merged 51 commits into
mainfrom
dev
Jun 29, 2026
Merged

trevor050 merged 51 commits into
mainfrom
dev

Conversation

@trevor050

@trevor050 trevor050 commented Jun 29, 2026 •

Copy link
Copy Markdown
Owner

Issue for this PR

Scheduled upstream sync automation. No product issue; maintenance promotion from dev to main after upstream catch-up.

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Promotes dev to main after syncing 47 upstream/dev commits into the fork through PR #48.

Sync details:

  • Sync PR: chore(sync): merge upstream dev into fork (2026-06-29) #48
  • Upstream commits merged: 47
  • Sync merge commit on dev: 97582cd76ad3c8c29fc77abeafd40cdeb5e71ee4
  • Review-fix commits on dev: c2f9dcf36, bc49ad242
  • Conflict resolved: packages/console/app/src/routes/zen/util/providerBudgetTracker.ts

ULM-preserved areas:

  • Kept ULM-critical packages/opencode/** prompt/tool/session wiring intact while absorbing upstream core/app/client movement.
  • Confirmed packages/opencode/engagements/** only tracks .gitkeep.
  • Provider budget tracker conflict was resolved in favor of the updated budgetPriority contract used by the new console handler.
  • Removed accidental upstream/editor artifact packages/core/src/effect/dfdf after Gemini review.
  • Addressed Codex review feedback for provider budget intervals, LayerNode replacement identity, and replacement-resolved location-service-map preflight.

How did you verify your code works?

  • Local bun run typecheck passed after merge: 29 successful / 29 total, 22m57.344s.
  • Local bun run typecheck passed after Gemini review fix: 29 successful / 29 total, 8.474s.
  • Focused tests passed after Codex review fixes: bun test test/effect/layer-node/layer-node.test.ts test/effect/layer-node/node-build.test.ts from packages/core (18 pass / 0 fail).
  • Local bun run typecheck passed after Codex review fixes: 29 successful / 29 total, 3m20.195s.
  • Sync PR chore(sync): merge upstream dev into fork (2026-06-29) #48 required checks passed: typecheck, ulm harness fast, storybook, nix-eval, quality, standards/compliance, duplicate checks.
  • git diff --check passed.
  • Engagement artifact guard passed: only packages/opencode/engagements/.gitkeep is tracked.

Screenshots / recordings

N/A, scheduled sync/promotion.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

jlongster and others added 30 commits June 27, 2026 11:09
)

Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 29, 2026 14:07
@github-actions

Copy link
Copy Markdown

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions

github-actions Bot commented Jun 29, 2026 •

Copy link
Copy Markdown

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • No issue referenced. Please add Closes #<number> linking to the relevant issue.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@coderabbitai

coderabbitai Bot commented Jun 29, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 208 files, which is 58 over the limit of 150.

To get a review, narrow the scope:
• coderabbit review --type committed # exclude uncommitted changes
• coderabbit review --dir # limit to a subdirectory
• coderabbit review --base # compare against a closer base

Upgrade to a paid plan to raise the limit.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 550140cc-04ac-4b36-b1cf-2ff411fe1f6a

📥 Commits

Reviewing files that changed from the base of the PR and between 36a1355 and bc49ad2.

⛔ Files ignored due to path filters (4)
  • bun.lock is excluded by !**/*.lock
  • packages/client/src/generated/client.ts is excluded by !**/generated/**
  • packages/client/src/generated/types.ts is excluded by !**/generated/**
  • packages/sdk/js/src/v2/gen/types.gen.ts is excluded by !**/gen/**
📒 Files selected for processing (208)
  • .github/workflows/compliance-close.yml
  • .github/workflows/duplicate-issues.yml
  • nix/hashes.json
  • package.json
  • packages/app/src/components/debug-bar.tsx
  • packages/app/src/components/prompt-input.tsx
  • packages/app/src/components/prompt-input/slash-popover.tsx
  • packages/app/src/components/session-context-usage.tsx
  • packages/app/src/components/session/session-context-metrics.test.ts
  • packages/app/src/components/session/session-context-metrics.ts
  • packages/app/src/components/session/session-context-tab.tsx
  • packages/app/src/context/local.tsx
  • packages/app/src/context/tabs.tsx
  • packages/app/src/index.css
  • packages/app/src/pages/home.tsx
  • packages/app/src/pages/layout-new.tsx
  • packages/app/src/pages/layout/session-tab-avatar.tsx
  • packages/app/src/pages/session/composer/session-composer-region.tsx
  • packages/app/src/pages/session/timeline/message-timeline.tsx
  • packages/client/README.md
  • packages/client/script/build.ts
  • packages/client/src/contract.ts
  • packages/client/src/effect.ts
  • packages/client/src/generated-effect/client.ts
  • packages/client/test/contract-identity.test.ts
  • packages/client/test/promise.test.ts
  • packages/console/app/src/routes/honeycomb/webhook.ts
  • packages/console/app/src/routes/zen/util/handler.ts
  • packages/console/app/src/routes/zen/util/modelTpsLimiter.ts
  • packages/console/app/src/routes/zen/util/providerBudgetTracker.ts
  • packages/console/core/src/model.ts
  • packages/core/package.json
  • packages/core/src/agent.ts
  • packages/core/src/aisdk.ts
  • packages/core/src/background-job.ts
  • packages/core/src/catalog.ts
  • packages/core/src/command.ts
  • packages/core/src/config.ts
  • packages/core/src/credential.ts
  • packages/core/src/cross-spawn-spawner.ts
  • packages/core/src/database/database.ts
  • packages/core/src/effect/app-node-builder.ts
  • packages/core/src/effect/app-node-platform.ts
  • packages/core/src/effect/app-node.ts
  • packages/core/src/effect/layer-node.ts
  • packages/core/src/effect/layer-node/index.ts
  • packages/core/src/effect/layer-node/layer-node-tree.ts
  • packages/core/src/effect/layer-node/layer-node.ts
  • packages/core/src/effect/node-build.ts
  • packages/core/src/event.ts
  • packages/core/src/file-mutation.ts
  • packages/core/src/filesystem.ts
  • packages/core/src/filesystem/search.ts
  • packages/core/src/filesystem/watcher.ts
  • packages/core/src/fs-util.ts
  • packages/core/src/git.ts
  • packages/core/src/global.ts
  • packages/core/src/image.ts
  • packages/core/src/instruction-context.ts
  • packages/core/src/integration.ts
  • packages/core/src/location-mutation.ts
  • packages/core/src/location-service-map.ts
  • packages/core/src/location-services.ts
  • packages/core/src/location.ts
  • packages/core/src/models-dev.ts
  • packages/core/src/npm.ts
  • packages/core/src/permission.ts
  • packages/core/src/permission/saved.ts
  • packages/core/src/plugin.ts
  • packages/core/src/plugin/internal.ts
  • packages/core/src/policy.ts
  • packages/core/src/process.ts
  • packages/core/src/project.ts
  • packages/core/src/project/copy.ts
  • packages/core/src/project/directories.ts
  • packages/core/src/pty.ts
  • packages/core/src/pty/ticket.ts
  • packages/core/src/question.ts
  • packages/core/src/reference.ts
  • packages/core/src/reference/guidance.ts
  • packages/core/src/repository-cache.ts
  • packages/core/src/ripgrep.ts
  • packages/core/src/ripgrep/binary.ts
  • packages/core/src/session.ts
  • packages/core/src/session/execution.ts
  • packages/core/src/session/execution/local.ts
  • packages/core/src/session/projector.ts
  • packages/core/src/session/runner/llm.ts
  • packages/core/src/session/runner/model.ts
  • packages/core/src/session/store.ts
  • packages/core/src/session/todo.ts
  • packages/core/src/skill.ts
  • packages/core/src/skill/discovery.ts
  • packages/core/src/skill/guidance.ts
  • packages/core/src/snapshot.ts
  • packages/core/src/system-context/builtins.ts
  • packages/core/src/system-context/registry.ts
  • packages/core/src/tool-output-store.ts
  • packages/core/src/tool/application-tools.ts
  • packages/core/src/tool/builtins.ts
  • packages/core/src/tool/read-filesystem.ts
  • packages/core/src/tool/registry.ts
  • packages/core/src/util/effect-flock.ts
  • packages/core/test/application-tools.test.ts
  • packages/core/test/catalog.test.ts
  • packages/core/test/config/agent.test.ts
  • packages/core/test/config/command.test.ts
  • packages/core/test/config/config.test.ts
  • packages/core/test/credential.test.ts
  • packages/core/test/effect/cross-spawn-spawner.test.ts
  • packages/core/test/effect/layer-node/layer-node-types.test.ts
  • packages/core/test/effect/layer-node/layer-node.test.ts
  • packages/core/test/effect/layer-node/node-build.test.ts
  • packages/core/test/filesystem/filesystem.test.ts
  • packages/core/test/filesystem/search.test.ts
  • packages/core/test/git.test.ts
  • packages/core/test/integration.test.ts
  • packages/core/test/location-filesystem.test.ts
  • packages/core/test/location-mutation.test.ts
  • packages/core/test/models.test.ts
  • packages/core/test/plugin/models-dev.test.ts
  • packages/core/test/plugin/skill.test.ts
  • packages/core/test/plugin/variant.test.ts
  • packages/core/test/process/process.test.ts
  • packages/core/test/project-copy.test.ts
  • packages/core/test/project-directories.test.ts
  • packages/core/test/project.test.ts
  • packages/core/test/question.test.ts
  • packages/core/test/reference.test.ts
  • packages/core/test/repository-cache.test.ts
  • packages/core/test/ripgrep.test.ts
  • packages/core/test/session-projector.test.ts
  • packages/core/test/session-todo.test.ts
  • packages/core/test/session-tool-progress.test.ts
  • packages/core/test/skill-discovery.test.ts
  • packages/core/test/skill.test.ts
  • packages/core/test/system-context/builtins.test.ts
  • packages/core/test/tool-output-store.test.ts
  • packages/core/test/tool-question.test.ts
  • packages/core/test/tool-read-filesystem.test.ts
  • packages/core/test/tool-skill.test.ts
  • packages/core/test/util/effect-flock.test.ts
  • packages/desktop/src/main/windows.ts
  • packages/httpapi-codegen/src/index.ts
  • packages/httpapi-codegen/test/generate.test.ts
  • packages/llm/src/route/client.ts
  • packages/llm/src/schema/events.ts
  • packages/llm/test/adapter.test.ts
  • packages/llm/test/fixtures/recordings/gemini-cache/reports-cachedcontenttokencount-on-identical-second-call.json
  • packages/llm/test/provider/anthropic-messages.test.ts
  • packages/llm/test/provider/openai-chat.test.ts
  • packages/llm/test/provider/openai-responses.test.ts
  • packages/llm/test/response.test.ts
  • packages/opencode/src/account/account.ts
  • packages/opencode/src/cli/cmd/mcp.ts
  • packages/opencode/src/cli/cmd/tui.ts
  • packages/opencode/src/cli/network.ts
  • packages/opencode/src/config/config.ts
  • packages/opencode/src/control-plane/workspace.ts
  • packages/opencode/src/installation/index.ts
  • packages/opencode/src/mcp/index.ts
  • packages/opencode/src/server/routes/instance/httpapi/server.ts
  • packages/opencode/src/session/instruction.ts
  • packages/opencode/src/session/llm.ts
  • packages/opencode/src/share/share-next.ts
  • packages/opencode/src/skill/discovery.ts
  • packages/opencode/src/tool/registry.ts
  • packages/opencode/src/worktree/index.ts
  • packages/opencode/test/git/git.test.ts
  • packages/opencode/test/server/httpapi-public-openapi.test.ts
  • packages/opencode/test/session/messages-pagination.test.ts
  • packages/opencode/test/session/processor-effect.test.ts
  • packages/opencode/test/session/retry.test.ts
  • packages/opencode/test/session/snapshot-tool-race.test.ts
  • packages/opencode/test/share/share-next.test.ts
  • packages/opencode/test/tool/registry.test.ts
  • packages/sdk/openapi.json
  • packages/server/src/pty-environment.ts
  • packages/server/src/routes.ts
  • packages/session-ui/src/components/message-part.tsx
  • packages/tui/src/component/prompt/index.tsx
  • packages/tui/src/context/data.tsx
  • packages/ui/src/v2/components/button-v2.css
  • packages/ui/src/v2/components/button-v2.tsx
  • packages/ui/src/v2/components/dialog-v2.css
  • packages/ui/src/v2/components/dialog-v2.tsx
  • packages/ui/src/v2/components/icon.tsx
  • packages/ui/src/v2/components/progress-circle-v2.css
  • packages/ui/src/v2/components/progress-circle-v2.tsx
  • packages/web/src/content/docs/ar/go.mdx
  • packages/web/src/content/docs/bs/go.mdx
  • packages/web/src/content/docs/da/go.mdx
  • packages/web/src/content/docs/de/go.mdx
  • packages/web/src/content/docs/es/go.mdx
  • packages/web/src/content/docs/fr/go.mdx
  • packages/web/src/content/docs/go.mdx
  • packages/web/src/content/docs/it/go.mdx
  • packages/web/src/content/docs/ja/go.mdx
  • packages/web/src/content/docs/ko/go.mdx
  • packages/web/src/content/docs/nb/go.mdx
  • packages/web/src/content/docs/pl/go.mdx
  • packages/web/src/content/docs/pt-br/go.mdx
  • packages/web/src/content/docs/ru/go.mdx
  • packages/web/src/content/docs/th/go.mdx
  • packages/web/src/content/docs/tr/go.mdx
  • packages/web/src/content/docs/zh-cn/go.mdx
  • packages/web/src/content/docs/zh-tw/go.mdx
  • patches/effect@4.0.0-beta.83.patch

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dev

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.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

Copy link
Copy Markdown

The following comment was made by an LLM, it may be inaccurate:

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request introduces extensive refactoring and feature additions across the codebase. Key updates include a major overhaul of the dependency injection layer (LayerNode) in the core package to use a compiled node builder, the regeneration of the client SDK to expose all standard HTTP API groups, and the implementation of a reducer pattern for assembling LLM responses. On the frontend, several V2 design system components have been integrated, state transitions have been optimized with startTransition, and a sticky fading header effect has been added to the home session list. The console's provider budget tracker was also updated to support priority-based routing. Feedback is provided regarding an accidentally added file (packages/core/src/effect/dfdf) that should be removed.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread packages/core/src/effect/dfdf Outdated
@@ -0,0 +1 @@
File to save in: ~/.local/share/opencode/worktree/012780/location-layer-tiers/packages/core/src/effect/ No newline at end of file

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

This file appears to have been accidentally added to the repository. Its content seems to be a file path, which suggests it might be an unintended artifact from a script or a copy-paste operation. It should be removed to keep the codebase clean.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 97582cd76a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

if (config.budgetContribution === undefined) return
const cost = centsToMicroCents(costInCent * config.budgetContribution)
if (cost <= 0) return
const redisKey = key(provider, priority, currInterval)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Recompute budget intervals when tracking spend

When a Zen request streams for more than a minute, this writes the completed cost into the minute captured when createProviderBudgetTracker was constructed, while later check() calls only read the current and previous minute keys. A slow response that finishes two minutes later is therefore recorded under a stale key that no future routing check sees, so budget-limited providers can continue qualifying despite real spend. Compute the interval at tracking time (or reserve spend at selection time) so long-running completions are counted in an interval that subsequent checks read.

Useful? React with 👍 / 👎.

Comment thread packages/core/src/effect/layer-node.ts Outdated
}

function replacementMapFrom(replacements?: Replacements) {
return new Map(replacements?.map(([source, replacement]) => [source.name, replacementNode(source, replacement)]))

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Key replacements by node identity

When a graph contains two distinct nodes for the same service name (which LayerNode supports for branch-specific implementations) and a caller replaces only one of them, this map collapses replacements by source.name, so every node with that service name is resolved to the replacement. That can silently replace unrelated branches or test overrides with the wrong layer; key replacements by the source node object (or another unique node identity) instead of the service name.

Useful? React with 👍 / 👎.

let allReplacements = replacements

// Only build the location service map if it's actually needed
if (LayerNode.hasUnbound(root, LocationServiceMap.node) && !hasReplacement(replacements, LocationServiceMap.node)) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Scan replacement dependencies before skipping the location map

If a caller replaces an unbound root dependency with a node that itself depends on LocationServiceMap.node (for example SessionExecution.node -> SessionExecutionLocal.node), this check only scans the original root graph and decides the location map is unnecessary. The later compile then resolves the replacement and hits an unbound LocationServiceMap, so AppNodeBuilder.build(...) throws instead of auto-wiring the map. Check the replacement-resolved graph, or otherwise include replacement dependencies in this preflight.

Useful? React with 👍 / 👎.

@trevor050

Copy link
Copy Markdown
Owner Author

Addressed Gemini's actionable finding by removing the accidental editor artifact packages/core/src/effect/dfdf in c2f9dcf36. Re-ran bun run typecheck after the fix: 29 successful / 29 total. Also updated the PR description to the repo template.

@trevor050

Copy link
Copy Markdown
Owner Author

Addressed Codex review feedback in bc49ad242: provider budget intervals now compute at check/track time, LayerNode replacements are keyed by source node identity, and AppNodeBuilder scans replacement-resolved dependencies before auto-wiring LocationServiceMap. Added focused regression tests and reran them from packages/core (18 pass / 0 fail), plus full bun run typecheck (29 successful / 29 total).

@trevor050
trevor050 merged commit b1cf68f into main Jun 29, 2026
14 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.