Fix libsql prompt scope regressions (#1651)

This commit is contained in:
Henry Park
2026-03-25 14:36:53 -07:00
committed by GitHub
parent ab0ad948f3
commit 86d1143064
5 changed files with 72 additions and 9 deletions
+6 -1
View File
@@ -63,7 +63,12 @@ impl Agent {
);
let system_prompt = if let Some(ws) = self.workspace() {
match ws
let scoped_workspace = if ws.user_id() == message.user_id {
Arc::clone(ws)
} else {
Arc::new(ws.scoped_to_user(&message.user_id))
};
match scoped_workspace
.system_prompt_for_context_tz(is_group_chat, user_tz)
.await
{