commit 69a2f3d9ccad43a9f9dfe3025e6af391b556cc04
parent 3fe434ab777c09c64f1505be068801441b34b2aa
Author: William Casarin <jb55@jb55.com>
Date: Sun, 22 Feb 2026 13:56:13 -0800
dave: remove redundant t tag filter from session state queries
Kind 31988 is already specific to AI session state events, so
filtering by t:ai-session-state on top of that is redundant and
could cause events to be missed if one was published without the tag.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat:
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/crates/notedeck_dave/src/lib.rs b/crates/notedeck_dave/src/lib.rs
@@ -2278,7 +2278,6 @@ impl notedeck::App for Dave {
// Local: subscribe in ndb for kind-31988 session state events
let state_filter = nostrdb::Filter::new()
.kinds([session_events::AI_SESSION_STATE_KIND as u64])
- .tags(["ai-session-state"], 't')
.build();
match ctx.ndb.subscribe(&[state_filter]) {
Ok(sub) => {
diff --git a/crates/notedeck_dave/src/session_loader.rs b/crates/notedeck_dave/src/session_loader.rs
@@ -254,10 +254,7 @@ pub struct SessionState {
pub fn load_session_states(ndb: &Ndb, txn: &Transaction) -> Vec<SessionState> {
use crate::session_events::AI_SESSION_STATE_KIND;
- let filter = Filter::new()
- .kinds([AI_SESSION_STATE_KIND as u64])
- .tags(["ai-session-state"], 't')
- .build();
+ let filter = Filter::new().kinds([AI_SESSION_STATE_KIND as u64]).build();
let is_valid = |note: &nostrdb::Note| {
// Skip deleted sessions