Skip to content

[pull] main from microsoft:main#1068

Merged
pull[bot] merged 12 commits intocode:mainfrom
microsoft:main
Mar 24, 2026
Merged

[pull] main from microsoft:main#1068
pull[bot] merged 12 commits intocode:mainfrom
microsoft:main

Conversation

@pull
Copy link

@pull pull bot commented Mar 24, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

rebornix and others added 12 commits March 23, 2026 10:49
…t instance (#304344)

* Fix loading sessions that were created by a previous instance of the server

Co-authored-by: Copilot <copilot@github.com>

* Add handleRestoreSession to agentHostMain side effects

Wire up the handleRestoreSession method in the utility process
agent host entry point, delegating to AgentService which forwards
to AgentSideEffects. This was missing after the interface was
updated to require session restore support.

* Address Copilot review: wrap backend errors, use Cancelled for interrupted turns

- Wrap agent.listSessions() and agent.getSessionMessages() calls in
  try/catch so raw backend errors become ProtocolErrors instead of
  leaking stack traces to clients.
- Use TurnState.Cancelled instead of TurnState.Complete for
  interrupted/dangling turns during session restoration.
- Update test assertions to match new interrupted turn state.

(Written by Copilot)

---------

Co-authored-by: Copilot <copilot@github.com>
* refactor: Copilot CLI resort to restoring model from history

* Updates
* Fix Windows agent harness links in postinstall

* Update build/npm/postinstall.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…304397)

Use ITaskService to run tasks in sessions window

Replace the hacky terminal-based task execution (creating a terminal and
sending commands directly) with proper ITaskService.run() delegation.
This ensures all task types are supported on all platforms, not just
shell and npm tasks.

Changes:
- runTask now looks up the task by label via ITaskService.getTask() using
  the workspace folder for the session worktree, then runs it via
  ITaskService.run()
- Removed _resolveCommand, _appendArgs, _getExistingTerminalInstance
  and the _taskTerminals cache (no longer needed)
- Removed _SUPPORTED_TASK_TYPES filter since the task service handles
  all task types
- Replaced ITerminalService dependency with ITaskService and
  IWorkspaceContextService
- Updated tests to mock ITaskService and IWorkspaceContextService

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Sessions - customize badge rendering

* Fix comment format
@pull pull bot locked and limited conversation to collaborators Mar 24, 2026
@pull pull bot added the ⤵️ pull label Mar 24, 2026
@pull pull bot merged commit 0f66161 into code:main Mar 24, 2026
5 of 6 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants