Add configurable Copilot runtime version preference - #358
Conversation
Honor an optional preferred version across local and remote launches, resumes, and headless requests. Provide the matching manual npm install command and document install-before-activation ordering. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Zeke Arany-Lucas <93434462+ZekeAranyLucas@users.noreply.github.com>
Show matching Preferred versions rows for every backend. Copilot remains configurable; other backends stay disabled at Default until supported. Preserve backend selection and existing version preferences. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Zeke Arany-Lucas <93434462+ZekeAranyLucas@users.noreply.github.com>
|
Merging this. The two unticked boxes in your checklist are covered: we ran the full We also verified the cross-backend question directly, since it was the main risk: One fix we will land separately on The guided install/verify/activate flow you describe as outstanding is a good follow-up. Thanks for this. |
Summary
Add an optional, version-agnostic Copilot runtime preference so GraphCode can launch a known-good CLI when a newer release regresses. No release is hardcoded:
1.0.84-5is only an example.Changes
copilotPreferredVersionin the settings shared by the app and daemon; missing or blank values preserve normal Copilot version selection.--prefer-version <version>through app and daemon launches and resumes, locally and over SSH, plus title and summary requests.Scope and remaining rollback work
This is version-preference plumbing, not a complete guided runtime rollback operation.
GraphCode does not execute npm, verify installation readiness, or gate activation on a successful installation. Editing the preference takes effect immediately for subsequent launches. Existing sessions are not interrupted.
The intended complete flow is choose a version, explicitly approve installation, install and verify it on the execution host, and only then activate the preference. Global npm installation also changes Copilot outside GraphCode; that effect needs to be clear before approval. The guided install/verify/activate workflow remains outstanding.
Test plan
swift buildpassed.main.copilot --prefer-version 1.0.84-5 --versionselects that installed version and npm publishes the matching package.Checklist
git commit -s) per the DCOmake testrun (focused suites run instead, as listed above)make checkrun (targeted checks run; pre-existing length violations noted above)