From 4353df683e2b32460cf047cfe5662da35c49813d Mon Sep 17 00:00:00 2001 From: Shelley Pham Date: Wed, 21 Jan 2026 12:40:28 -0800 Subject: [PATCH] Shelley/let 7155 favorites tagged should be user scoped [LET-7155] (#9003) * make favorite tag a const * add favorite:user:{userId} for favorites * favorite agent upon initial creation * rename const * add eslint ignore * expect favorite tag --- tests/test_client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_client.py b/tests/test_client.py index 55ceeb0b..7c3b0d08 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -300,10 +300,12 @@ def test_agent_tags(client: Letta, clear_tables): # Test getting all tags all_tags = client.tags.list() + # Filter out dynamic favorite:user tags since they contain user-specific UUIDs + all_tags_filtered = [tag for tag in all_tags if not tag.startswith("favorite:user:")] expected_tags = ["agent1", "agent2", "agent3", "development", "origin:letta-chat", "production", "test", "view:letta-chat"] print("ALL TAGS", all_tags) print("EXPECTED TAGS", expected_tags) - assert sorted(all_tags) == expected_tags + assert sorted(all_tags_filtered) == expected_tags # Test pagination paginated_tags = client.tags.list(limit=2)