Repository navigation
Conversation
sergiou87
force-pushed
the
sergiou87-assisted-commit-planning
branch
2 times, most recently
from
October 7, 2026 09:08
08357b2 to
627a1ab
Compare
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Instruction files from distinct SDK discovery roots can silently overwrite each other.
1 open finding
What changed in this PR
Adds the constrained backend for Copilot-assisted commit planning while preserving Desktop’s existing transaction validation and execution boundaries.
Changes:
- Adds snapshot-only planning, strict response validation, and unsafe-split fallback.
- Isolates SDK tools, instructions, storage, cancellation, and cleanup.
- Adds extensive planner, SDK, lifecycle, and Git integration tests.
| File | Description |
|---|---|
docs/technical/assisted-commit-transactions.md |
Links transaction and planning layers. |
docs/technical/assisted-commit-planning.md |
Documents contracts, safety, and integration. |
app/src/lib/assisted-commit-planning.ts |
Orchestrates proposal and canonical validation. |
app/src/lib/copilot-assisted-commit.ts |
Defines planner protocol and SDK policy. |
app/src/lib/copilot-assisted-commit-instructions.ts |
Creates isolated instruction configuration. |
app/src/lib/copilot-operation.ts |
Adds cancellable SDK adapters. |
app/src/lib/copilot-in-memory-session-fs-provider.ts |
Adds explicit filesystem disposal. |
app/src/lib/stores/copilot-store.ts |
Implements planner requests and cleanup. |
app/test/helpers/copilot-assisted-commit.ts |
Provides planner test fixtures. |
app/test/unit/copilot-assisted-commit-test.ts |
Tests protocol and session restrictions. |
app/test/unit/copilot-assisted-commit-sdk-test.ts |
Tests actual SDK isolation behavior. |
app/test/unit/copilot-assisted-commit-instructions-test.ts |
Tests instruction copying and ownership. |
app/test/unit/copilot-assisted-commit-instructions-error-test.ts |
Tests setup failure cleanup. |
app/test/unit/copilot-in-memory-session-fs-provider-test.ts |
Tests disposal behavior. |
app/test/unit/git/assisted-commit-planning-test.ts |
Tests snapshot planning with Git validation. |
app/test/unit/stores/copilot-assisted-commit-test.ts |
Tests store lifecycle and errors. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This was referenced Oct 15, 2026
sergiou87
force-pushed
the
sergiou87-assisted-commit-planning
branch
2 times, most recently
from
October 15, 2026 14:57
efa2b07 to
45a8437
Compare
sergiou87
force-pushed
the
sergiou87-assisted-commit-planning
branch
from
October 15, 2026 16:21
45a8437 to
692f55d
Compare
sergiou87
force-pushed
the
sergiou87-assisted-commit-planning
branch
from
October 16, 2026 12:00
692f55d to
a02d7fe
Compare
sergiou87
force-pushed
the
sergiou87-assisted-commit-planning
branch
3 times, most recently
from
October 21, 2026 08:36
d9cebed to
44a32cb
Compare
sergiou87
commented
Oct 26, 2026
| @@ -0,0 +1,311 @@ | |||
| /** Cancellation controls for SDK operations, preserving the caller's domain error. */ | |||
Member
Author
There was a problem hiding this comment.
Some of this code can be reused in other Copilot features. That is done in #23079
sergiou87
marked this pull request as ready for review
October 27, 2026 08:11
This was referenced Oct 28, 2026
tidy-dev
previously approved these changes
Oct 29, 2026
sergiou87
force-pushed
the
sergiou87-assisted-commit-planning
branch
from
October 29, 2026 13:39
de2acca to
152454b
Compare
Remove duplicate custom instruction discovery, copied configuration and instruction-source reinjection. Keep SDK-native loading with model tools disabled, and document normal configured MCP startup and scoped-instruction references. Preserve owned cancellation, credential-aware sessions and plan validation.
Rely on SDK local-session defaults instead of passing remoteSession, which newer SDK versions no longer expose. Preserve all other assisted session controls and verify the exact session config against the CI merge SDK.
sergiou87
force-pushed
the
sergiou87-assisted-commit-planning
branch
from
November 3, 2026 10:47
152454b to
f1cc254
Compare
tidy-dev
previously approved these changes
Nov 3, 2026
sergiou87
dismissed
tidy-dev’s stale review
November 3, 2026 17:14
The merge-base changed after approval.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Layer 3 of the plan-first Copilot-assisted commit series, stacked on #22976. This backend-only layer does not close the complete feature work.
Description
remoteSessionconfiguration and rely on SDK local-session defaults.Stack
Merge in order, starting with 1. Each PR builds on the preceding PR.
Validation
The native-instruction fixture uses bundled SDK 1.0.18/runtime 1.0.94 and a completely local fake model. It observes configured MCP startup separately from zero model-tool access, verifies automatic global/repository root bodies and scoped references, and does not claim evaluated semantic adherence. Ordinary generation/conflict and credential-aware factories remain unchanged. No dependency manifests or compiler configuration were changed.
An isolated strict compiler fixture also checks the complete production session-config function verbatim against SDK
1.0.27-preview.1, pinned by the GitHub merge manifest and lockfile. It reproduced the sole TS2353 error forremoteSessionbefore removal and passed with no diagnostics afterward, including SDK dependency declarations. SDK 1.0.18 documents local-onlyoffas the omitted option's default; the newer SDK no longer exposes or serializes that option. No casts, compatibility shims or replacement remote/export policy were added.corepack yarn test app/test/unit/copilot-assisted-commit-test.ts app/test/unit/copilot-assisted-commit-sdk-test.ts app/test/unit/stores/copilot-assisted-commit-test.ts app/test/unit/stores/copilot-store-credentials-test.ts app/test/unit/stores/copilot-store-test.ts app/test/unit/copilot-commit-message-test.ts app/test/unit/copilot-commit-message-prompt-test.ts app/test/unit/copilot-sdk-auth-test.ts app/test/unit/credential-sessions-test.ts app/test/unit/refresh-token-consumers-test.ts app/test/unit/git/assisted-commit-planning-test.ts— passed, 259 tests.GIT_CONFIG_COUNT=1 GIT_CONFIG_KEY_0=safe.bareRepository GIT_CONFIG_VALUE_0=all corepack yarn test— passed, 2595 tests / 2 skipped. Process-only fixture compatibility; no Git configuration files were changed.corepack yarn testwas not rerun without that override. Four bare-repository fixture failures under CLIsafe.bareRepository=explicitwere independently reproduced on the rebased lower baseline; no unrelated fixes were made.corepack yarn lint:fixandcorepack yarn lint— passed.corepack yarn tsc --noEmit --pretty false— passed, including dependency declarations; noskipLibCheckworkaround.corepack yarn exec markdownlint -- docs/technical/assisted-commit-planning.md --config .markdownlint.js --rules .markdownlint-rules.js— passed.corepack yarn test:e2e:build:unpackaged— not rerun for this one-option compatibility fix. The prior SDK-native change passed the production unpackaged build; this fix separately passes the exact merge-SDK config compile. Native CI for the new head is not yet confirmed.Screenshots
N/A — backend-only; the assisted execution UI remains dormant.
Release notes
Notes: no-notes