Skip to content

fix: rebase copilot-removal patch for vscode 1.145.2 - #128

Merged
sbs44 merged 1 commit into
mainfrom
fix/127-vscode-1.145.2
Nov 6, 2026
Merged

sbs44 merged 1 commit into
mainfrom
fix/127-vscode-1.145.2

Conversation

@claude

@claude claude Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Fixes the 1.145.2 build failure (run https://github.com/bradford-tech/code/actions/runs/42230509524).

Refs #127

Root cause

VS Code 1.145.2 (c4453f8) changed four files that 51-ext-copilot-remove-it.patch deletes:

  • src/vs/platform/agentHost/node/copilot/copilotAgent.ts
  • src/vs/platform/agentHost/node/copilot/copilotAgentSession.ts
  • src/vs/platform/agentHost/test/node/copilotAgent.test.ts
  • src/vs/platform/agentHost/test/node/copilotAgentSession.test.ts

Because the preimage of each deletion hunk no longer matched, git apply rejected them. ./dev/dry-apply-patches.sh showed this was the only broken patch.

Fix

  • Regenerated just those four deletion hunks from the 1.145.2 tree. All other hunks are unchanged byte-for-byte.
  • Bumped upstream/stable.json to 1.145.2 / c4453f8ea430795f941c1b2ff6c9321135a74a02. I checked the commit with git ls-remote against the tag.

Regenerated-patch checklist

  • Deleted-file count stayed at 113 before and after.
  • Token placeholders are unchanged: there were 43 !!APP_NAME!! before and after, and no literal app name was substituted in.
  • Dangling imports and new upstream importers were covered by the full compile below, which finished with 0 errors.

Verification

  • ./dev/dry-apply-patches.sh: all patches apply cleanly.
  • CI_BUILD=yes ./dev/ci-verify.sh --commit c4453f8ea430795f941c1b2ff6c9321135a74a02: PASS (compile). compile-src and compilation both finished with 0 errors.
  • I did not run --full (vscode-min-prepack). This runner has 7.5 GB RAM, and the playbook says that step runs out of memory below about 8 GB.

1.145.2 changed four files that the patch deletes (copilotAgent.ts,
copilotAgentSession.ts and their tests), so the deletion hunks no
longer matched. Regenerate those four deletion hunks from the 1.145.2
tree and bump upstream/stable.json to the 1.145.2 tag commit.

Refs #127
@claude
claude Bot requested a review from sbs44 as a code owner November 6, 2026 14:29
@sbs44
sbs44 merged commit 64426e3 into main Nov 6, 2026
4 checks passed
@sbs44
sbs44 deleted the fix/127-vscode-1.145.2 branch November 6, 2026 14:31
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Build green at acd6b70 (run). Ready for review — assigned to @sbs44.

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