Skip to content

split to core and x402#16

Open
m1guelpf wants to merge 1 commit intomainfrom
split
Open

split to core and x402#16
m1guelpf wants to merge 1 commit intomainfrom
split

Conversation

@m1guelpf
Copy link
Copy Markdown
Member

No description provided.

@m1guelpf m1guelpf requested a review from andy-t-wang March 26, 2026 23:53
@m1guelpf m1guelpf self-assigned this Mar 26, 2026
@andy-t-wang
Copy link
Copy Markdown
Contributor

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

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: 2dbcf64b37

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

if (!Base64EncodedRegex.test(header)) {
let jsonStr: string
try {
jsonStr = new TextDecoder().decode(base64.decode(header))
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Accept unpadded Base64 headers

parseAgentkitHeader now decodes with @scure/base, which rejects Base64 strings that omit trailing = padding. The previous implementation (Base64EncodedRegex + safeBase64Decode) accepted those headers, and unpadded Base64 is common in non-JS clients and proxies that normalize header values. This change causes valid previously-supported agentkit headers to fail with Invalid agentkit header: not valid base64, breaking interoperability for existing senders unless they add padding explicitly.

Useful? React with 👍 / 👎.

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