Repository navigation
sessions: support agent-authored scheduled chat requests - #348175
Merged
Megan Rogge (meganrogge) merged 3 commits intoNov 13, 2026
Merged
Conversation
Expose one-time scheduling through configureAutomation while reusing Send Later's durable handoff and recovery. Default to the exact originating chat and preserve explicit new-session and recurring behavior. Fixes #348172 Co-authored-by: Copilot <[email protected]>
Contributor
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: Ulugbek Abdullaev (@ulugbekna)Matched files:
Sandeep Somavarapu (@sandy081)Matched files:
Ladislau Szomoru (@lszomoru)Matched files:
|
Megan Rogge (meganrogge)
requested
a max review from Copilot
and removed request for
Copilot
November 13, 2026 15:08
Format the scheduling availability expression to satisfy CI hygiene. Co-authored-by: Copilot <[email protected]>
Megan Rogge (meganrogge)
requested a review
from Ben Villalobos (benvillalobos)
November 13, 2026 15:13
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Configuration snapshots omit effective chat-level approval settings, potentially giving scheduled sessions broader permissions than their source chats.
7 open issues
Snapshot effective chat configuration for scheduled sessions · New Treat queued sends as successful without claiming session ownership · New Reuse saved handoffs before capturing live configuration · New Reject past run times before approval for new operations · New Retain minimal receipts instead of completed request bodies · New Normalize and compare saved requests by resource identity · New Persist accepted handoff IDs during catalogue reconciliation · New
What changed in this PR
Extends the Agents window’s automation tools to schedule one-time chat requests through Send Later, defaulting to the exact calling conversation while preserving recurring automation behavior.
Changes:
- Adds one-time scheduling discovery, creation, and guarded management.
- Reuses durable handoffs and captures running-session configuration for explicit new-session requests.
- Adds regression coverage and updates
/automateguidance, accessibility help, and architecture documentation.
| File | Description |
|---|---|
src/vs/workbench/contrib/sessions/test/browser/scheduledChatsService.test.ts |
Tests durable tool submissions, retries, identities, and edits. |
src/vs/workbench/contrib/sessions/providers/agentHost/browser/baseAgentHostSessionsProvider.ts |
Captures running-session configuration for new scheduled sessions. |
src/vs/workbench/contrib/sessions/browser/scheduledChatsService.ts |
Adds tool-driven scheduling through the existing handoff journal. |
src/vs/sessions/skills/automate/SKILL.md |
Documents the one-time scheduling workflow and safeguards. |
src/vs/sessions/contrib/providers/copilotChatSessions/test/browser/cloudAutomationStore.test.ts |
Updates tool fixtures for the scheduled-chat service dependency. |
src/vs/sessions/contrib/providers/agentHost/test/browser/localAgentHostSessionsProvider.test.ts |
Tests running-session configuration capture. |
src/vs/sessions/contrib/chat/browser/sessionsChatAccessibilityHelp.ts |
Explains agent-authored scheduling in accessibility help. |
src/vs/sessions/contrib/automations/test/browser/automationTools.test.ts |
Covers routing, discovery, validation, management, and confirmations. |
src/vs/sessions/contrib/automations/browser/automationTools.ts |
Extends tool schemas, scheduling operations, and result reporting. |
src/vs/sessions/AUTOMATIONS.md |
Documents handoff persistence and exact-conversation targeting. |
Review effort: Max
Capture effective chat settings, report queue-only dispatch, and reconcile durable scheduling handoffs without recapturing configuration or retaining completed payloads. Validate fresh send times before approval and cover replay normalization and catalogue acceptance. Co-authored-by: Copilot <[email protected]>
Megan Rogge (meganrogge)
enabled auto-merge
November 13, 2026 15:55
Sandeep Somavarapu (sandy081)
approved these changes
Nov 13, 2026
Megan Rogge (meganrogge)
deleted the
agents/agent-scheduling-tool-investigation
branch
November 13, 2026 17:29
This was referenced Nov 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 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.


Fixes #348172.
Summary
configureAutomationwith text-only, one-time requests. Default to the exact calling conversation, including peer chats; explicit new-session targets retain their existing meaning. Recurring automation behavior is unchanged./automateguidance and chat accessibility help.Validation
Passed after updating the branch to
main:The following regression batch passed: 1,079 passing, 11 existing pending tests. A session-local Corepack shim supplied
pnpmonPATH.Also passed:
Live validation on macOS: a real agent discovered the tool, saved a one-time request, and the host delivered it into the original chat at the scheduled time. Peer-chat/new-session routing has unit coverage but was not live-tested. VoiceOver and full smoke/integration suites were not run.
Try it
chat.automations.enabledandsessions.sendLater.enabledin the Agents window with a supported local desktop Agent Host.In three minutes, send "Reply with SCHEDULE_OK. Do not use any tools." to this chat once.