Repository navigation
Preserve instructions for terminal completion notifications - #330570
Merged
Megan Rogge (meganrogge) merged 4 commits intoAug 13, 2026
Merged
Megan Rogge (meganrogge) merged 4 commits into
Megan Rogge (meganrogge) merged 4 commits into
Conversation
Contributor
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: Anthony Kim (@anthonykim1)Matched files:
|
Contributor
There was a problem hiding this comment.
Pull request overview
Preserves instruction collection context for background terminal notifications.
Changes:
- Forwards previous mode and selected tools through
instructionContext. - Extends completion-notification coverage for preserved context.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
runInTerminalTool.ts |
Adds instruction context to notification requests. |
runInTerminalTool.test.ts |
Verifies mode and tools are forwarded. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Contributor
Author
|
@microsoft-github-policy-service agree [company="Microsoft"] |
Contributor
Author
|
@microsoft-github-policy-service agree company="Microsoft" |
Ahmed Mahdy (abmahdy)
force-pushed
the
fix/terminal-notification-instruction-context
branch
from
August 12, 2026 23:55
70e2107 to
187d789
Compare
Megan Rogge (meganrogge)
approved these changes
Aug 13, 2026
Megan Rogge (meganrogge)
left a comment
Collaborator
There was a problem hiding this comment.
Thank you!
Megan Rogge (meganrogge)
enabled auto-merge (squash)
August 13, 2026 16:15
roblourens
approved these changes
Aug 13, 2026
roblourens
approved these changes
Aug 13, 2026
Dmitriy Vasyura (dmitrivMS)
approved these changes
Aug 13, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Fixes #330561
Background terminal completion, input-needed, and terminal-exited notifications resume the previous model, mode, tools, and agent. However, they did not pass an
instructionContext, soIChatServiceskipped automatic instruction collection for the system-initiated turn.This change:
instructionContextbased on the previous request's mode and selected toolsValidation:
npm run typecheck-clientnode node_modules/gulp/bin/gulp.js compile-clientThe focused Electron test was added but could not be launched locally because this machine does not have the Windows 10 SDK required by the VS Code Electron test harness. CI remains the runtime test gate.