* [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
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