Repository navigation
Conversation
Co-authored-by: Brendan Allan <git@brendonovich.dev>
Co-authored-by: Brendan Allan <git@brendonovich.dev> Co-authored-by: Brendan Allan <14191578+Brendonovich@users.noreply.github.com>
chore(sync): merge upstream dev into fork (2026-06-29)
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
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. |
|
Important Review skippedToo many files! This PR contains 208 files, which is 58 over the limit of 150. To get a review, narrow the scope: Upgrade to a paid plan to raise the limit. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (4)
📒 Files selected for processing (208)
You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
The following comment was made by an LLM, it may be inaccurate: |
There was a problem hiding this comment.
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.
| @@ -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 | |||
There was a problem hiding this comment.
💡 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) |
There was a problem hiding this comment.
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 👍 / 👎.
| } | ||
|
|
||
| function replacementMapFrom(replacements?: Replacements) { | ||
| return new Map(replacements?.map(([source, replacement]) => [source.name, replacementNode(source, replacement)])) |
There was a problem hiding this comment.
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)) { |
There was a problem hiding this comment.
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 👍 / 👎.
|
Addressed Gemini's actionable finding by removing the accidental editor artifact |
|
Addressed Codex review feedback in |
Issue for this PR
Scheduled upstream sync automation. No product issue; maintenance promotion from
devtomainafter upstream catch-up.Type of change
What does this PR do?
Promotes
devtomainafter syncing 47upstream/devcommits into the fork through PR #48.Sync details:
dev:97582cd76ad3c8c29fc77abeafd40cdeb5e71ee4dev:c2f9dcf36,bc49ad242packages/console/app/src/routes/zen/util/providerBudgetTracker.tsULM-preserved areas:
packages/opencode/**prompt/tool/session wiring intact while absorbing upstream core/app/client movement.packages/opencode/engagements/**only tracks.gitkeep.budgetPrioritycontract used by the new console handler.packages/core/src/effect/dfdfafter Gemini review.How did you verify your code works?
bun run typecheckpassed after merge: 29 successful / 29 total, 22m57.344s.bun run typecheckpassed after Gemini review fix: 29 successful / 29 total, 8.474s.bun test test/effect/layer-node/layer-node.test.ts test/effect/layer-node/node-build.test.tsfrompackages/core(18 pass / 0 fail).bun run typecheckpassed after Codex review fixes: 29 successful / 29 total, 3m20.195s.git diff --checkpassed.packages/opencode/engagements/.gitkeepis tracked.Screenshots / recordings
N/A, scheduled sync/promotion.
Checklist