Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(workflows): keep agent toolbar below sticky header

louis3eaa5022d8e7
diff --git a/apps/screenpipe-app-tauri/components/chat/home-card-agent-actions.test.tsx b/apps/screenpipe-app-tauri/components/chat/home-card-agent-actions.test.tsx
index 2be53e35a..4a2457c43 100644
--- a/apps/screenpipe-app-tauri/components/chat/home-card-agent-actions.test.tsx
+++ b/apps/screenpipe-app-tauri/components/chat/home-card-agent-actions.test.tsx
@@ -87,8 +87,8 @@ describe("HomeCardAgentActions", () => {
it("keeps workflow toolbar launchers visible and in document flow", () => {
render(<HomeCardAgentActions pipe={DAY_RECAP} placement="toolbar" />);
const actions = screen.getByRole("group", { name: "Run Day Recap in another agent" });
- expect(actions).toHaveClass("relative", "opacity-100", "pointer-events-auto");
- expect(actions).not.toHaveClass("absolute", "opacity-0", "-translate-y-1/2");
+ expect(actions).toHaveClass("opacity-100", "pointer-events-auto");
+ expect(actions).not.toHaveClass("relative", "absolute", "z-20", "opacity-0", "-translate-y-1/2");
});
it("centers the action cluster over compact chips", () => {
diff --git a/apps/screenpipe-app-tauri/components/chat/home-card-agent-actions.tsx b/apps/screenpipe-app-tauri/components/chat/home-card-agent-actions.tsx
index 4dc3bb28a..c93844de2 100644
--- a/apps/screenpipe-app-tauri/components/chat/home-card-agent-actions.tsx
+++ b/apps/screenpipe-app-tauri/components/chat/home-card-agent-actions.tsx
@@ -199,10 +199,10 @@ export function HomeCardAgentActions({
data-placement={placement}
role="group"
aria-label={`Run ${pipe.title} in another agent`}
- className={`z-20 flex items-center gap-0.5 rounded-md border border-border bg-background p-0.5 text-foreground transition-opacity duration-150 motion-reduce:transition-none ${
+ className={`flex items-center gap-0.5 rounded-md border border-border bg-background p-0.5 text-foreground transition-opacity duration-150 motion-reduce:transition-none ${
placement === "toolbar"
- ? "relative shrink-0"
- : `absolute top-1/2 -translate-y-1/2 ${placement === "chip" ? "left-1/2 -translate-x-1/2" : "right-3"}`
+ ? "shrink-0"
+ : `absolute z-20 top-1/2 -translate-y-1/2 ${placement === "chip" ? "left-1/2 -translate-x-1/2" : "right-3"}`
} ${
placement === "toolbar" || state
? "pointer-events-auto opacity-100"