Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix: match the agent reel and hero scene to the CLI upload contract

Richie McIlroy77f921462b41
diff --git a/apps/web/components/pages/HomeTwo/scenes/AgentScene.tsx b/apps/web/components/pages/HomeTwo/scenes/AgentScene.tsx
index 5eb965591..734efb61e 100644
--- a/apps/web/components/pages/HomeTwo/scenes/AgentScene.tsx
+++ b/apps/web/components/pages/HomeTwo/scenes/AgentScene.tsx
@@ -362,8 +362,9 @@ export const AgentScene = (props: SceneProps) => {
}
>
<Json>
- {"{"} <Key>"url"</Key>: <Str>"https://cap.so/s/x7f2k9"</Str>{" "}
- {"}"}
+ {"{"} <Key>"type"</Key>: <Str>"uploaded"</Str>, <Key>"id"</Key>:{" "}
+ <Str>"x7f2k9"</Str>, <Key>"link"</Key>:{" "}
+ <Str>"https://cap.so/s/x7f2k9"</Str> {"}"}
</Json>
</Tool>
<Tool
diff --git a/apps/web/components/pages/agents/TaskReel.tsx b/apps/web/components/pages/agents/TaskReel.tsx
index 2032671b4..cfd49f17b 100644
--- a/apps/web/components/pages/agents/TaskReel.tsx
+++ b/apps/web/components/pages/agents/TaskReel.tsx
@@ -60,9 +60,15 @@ const TASKS: readonly Task[] = [
{
type: "tool",
cmd: 'cap upload ./recording.cap --export --name "Checkout bug repro" --json',
- out: '{ "url": "https://cap.so/s/x7f2k9" }',
+ out: '{ "type": "uploaded", "id": "x7f2k9", "link": "https://cap.so/s/x7f2k9" }',
ms: 1200,
},
+ {
+ type: "tool",
+ cmd: "cap caps wait x7f2k9 --for all --json",
+ out: '{ "transcript": { "status": "complete" }, "ai": { "status": "complete" } }',
+ ms: 1600,
+ },
{
type: "result",
text: "Done. The repro is live with a transcript and summary.",
@@ -121,7 +127,7 @@ const TASKS: readonly Task[] = [
{
type: "tool",
cmd: 'cap caps list --search "onboarding" --updated-after 2026-08-10 --json',
- out: '{ "count": 4 }',
+ out: '{ "caps": [ { "id": "k3m8v2", "title": "Onboarding flow v3 walkthrough" }, … ] }',
},
{
type: "tool",
@@ -227,18 +233,18 @@ const TASKS: readonly Task[] = [
{
type: "tool",
cmd: "cap caps import loom https://loom.com/share/7f3a9c2e --organization org_2j4k --owner-email [email protected] --space Product --yes --json",
- out: '{ "operationId": "op_51ac", "status": "queued" }',
+ out: '{ "operationId": "op_51ac", "state": "queued" }',
ms: 900,
},
{
type: "tool",
cmd: "cap jobs wait op_51ac --json",
- out: '{ "status": "completed", "url": "https://cap.so/s/m4p2q8" }',
+ out: '{ "state": "succeeded" }',
ms: 2200,
},
{
type: "result",
- text: "Imported with its title, a transcript, and chapters.",
+ text: "Imported. cap.so/s/m4p2q8 has its title, a transcript, and chapters.",
card: {
kind: "link",
title: "Q3 roadmap walkthrough",