From: jgart <jgart@dismail.de>
To: kaagum@systemreboot.net
Cc: jgart <jgart@dismail.de>
Subject: [PATCH] Add session/list ACP method handler.
Date: Mon, 20 Jul 2026 15:31:54 +0100 [thread overview]
Message-ID: <20260720143242.1203535-2-jgart@dismail.de> (raw)
In-Reply-To: <20260720143242.1203535-1-jgart@dismail.de>
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
next prev parent reply other threads:[~2026-07-20 14:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-20 14:31 jgart
2026-07-20 14:31 ` jgart [this message]
2026-07-20 23:38 ` Arun Isaac
2026-08-14 10:16 ` jgart
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260720143242.1203535-2-jgart@dismail.de \
--to=jgart@dismail.de \
--cc=kaagum@systemreboot.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox