Repository navigation
fix(copilot): honor configured Fusion tiers - #205907
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. What this changesThis PR upgrades the Copilot SDK and preserves configured Fusion tiers across session creation, reuse, isolated completion, and finalization. Example: An agent selects github-copilot/fusion with params.fusionTier set to high.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Partial Merge readiness⛔ Blocked before merge - 4 items remain Keep open: this maintainer-authored PR adds useful Fusion tier support, but three diff-caused test failures block readiness. Reviewed head: Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe Copilot plugin translates OpenClaw model settings and prepared credentials into native SDK sessions, then returns assistant output and tool activity to the host. flowchart TD
A[Model configuration] --> B[Shared tier resolver]
B --> C[Session compatibility keys]
B --> D[SDK session configuration]
C --> D
D --> E[Copilot SDK runtime]
E --> F[Assistant output and tool activity]
Technical reviewBest possible solution: Retain the shared plugin-owned tier resolver, repair the affected SDK fixtures, and demonstrate complete Fusion behavior with existing settings and sessions preserved. Do we have a high-confidence way to reproduce the issue? Current main demonstrably omits Fusion tiers from SDK session configuration and compatibility keys; this read-only review executed no target code. Is this the best way to solve the issue? The shared resolver is a small, appropriate implementation using existing parameter and session owners, but the SDK upgrade must also update its affected consumers and fixtures. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 81bc5ec79fe4. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +71, Tests +144, Docs +27, Config 0, Other +29. Total +271 across 17 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 26, 2026, 6:03 AM ET / 11:03 UTC. |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
|
Merged via squash auto-merge.
|
* fix(copilot): preserve Fusion tiers in native SDK sessions * test(copilot): update fixtures for SDK 1.0.34 * test(copilot): follow Tool Search dispatch in live smoke * test(copilot): dispose live smoke client pools
Release adaptation: stable direct consumers already use Zod 4.6.7. Upgrade @github/copilot-sdk from 1.0.25 to 1.0.29, its first patch release declaring Zod 4.6.7. Copilot ships unbundled, so a workspace only override would not repair standalone installs. Regenerate the lock with pnpm; do not import the old direct-dependency sweep. Adapt the required SDK compatibility from #205907 (fa14bcf): replace the removed remoteSession option with an explicit disable RPC before isolated sends. The separate Fusion behavior and later SDK bump are not needed. Keep the legacy local test peer's RPC fallback intact. Companion 763cbb6 is satisfied by construction: leave Zod 3 users untouched. The vendored Discord parser fix 0c38cbb is separate; the custom A2UI parser fixed by 6ffb9e5 is absent. (cherry picked from commit 16d61ac) Co-authored-by: RomneyDa <[email protected]>
* fix(copilot): preserve Fusion tiers in native SDK sessions * test(copilot): update fixtures for SDK 1.0.34 * test(copilot): follow Tool Search dispatch in live smoke * test(copilot): dispose live smoke client pools (cherry picked from commit fa14bcf) Co-authored-by: RomneyDa <[email protected]>
Related: #205897
What Problem This Solves
Copilot Fusion selections lose their configured tier when OpenClaw creates or resumes an SDK session. The pinned SDK also predates the Fusion session option.
User Impact
Users can set
params.fusionTiertostandard,high, ormaxforgithub-copilot/fusion. Changing the tier starts a compatible fresh session. Ordinary turns, isolated completions, and settled-turn finalization use the same selection.Why This Change Was Made
Upgrade the existing SDK package to 1.0.34 and use its
capi.fusionTiercontract. Keep tier resolution in one helper shared by session configuration and reuse keys. The new SDK replacesremoteSessionwith a session RPC, so restricted paths await remote-export disabling before sending a prompt.Evidence
standard,high, andmaxeach executed the custom tool through Tool Search, returned complete dispatch metadata, resumed the session, and completed restricted finalization with no further tool calls.github-copilot/fusionthrough the Copilot harness and reported usage. Its process and temporary state were cleaned up.