Skip to content

feat(limrun): keep recordings of attached instances - #5226

Merged
thymikee merged 3 commits into
mainfrom
limrun-persist-attached-recordings
Nov 29, 2026
Merged

thymikee merged 3 commits into
mainfrom
limrun-persist-attached-recordings

Conversation

@thymikee

@thymikee thymikee commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Summary

When agent-device records an attached Limrun instance (one someone else created and handed over), startRecording now passes persist: true. Limrun keeps the finished MP4 (default TTL 72 h), so the instance owner can find it with listRecordings. Created instances are unchanged: no persist. The local download to the output path is unchanged.

Ownership is read from the session in createRecordingOperations, so no new parameters cross the recording runtime. The Limrun docs page notes the behavior.

Before / after

Before: attached and created instances both call startRecordingSession({ recordingId, quality }).
After: attached adds persist: true; created is identical to before.

Validation

Tested at head 07416af. pnpm exec vitest run packages/provider-limrun passes (222 tests, including a new attached/created case). pnpm typecheck, pnpm lint and pnpm format pass. Not run: check:affected, device lanes. No live Limrun run.


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

View guided diff Turn on auto-fix

@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Size Report

Metric Base Current Diff
Installed (including dependencies) 6.70 MB 6.70 MB +18 B
Package (unpacked) 6.70 MB 6.70 MB +18 B
Package (download) 2.05 MB 2.05 MB +19 B

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 19.7 ms 19.9 ms +0.1 ms
CLI --help 42.4 ms 44.0 ms +1.5 ms

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All reported issues were addressed across 3 files

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread website/docs/docs/limrun.md Resolved
@apex-sentinel-staging

This comment has been minimized.

@apex-sentinel-staging apex-sentinel-staging Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Apex Sentinel: 1 new finding on 1d6462f. The verdict and the full list are in the summary comment.

Comment thread website/docs/docs/limrun.md Outdated
Comment on lines +289 to +292
On an instance you attach to, agent-device also asks Limrun to keep the finished MP4. The
instance owner can list it with `listRecordings` for Limrun's retention time, 72 hours by default.
On an instance that agent-device creates, the recording is only downloaded to the local output
path, and `listRecordings` does not list it.

@apex-sentinel-staging apex-sentinel-staging Bot Nov 29, 2026 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No longer raised on 0eb470b.

🟡 Minor · Docs tell users to list retained MP4s with a listRecordings command that does not exist

agent-device listRecordings returns an unknown-command error. The name appears only in these two doc lines with no CLI command, help entry, or Node API behind it. Other backticked calls on the page (record start, leases.allocate, runtime.getDeviceSession(device)) are agent-device surfaces, so the reader cannot tell which tool owns this one.

Suggested change

On an instance you attach to, agent-device also asks Limrun to keep the finished MP4. The
instance owner finds it through Limrun's own recording listing (the Limrun API, not an
agent-device command) for Limrun's retention time, 72 hours by default. agent-device cannot
list or delete those retained files. On an instance that agent-device creates, the recording
is only downloaded to the local output path.

Details

Also raised here

Also raised at this location by persona javascript: Docs tell owners to use listRecordings, which is no command in this CLI — A reader of the Limrun docs page reaches "The instance owner can list it with listRecordings" and finds no such agent-device command: the command registry has no listRecordings/record list (only record), and the name appears nowhere else in the checkout's docs or CLI help. If it names the Limrun SDK method or the lim CLI's command, the page does not say so, and owners following agent-device docs will not find it. Name the tool the command belongs to (e.g. Limrun's lim CLI or SDK listRecordings), or link the Limrun doc that owns it.

Also raised at this location by persona maintainability: New docs paragraph names listRecordings where the page otherwise names CLI commands — In this paragraph the reader is told to use listRecordings, but the surrounding lines name runnable commands in the page's form (record stop, --quality medium|high), so it reads as an agent-device command that does not exist. Name the command the instance owner actually runs, or say plainly that this is Limrun's own recording list rather than an agent-device one.

persona: senior-developer, javascript, maintainability

Useful? Reply @apex-sentinel-staging like, or @apex-sentinel-staging dislike <why> if it is not.

Reply @apex-sentinel-staging note ... to add context, or @apex-sentinel-staging pivot ... if it is wrong — I will re-check the cited code.

@apex-sentinel-staging

Copy link
Copy Markdown

Apex Sentinel · ✅ Approve · review of 0eb470b

Since the review of 1d6462f: 0 new · 0 still open · 1 no longer raised

No open findings.

1 finding below minor hidden (user_settings.min_severity).

Reviewed with this repository's own Sentinel configuration (4a2b6243d43a).

💬 Talking to Sentinel

In a finding's thread, reply with:

Command What it does
@apex-sentinel-staging note <context> Adds context; Sentinel re-checks the cited code
@apex-sentinel-staging pivot <why> Says the finding is wrong; Sentinel re-checks the cited code
@apex-sentinel-staging like Marks the finding as useful
@apex-sentinel-staging dislike <why> Marks it as not useful, so it is not raised again

On this conversation, comment @apex-sentinel-staging review to run a full review once again.

@thymikee
thymikee merged commit 3ec5ab2 into main Nov 29, 2026
22 checks passed
@thymikee
thymikee deleted the limrun-persist-attached-recordings branch November 29, 2026 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant