Skip to content

fix(pat): honor chmod agentCode in batch authorization#442

Draft
shangguanxuan633-lab wants to merge 27 commits into
DingTalk-Real-AI:mainfrom
shangguanxuan633-lab:codex/pat-batch-identity-args
Draft

fix(pat): honor chmod agentCode in batch authorization#442
shangguanxuan633-lab wants to merge 27 commits into
DingTalk-Real-AI:mainfrom
shangguanxuan633-lab:codex/pat-batch-identity-args

Conversation

@shangguanxuan633-lab

@shangguanxuan633-lab shangguanxuan633-lab commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Carry explicit --agentCode / canonical DINGTALK_DWS_AGENTCODE into PAT batch chmod arguments and host headers.
  • Keep service-side fallback behavior when no agentCode is supplied, while failing fast if a fallback result applies authorization to a different agent.
  • Preserve trusted gateway key query parameters for DingTalk MCP gateway endpoints and default open-source MCP config to prepub for this test branch.
  • Merge codex/pat-batch-agentcode-main into codex/pat-batch-identity-args, then sync latest upstream/main.

Verification

  • go test ./internal/pat ./internal/transport ./pkg/config ./internal/app ./internal/auth ./internal/market -count=1
  • go test ./test/unit -run 'HostOwnsPATFlow|PAT' -count=1\n- go build -buildmode=pie -trimpath -o /tmp/dws-merge-agentcode-main-into-identity/dws ./cmd\n\n## Gateway Pairing\n- Matching GW Aone CR: 34576340 (codex/pat-batch-identity-args-gw, status INTG).\n- Latest GW prepub deploy order: 154975131, SUCCESS at 2026-06-10 21:44:32.

@shangguanxuan633-lab shangguanxuan633-lab force-pushed the codex/pat-batch-identity-args branch from f18223b to 4c86a9f Compare June 10, 2026 01:49
@shangguanxuan633-lab shangguanxuan633-lab changed the title [codex] fix PAT batch identity args fix(pat): honor chmod agentCode in batch authorization Jun 10, 2026
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.

1 participant