22title : " Resuming of existing sessions"
33---
44
5- Author(s): [ @josevalim ] ( https://github.com/josevalim )
5+ - Author(s): [ @josevalim ] ( https://github.com/josevalim )
6+ - Champion: [ @benbrandt ] ( https://github.com/benbrandt )
67
78## Elevator pitch
89
@@ -21,13 +22,13 @@ This means that, once you close your editor, browser, etc, you can't resume the
2122This is particularly a problem for agents that do not directly implement ACP and the
2223functionality is implemented via a wrapper. In such cases, they may provide the ability
2324to resume (without history), which we would like to hook into. Not only that, resuming
24- could be used as a mechanism for proxies and adapter libraries to emulate "session/load".
25+ could be used as a mechanism for proxies and adapter libraries to emulate "session/load".
2526
2627## What we propose to do about it
2728
2829> What are you proposing to improve the situation?
2930
30- Add a "session/resume" command and a capability ` resumeSession: true ` .
31+ Add a "session/resume" command and a capability ` { session: { resume: {} } ` .
3132
3233## Shiny future
3334
@@ -45,19 +46,21 @@ the stored messages.
4546
4647> Tell me more about your implementation. What is your detailed implementation plan?
4748
48- <!--
49- Use this section to add details that were not covered in the " What we propose to do about it" section and also include an implementation plan with phases.
50-
51- Note: This section is OPTIONAL and NOT RECOMMENDED when RFDs are first opened. It can distract from the discussion of the problem.
52- -->
53-
5449## Frequently asked questions
5550
5651> What questions have arisen over the course of authoring this document or during subsequent discussions?
5752
58- <!--
59- Keep this section up-to-date as discussion proceeds. The goal is to capture major points that came up on a PR or in a discussion forum -- and if they reoccur, to point people to the FAQ so that we can start the dialog from a more informed place.
60- -->
53+ ### Should we introduce a new operation (session/resume) or add an option to (session/load)?
54+
55+ A separate method provides a few benefits:
56+
57+ - for clients that for whatever reason don't want the history, they can just resume
58+
59+ - for agents that can only supply resume, a proxy on top could provide load on top of it,
60+ but the agent is still clear on what it supports
61+
62+ - for agents who support both, it should be trivial to use the same resume functionality,
63+ they just either replay events or do not
6164
6265### What alternative approaches did you consider, and why did you settle on this one?
6366
@@ -77,18 +80,6 @@ mechanics. If an agent implements "session/load", then it can be used directly,
7780doesn't, a proxy or adapter can provide a reasonable fallback on top of "session/resume".
7881This argues "session/resume" is the basic primitive which "session/load" builds on top of.
7982
80- ### Should we introduce a new operation (session/resume) or add an option to (session/load)?
81-
82- A separate method provides a few benefits:
83-
84- * for clients that for whatever reason don't want the history, they can just resume
85-
86- * for agents that can only supply resume, a proxy on top could provide load on top of it,
87- but the agent is still clear on what it supports
88-
89- * for agents who support both, it should be trivial to use the same resume functionality,
90- they just either replay events or do not
91-
9283## Revision history
9384
94- * 2025-11-24: Update FAQ to mention session/resume vs session/load
85+ - 2025-11-24: Update FAQ to mention session/resume vs session/load
0 commit comments