feat(core): add GPT delegation plugin with Ultra mode - #48412
Open
rekram1-node wants to merge 1 commit into
Open
feat(core): add GPT delegation plugin with Ultra mode#48412rekram1-node wants to merge 1 commit into
rekram1-node wants to merge 1 commit into
Conversation
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.
Issue for this PR
None.
Type of change
What does this PR do?
Add
opencode.gpt-delegation, implemented through catalog transforms and Session hooks. Ultra copies the existingmaxvariant for Sol/Terra orxhighfor Astra, including provider settings, headers, and body overrides.Move delegation policy out of the static GPT prompts. Normal GPT mode requires an explicit delegation request; Ultra enables proactive delegation. Switching away from GPT retires the policy. Reminders persist as synthetics and render as chronological system messages, with per-request checks to restore missing reminders and supersede stale ones.
How did you verify your code works?
From
packages/core:RECORD=false CI=1 bun test test/plugin/gpt-delegation.test.ts test/plugin/optimize.test.ts test/plugin/plan.test.ts test/session-runner-recorded.test.tsbun test test/session-runner.test.ts -t "selected model family prompt"bun typecheckAll 28 focused tests passed, including model transitions, missing-reminder recovery, and system-role rendering. Formatting and diff checks passed. The cassette request was updated locally and replayed.
Screenshots / recordings
Not applicable.
Checklist