+ {count >= SEARCH_THRESHOLD ? (
+
+
+ setQuery(e.target.value)}
+ placeholder="Search workspaces…"
+ value={query}
+ />
+
+ ) : null}
+
+ {/* Bounded, scrollable list — keeps a stable height so filtering or a
+ long workspace list doesn't resize (jump) the whole widget. */}
+
+ {filtered.length === 0 ? (
+
+ No workspaces match “{query}”.
+
+ ) : (
+
+ {filtered.map((tag) => {
+ const access = assignedTags?.find(
+ (t) => t.containerTag === tag.containerTag,
+ )
+ return (
+
+ )
+ })}
+
+ )}
+
+
+ {pending ? (
+
+ Setting workspace to {pending}…
+
+ ) : null}
+