Conversation
sharon-wang
commented
Mar 11, 2026
- Replace the v0.38.2026020408 upstream merge with v0.37.9 from microsoft/vscode-copilot-chat
- a follow-up experiment to fix issues with copilot chat compatibility in positron #13 to address Assistant: Copilot isn't working in latest daily positron#12410
Replace the v0.38.2026020408 upstream merge with v0.37.9 from microsoft/vscode-copilot-chat. All Positron-specific changes (code fences, fix-copilot-auto-endpoint) are preserved.
354240f Plan: Switch Upstream from v0.38 to v0.37.9Plan: Switch Upstream from v0.38 to v0.37.9Current State
Approach: Build desired state on temp branch, apply as tree replacement on PR branchWhy not revert-then-merge (initial attempt, abandoned)The initial plan was to revert the v0.38 merge and then merge v0.37.9. This doesn't work Why tree replacement worksGit commits store full tree snapshots, not diffs. By building the desired state on a Steps1. Add the Microsoft upstream remote and fetch tagsgit remote add upstream https://github.com/microsoft/vscode-copilot-chat.git
git fetch upstream --tags2. Build desired state on a temp branchStart from git checkout -b temp-v0.37.9 1640676a
git merge v0.37.97 conflicts needed resolving:
3. Cherry-pick Positron-specific fixes onto temp branchBoth cherry-picks applied cleanly with no conflicts. git cherry-pick e03a917e # fix Auto model endpoint lookup
git cherry-pick dd281a49 # codefence the original code4. Replace PR branch tree with temp branch contentGo back to the PR branch (based on main), remove everything, and replace with the git checkout switch-to-upstream-0.37.9
git reset --hard main
git rm -rf .
git checkout temp-v0.37.9 -- .
git add -A
git commit -m "Switch upstream from v0.38 to v0.37.9"5. Compile and fix
6. Clean upgit branch -D temp-v0.37.9VerificationDiffed the final branch against the upstream git diff v0.37.9 --name-only # 50 files differPositron-only files (not in upstream, expected)
Files with properly fenced changes (
|
|
0.37.9 still has the incompatible APIs -- this PR is now superseded by #15! |