Skip to content

Conversation

@sestinj
Copy link
Contributor

@sestinj sestinj commented Oct 9, 2025

Description

scripts necessary for this workflow to work: https://hub.continue.dev/continuedev/asciinema-recording


Summary by cubic

Sets up automated asciinema recording for the Continue CLI/TUI so we can generate consistent terminal demos. Adds an Expect script to drive the TUI and produce a demo.cast.

  • New Features

    • Added extensions/cli/demo.expect to automate TUI interactions and record demo.cast via asciinema, with TERM set to xterm-256color.
    • Updated .gitignore to ignore *.expect files, keeping demo.expect tracked.
  • Dependencies

    • Workflow now installs asciinema in system_setup_commands to enable recordings.

@sestinj sestinj requested a review from a team as a code owner October 9, 2025 05:07
@sestinj sestinj requested review from tingwai and removed request for a team October 9, 2025 05:07
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Oct 9, 2025
@sestinj sestinj merged commit 8b10f1d into main Oct 9, 2025
44 checks passed
@sestinj sestinj deleted the nate/asciinema branch October 9, 2025 05:08
@github-project-automation github-project-automation bot moved this from Todo to Done in Issues and PRs Oct 9, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Oct 9, 2025
@github-actions github-actions bot added the tier 2 Important feature that adds new capabilities to the platform or improves critical user journeys label Oct 9, 2025
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 issues found across 3 files

Prompt for AI agents (all 2 issues)

Understand the root cause of the following 2 issues and fix them.


<file name=".github/workflows/runloop-blueprint-template.json">

<violation number="1" location=".github/workflows/runloop-blueprint-template.json:7">
Add the -y flag to this apt install command so the workflow doesn&#39;t block waiting for interactive confirmation.</violation>
</file>

<file name="extensions/cli/demo.expect">

<violation number="1" location="extensions/cli/demo.expect:11">
Running `npm run start` here resolves to the repo-root package.json, which has no start script, so the TUI never starts when this script executes from the root. Please target the CLI package before starting the recording.</violation>
</file>

React with 👍 or 👎 to teach cubic. Mention @cubic-dev-ai to give feedback, ask questions, or re-run the review.

"sudo apt update",
"sudo apt install -y ripgrep"
"sudo apt install -y ripgrep",
"sudo apt install asciinema"
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot Oct 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add the -y flag to this apt install command so the workflow doesn't block waiting for interactive confirmation.

Prompt for AI agents
Address the following comment on .github/workflows/runloop-blueprint-template.json at line 7:

<comment>Add the -y flag to this apt install command so the workflow doesn&#39;t block waiting for interactive confirmation.</comment>

<file context>
@@ -3,6 +3,7 @@
     &quot;sudo apt update&quot;,
-    &quot;sudo apt install -y ripgrep&quot;
+    &quot;sudo apt install -y ripgrep&quot;,
+    &quot;sudo apt install asciinema&quot;
   ]
 }
</file context>
Suggested change
"sudo apt install asciinema"
"sudo apt install -y asciinema"
Fix with Cubic

set env(TERM) "xterm-256color"

# Spawn cn directly inside an asciinema recording session
spawn bash -c "asciinema rec --overwrite demo.cast -c 'npm run start'"
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot Oct 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running npm run start here resolves to the repo-root package.json, which has no start script, so the TUI never starts when this script executes from the root. Please target the CLI package before starting the recording.

Prompt for AI agents
Address the following comment on extensions/cli/demo.expect at line 11:

<comment>Running `npm run start` here resolves to the repo-root package.json, which has no start script, so the TUI never starts when this script executes from the root. Please target the CLI package before starting the recording.</comment>

<file context>
@@ -0,0 +1,36 @@
+set env(TERM) &quot;xterm-256color&quot;
+
+# Spawn cn directly inside an asciinema recording session
+spawn bash -c &quot;asciinema rec --overwrite demo.cast -c &#39;npm run start&#39;&quot;
+
+# Wait for TUI to load
</file context>
Suggested change
spawn bash -c "asciinema rec --overwrite demo.cast -c 'npm run start'"
spawn bash -c "asciinema rec --overwrite demo.cast -c 'npm --prefix extensions/cli run start'"
Fix with Cubic

@sestinj
Copy link
Contributor Author

sestinj commented Oct 12, 2025

🎉 This PR is included in version 1.24.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@sestinj
Copy link
Contributor Author

sestinj commented Oct 14, 2025

🎉 This PR is included in version 1.28.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@sestinj
Copy link
Contributor Author

sestinj commented Oct 15, 2025

🎉 This PR is included in version 1.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

released size:M This PR changes 30-99 lines, ignoring generated files. tier 2 Important feature that adds new capabilities to the platform or improves critical user journeys

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants