Skip to content

refactor(credential): add protocol-aware model connection primitives - #221

Merged
zpzjzj merged 2 commits into
mainfrom
refactor/model-connection
Sep 2, 2026
Merged

zpzjzj merged 2 commits into
mainfrom
refactor/model-connection

Conversation

@zpzjzj

@zpzjzj zpzjzj commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add provider configuration and resolved model connection types shared with adapter protocols
  • select credentials and endpoints by (provider, protocol) while retaining value sources and auth/routing modes
  • preserve explicit-empty values so protocol-specific configuration can suppress flat inheritance
  • keep the legacy flattened Resolver.Get path unchanged until adapter migration

Why this scope

This is PR 4a of #196. It introduces and tests the protocol-aware connection boundary without changing CLI, adapter materialization, reports, or native agent configuration. Those remain follow-up phases so existing v1alpha1 YAML, GitHub Action inputs, legacy --model provider/name, and local-login behavior are unchanged.

Testing

  • make build
  • make verify
  • make test

Pairs with #196.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-08-31T02:46:34.465957Z 1632669 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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: 1632669bb0

ℹ️ 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".

Comment thread internal/credential/credential.go Resolved

@JHWang-1997 JHWang-1997 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed the latest commit, including the explicit null handling added in 5441f4a. The new resolver keeps the legacy flattened lookup unchanged, selects credentials and endpoints per protocol, preserves absent versus explicit-empty values, and keeps API keys out of JSON and YAML output. CI is green, and go test -race ./... passes locally. I don't see any blocking issues.

@zpzjzj
zpzjzj added this pull request to the merge queue Sep 2, 2026
Merged via the queue into main with commit 6eaac64 Sep 2, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants