fix(patches): rebase 00-brand-remove-branding for VS Code 1.126.0#22
Conversation
The apiProposalNotListed context drifted (a new apiProposalVersionNotSupported line was added between relativeBadgeUrlRequiresHttpsRepository and apiProposalNotListed), and the apiProposalMismatch1/2 strings in extensionValidator.ts were removed upstream — drop those hunks since the rebrand target no longer exists. Refs #21
|
Claude finished @sbs44's task in 4m 47s —— View job Code reviewFound 1 issue: 1. The rebase silently replaces the The previous patch used the code/patches/00-brand-remove-branding.patch Lines 9 to 11 in 932b3d9
Lines 26 to 28 in 932b3d9 Because Note: the dropped 🤖 Generated with Claude Code - If this code review was useful, please react with 👍. Otherwise, react with 👎. |
Rebase chain (depending on upstream changes between 1.124.2 → 1.126.0): - 00-brand-remove-branding: !!APP_NAME!! placeholders restored (the previous regen captured the substituted form); validator hunk dropped (upstream removed the target strings). Context shift in extensionLinter.ts only. - 00-build-disable-mangle: line-number shift in build/lib/compilation.ts. - 00-copilot-fix-action-condition: one hunk needed re-targeting in chatSetupContributions.ts (lines moved); all other hunks applied clean. - 20-keymap-use-custom-lib: single new line for @vscodium/native-keymap in package-lock.json main deps. - 21-policy-use-custom-lib: swap @vscode/policy-watcher → @vscodium/policy-watcher in package.json + surgical removal of @vscode/policy-watcher metadata block in package-lock.json. Next failure surfaces at patches/50-build-improve-gulp-tasks.patch and likely 51-ext-copilot-remove-it.patch — both will need significant rebasing against upstream's restructured Copilot integration. Refs #21
|
Claude finished @sbs44's task in 1m 47s —— View job Code reviewNo issues found. The new commit code/patches/00-brand-remove-branding.patch Lines 135 to 140 in f37192b The remaining changes are mechanical rebase updates against the 1.126.0 tree and check out:
Checked for bugs, leaked literals, and CLAUDE.md compliance (no CLAUDE.md present in the repo or touched directories). 🤖 Generated with Claude Code - If this code review was useful, please react with 👍. Otherwise, react with 👎. |
Patch 50 (gulp tasks): single context-line drift — upstream inserted `getCopilotTgrepExcludeFilter` into the copilot import; corrected the trailing context line so the hunk applies. Patch 51 (copilot removal): fully re-authored against 1.126's substantially expanded Copilot/agent-host subsystem. The old patch (written for ~1.124) was hopelessly stale — 7 of its 8 target deletions no longer matched, and 19+ new SDK-importing files existed that it never touched. Approach (Copilot-only removal; Claude + agentHost + sessions kept, all MIT): - Removed @github/copilot + @github/copilot-sdk from package.json and all 11 node_modules/@github/copilot* blocks from package-lock.json (proprietary Copilot binaries can't be redistributed in a signed .dmg). - Deleted 15 Copilot-CLI-provider source files + 9 provider-specific tests. - Kept shared agent infra (copilotToolDisplay, mapSessionEvents, sessionCustomizationDiscovery, both otel services, copilotTestEvents fixture) and stripped their @github/copilot-sdk *type* imports, replacing them with local type defs / `any` aliases so the kept Claude provider + agentService tests keep compiling. - Unregistered the Copilot provider in agentHostMain.ts + agentHostServerMain.ts. - Reworked build wiring: gulpfile.vscode.ts + gulpfile.reh.ts (drop copilot import, compileCopilotExtensionBuildTask, copilotRuntimePrebuilds + copilot/ ripgrep filters, prepareCopilotRipgrepShim task + call), build/npm/dirs.ts (drop extensions/copilot), build/npm/postinstall.ts (drop copilot-sdk patch). Verified: all 36 patches apply cleanly in CI order; zero remaining @github/copilot import statements and zero imports of deleted files across src/ + build/. Refs #21
|
Claude finished @sbs44's task in 10m 38s —— View job Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance (no CLAUDE.md present in the repo). Reviewed the latest commit
🤖 Generated with Claude Code - If this code review was useful, please react with 👍. Otherwise, react with 👎. |
The re-engineered patches now apply cleanly and the build reaches the tsgo typecheck, which surfaced 3 errors (2 pre-existing, exposed now that earlier patch-apply failures are gone): - patch 51 / copilotToolDisplay.ts: the local `PermissionRequest` stub used `kind: string`, too broad for `permissionKind` (TS2322). Narrowed it to the exact union agentService's `IAgentToolPendingConfirmationSignal.permissionKind` expects. - patch 21 / copilotManagedSettingsService.ts: new-in-1.126 file imports `@vscode/policy-watcher`, which patch 21 renames to `@vscodium/policy-watcher`. Added the same rename hunk (matching the existing nativePolicyService.ts rewrite) so the custom policy-watcher lib resolves (TS2307 ×2). All 36 patches apply cleanly in CI order. Refs #21
|
Claude finished @sbs44's task in 14m 52s —— View job Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance (no CLAUDE.md present in the repo). Reviewed the latest commit
A few dead-code observations (stubbed-but-uncalled files, an undeleted 🤖 Generated with Claude Code - If this code review was useful, please react with 👍. Otherwise, react with 👎. |
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance (no CLAUDE.md present in the repo). Reviewed the latest commit
All code/patches/21-policy-use-custom-lib.patch Lines 340 to 364 in e4acf06 code/patches/51-ext-copilot-remove-it.patch Lines 9419 to 9425 in e4acf06 🤖 Generated with Claude Code - If this code review was useful, please react with 👍. Otherwise, react with 👎. |
|
Claude finished @sbs44's task in 1m 37s —— View job Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance (no CLAUDE.md present in the repo). Reviewed the new commit Verified:
code/patches/21-policy-use-custom-lib.patch Lines 360 to 376 in 3606ca2
🤖 Generated with Claude Code - If this code review was useful, please react with 👍. Otherwise, react with 👎. |
The previous fix renamed @vscode/policy-watcher -> @vscodium/policy-watcher in copilotManagedSettingsService.ts, which let the module resolve and exposed a deeper mismatch (TS2352): the @VSCodium fork's createWatcher signature is (vendorName, productName, policies, onDidChange) with no options arg, whereas upstream is (productName, policies, onDidChange, options). nativePolicyService.ts was already adapted by patch 21 (it prepends a vendor name); the new-in-1.126 copilotManagedSettingsService.ts was not. Adapt the production import to the fork's signature while preserving the file's own CopilotPolicyWatcherFactory abstraction, so the 5 injected-factory unit tests stay untouched: wrap the fork's createWatcher to prepend the 'BradfordCode' vendor name (matching nativePolicyService) and ignore the unsupported options. All 36 patches apply cleanly in CI order. Refs #21
3606ca2 to
3bfc05b
Compare
Code review
|

Rebases
patches/00-brand-remove-branding.patchagainst VS Code 1.126.0 and bumps the pin.All 30+ patches now apply cleanly against the 1.126.0 commit. Verified locally via apply_patch loop.
Refs #21