Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(tags): preserve tag filter when switching task tabs (#4520)

gbirman49eeda57b1b7
diff --git a/js/app/packages/app/component/next-soup/soup-view/soup-view-tabs.tsx b/js/app/packages/app/component/next-soup/soup-view/soup-view-tabs.tsx
index eb0701e0ea..467f8544b3 100644
--- a/js/app/packages/app/component/next-soup/soup-view/soup-view-tabs.tsx
+++ b/js/app/packages/app/component/next-soup/soup-view/soup-view-tabs.tsx
@@ -176,6 +176,16 @@ export const useApplyPreset = () => {
mergedFilters = mergeQuery(mergedFilters, query);
}
+ // Tags are a query-only refinement with no backing predicate, so the
+ // predicate-driven reconstruction above never carries them. Preserve the
+ // active selection explicitly like any other refinement.
+ const activeTagFilters = queryFilters.state.include.tagFilters;
+ if (activeTagFilters?.length) {
+ mergedFilters = mergeQuery(mergedFilters, {
+ include: { tagFilters: activeTagFilters.map((t) => ({ ...t })) },
+ });
+ }
+
nextFilters = mergedFilters;
nextClientFilters = {