public inbox for kaagum@systemreboot.net
 help / color / mirror / Atom feed
* [PATCH] Add session/list ACP method handler
@ 2026-07-20 14:31 jgart
  2026-07-20 14:31 ` jgart
  0 siblings, 1 reply; 4+ messages in thread
From: jgart @ 2026-07-20 14:31 UTC (permalink / raw)
  To: kaagum

Return a list of active session IDs.                                                                                                                                  

Thanks,                                                                                                                                                               

jgart


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] Add session/list ACP method handler.
  2026-07-20 14:31 [PATCH] Add session/list ACP method handler jgart
@ 2026-07-20 14:31 ` jgart
  2026-07-20 23:38   ` Arun Isaac
  0 siblings, 1 reply; 4+ messages in thread
From: jgart @ 2026-07-20 14:31 UTC (permalink / raw)
  To: kaagum; +Cc: jgart

Return a list of active session IDs.
---
 kaagum/tea.scm | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/kaagum/tea.scm b/kaagum/tea.scm
index 6e750c0..822ba4a 100644
--- a/kaagum/tea.scm
+++ b/kaagum/tea.scm
@@ -438,6 +438,15 @@ in @code{tea-loop}."
                                                    ((name . command)
                                                     (command->spec name command)))
                                                  %commands))))))))))))
+             ("session/list"
+              ;; Return list of active session IDs.
+              (state-return
+               (list (acp-message `(("jsonrpc" . "2.0")
+                                    ("id" . ,request-id)
+                                    ("result"
+                                     ("sessions"
+                                      . ,(list->vector
+                                          (map car (focus state-sessions state))))))))))
              ("session/set_config_option"
               (let ((session-id (focus (in "params" "sessionId")
                                        request))
-- 
2.55.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Add session/list ACP method handler.
  2026-07-20 14:31 ` jgart
@ 2026-07-20 23:38   ` Arun Isaac
  2026-08-14 10:16     ` jgart
  0 siblings, 1 reply; 4+ messages in thread
From: Arun Isaac @ 2026-07-20 23:38 UTC (permalink / raw)
  To: jgart, kaagum


Hi jgart,

Thanks for the patch!

> +                                     ("sessions"
> +                                      . ,(list->vector
> +                                          (map car (focus
> state-sessions state))))))))))

Could you do this using match? In the interest of readability, we avoid
car, cdr and company.

And, looking at the ACP protocol spec
https://agentclientprotocol.com/protocol/v1/session-list#checking-support ,
we also need to advertise session listing under agentCapabilities. Could
you add that too?

Thanks!
Arun

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Add session/list ACP method handler.
  2026-07-20 23:38   ` Arun Isaac
@ 2026-08-14 10:16     ` jgart
  0 siblings, 0 replies; 4+ messages in thread
From: jgart @ 2026-08-14 10:16 UTC (permalink / raw)
  To: Arun Isaac, kaagum

I'll hold off on this patch until we spend more time determining what the next improvements to kaagum should be that are in line with the project's goals.

all the best,

jgart

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-08-14 10:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-20 14:31 [PATCH] Add session/list ACP method handler jgart
2026-07-20 14:31 ` jgart
2026-07-20 23:38   ` Arun Isaac
2026-08-14 10:16     ` jgart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox