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(app): simplify AI preset creation (#6551)

Louis Beaumontdaf135082338
diff --git a/apps/screenpipe-app-tauri/components/rewind/ai-presets-selector.test.tsx b/apps/screenpipe-app-tauri/components/rewind/ai-presets-selector.test.tsx
index 8f1c6ef07..29649ac71 100644
--- a/apps/screenpipe-app-tauri/components/rewind/ai-presets-selector.test.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/ai-presets-selector.test.tsx
@@ -102,6 +102,15 @@ vi.mock("@/lib/http/tauri-fetch", () => ({
vi.mock("@/lib/utils/tauri", () => ({
commands: {
piCheck: vi.fn(async () => ({ status: "ok", data: { available: false } })),
+ piAcpAgentInstallStatus: vi.fn(async () => ({
+ requiresInstall: false,
+ installed: true,
+ })),
+ piAcpAgentDownloadPending: vi.fn(async () => false),
+ piAcpProbeAgent: vi.fn(async () => ({
+ status: "error",
+ error: "model and mode choices unavailable",
+ })),
chatgptOauthStatus: vi.fn(async () => ({ status: "ok", data: { logged_in: false } })),
chatgptOauthGetToken: vi.fn(async () => ({ status: "error" })),
},
@@ -216,6 +225,9 @@ describe("AIPresetsSelector controlled preset creation", () => {
"Pi",
]);
+ fireEvent.click(screen.getByRole("button", { name: "Pi" }));
+ expect(screen.queryByText("how this works")).not.toBeInTheDocument();
+
fireEvent.click(screen.getByRole("button", { name: "screenpipe" }));
const nameInput = screen.getByLabelText("name");
expect(nameInput).toBeEnabled();
diff --git a/apps/screenpipe-app-tauri/components/settings/acp-agent-picker.tsx b/apps/screenpipe-app-tauri/components/settings/acp-agent-picker.tsx
index 5df6545c9..03e5f7c47 100644
--- a/apps/screenpipe-app-tauri/components/settings/acp-agent-picker.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/acp-agent-picker.tsx
@@ -231,22 +231,9 @@ export function AcpAgentPicker({
</div>
)}
- {/* Keep the quick dialog calm; the full settings editor still shows the
- ownership split because that is where people troubleshoot setup. */}
- {compact ? (
- <details className="border border-border/60 bg-muted/20 p-2 text-[10px]">
- <summary className="cursor-pointer text-muted-foreground hover:text-foreground">
- how this works
- </summary>
- <AcpBoundaries
- agentName={info.name}
- compact
- className="mt-2 border-0 bg-transparent p-0"
- />
- </details>
- ) : (
- <AcpBoundaries agentName={info.name} />
- )}
+ {/* Keep the quick dialog focused on setup; the full settings editor shows
+ the ownership split where people troubleshoot configuration. */}
+ {!compact && <AcpBoundaries agentName={info.name} />}
<AcpInstallGate
compact={compact}