Skip to content

OUT-3970: monkey patch script to fix invalid token issue in pre-production environment - #265

Merged
SandipBajracharya merged 3 commits into
masterfrom
OUT-3970
Jul 10, 2026
Merged

OUT-3970: monkey patch script to fix invalid token issue in pre-production environment#265
SandipBajracharya merged 3 commits into
masterfrom
OUT-3970

Conversation

@SandipBajracharya

Copy link
Copy Markdown
Collaborator

Summary

  • Assembly platform generates token with new token payload which older SDK does not posses. This is resulting in Invalid keys in token payload.
  • As a temporary fix in staging environment, prepare a monkey patch that fixes this issue. This patch is not for production.
  • Upgrading to latest sdk in in pipeline.

@linear-code

linear-code Bot commented Jul 10, 2026

Copy link
Copy Markdown

OUT-3970

@vercel

vercel Bot commented Jul 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
quickbooks-sync Ready Ready Preview, Comment Jul 10, 2026 9:30am
quickbooks-sync (dev) Ready Ready Preview, Comment Jul 10, 2026 9:30am

Request Review

@greptile-apps

greptile-apps Bot commented Jul 10, 2026

Copy link
Copy Markdown

Greptile Summary

This PR adds a temporary Copilot SDK patch for pre-production token handling. The main changes are:

  • Adds a copied Copilot SDK init patch under lib-patches.
  • Adds a package script to copy the patch into node_modules.
  • Moves the build flow into scripts/build.sh.
  • Runs the Copilot patch only outside production builds.
  • Points Vercel at the new build script.

Confidence Score: 5/5

This looks safe to merge.

  • No blocking issues found in the changed code.

Important Files Changed

Filename Overview
vercel.json Adds the Vercel build command that runs the new build script.
scripts/build.sh Adds the non-production build wrapper that applies the Copilot SDK patch before building.
package.json Adds the script that copies the Copilot SDK patch into the installed package.
lib-patches/copilot-node-sdk.js Adds the temporary Copilot SDK init replacement for pre-production token parsing.
build.sh Removes the old root build script.

Reviews (2): Last reviewed commit: "fix(OUT-3970): mark scripts/build.sh exe..." | Re-trigger Greptile

Comment thread scripts/build.sh
Comment thread lib-patches/copilot-node-sdk.js
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@SandipBajracharya

Copy link
Copy Markdown
Collaborator Author

@greptileai Re-review the PR again

@SandipBajracharya
SandipBajracharya merged commit 792e83a into master Jul 10, 2026
5 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