notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit e9ba8fbada4a14ae1d491eecfb7b622d5eae9c2e
parent 2a2bbd468643cc442175cfa395b3ae2a0f261838
Author: William Casarin <jb55@jb55.com>
Date:   Thu, 26 Feb 2026 11:17:18 -0800

dave: fix compact button using wrong session ID format

The compact handler was passing the raw SessionId number (e.g. "0")
instead of the prefixed format "dave-session-0" that the backend
uses as its session key. The lookup always returned None, silently
making the compact button a no-op.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Diffstat:
Mcrates/notedeck_dave/src/lib.rs | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crates/notedeck_dave/src/lib.rs b/crates/notedeck_dave/src/lib.rs @@ -2260,7 +2260,7 @@ You are an AI agent for the nostr protocol called Dave, created by Damus. nostr } UiActionResult::Compact => { if let Some(session) = self.session_manager.get_active() { - let session_id = session.id.to_string(); + let session_id = format!("dave-session-{}", session.id); if let Some(rx) = get_backend(&self.backends, bt) .compact_session(session_id, ui.ctx().clone()) {