Conversation
- Add `agent` property to SessionConfig and ResumeSessionConfig for pre-selecting a custom agent when a session starts or resumes - Add `on_list_models` callable option to Client for BYOK mode; when set, listModels() calls the handler instead of querying CLI - Pass `agent` in session.create and session.resume RPC requests - Update submodule pointer to e478657 (396e8b3..e478657) - Update docs/jp/session-config.md and docs/jp/custom-providers.md Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
kawax
requested changes
Mar 9, 2026
Contributor
* Initial plan * Add usingListModels() fluent method to Client and update docs Co-authored-by: kawax <1502086+kawax@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: kawax <1502086+kawax@users.noreply.github.com>
kawax
requested changes
Mar 9, 2026
Contributor
…ingListModels()` (#34) * Initial plan * Remove on_list_models constructor option, keep only usingListModels Co-authored-by: kawax <1502086+kawax@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: kawax <1502086+kawax@users.noreply.github.com>
Member
|
@copilot テストを追加 |
Contributor
* Initial plan * Add tests for agent parameter and usingListModels Co-authored-by: kawax <1502086+kawax@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: kawax <1502086+kawax@users.noreply.github.com>
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.
Official SDK Commit Range
396e8b3..e478657(compare on GitHub)Summary of Changes Detected
Two new features from the official SDK (commits
7766b1aande478657):agentparameter inSessionConfig/ResumeSessionConfig— lets callers pre-select a custom agent by name when creating or resuming a session, without needing a follow-upsession.rpc.agent.select()call.onListModelshandler inCopilotClientOptions— a custom callable for BYOK mode: when set,client.listModels()calls the handler instead of querying the CLI server. Useful when the CLI is not connected but model metadata is still needed.Laravel Files Modified
copilot-sdke478657src/Types/SessionConfig.phpagent?: stringpropertysrc/Types/ResumeSessionConfig.phpagent?: stringpropertysrc/Client.php$onListModelsproperty; updated constructor to readon_list_modelsfrom options; updatedlistModels()to call custom handler first; addedagenttosession.createandsession.resumeRPC payloadsdocs/jp/session-config.mdagentparameterdocs/jp/custom-providers.mdon_list_modelsoptionBreaking Changes
None. All new fields are optional (
?string,?callable). Existing code continues to work unchanged.Usage Examples