Repository navigation
Studio: Add "Copy context for agents" to folder menus - #11277
Merged
JonnyBurger merged 3 commits intoSep 14, 2026
Merged
Conversation
Contributor
Contributor
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Add
Copy context for agentsto folder menus —getFolderMenuItems()now builds the agent context via the existingformatContextForAgents()helper withname: folderId(so nested folders yieldParent/Nested) and inserts the item ahead ofCopy file location. - Mirror the composition action — the new item matches
composition-menu-items.tsexactly (label, nullquickSwitcherLabel,disabled: !contextForAgents, clipboard error notification, enabled in read-only Studio). - Extend the folder menu test — mocks
navigator.clipboard.writeText, restores thenavigatordescriptor inafterEach, and asserts the exact copied string for a nested folder.
I verified the test locally (bun test src/test/folder-menu-items.test.ts → 1 pass) and confirmed that no other suite or E2E selector depends on the folder menu's item set. The onClick shape and assertion style match the existing sequence-context-menu-items test.
DeepSeek Flash | 𝕏
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Adds "Copy context for agents" to the context menu for
<Folder>entries in Remotion Studio.The implementation follows the existing composition behavior and reuses
formatContextForAgents()so folders produce the same context format, for example:Fixes #11263
Changes
Copy context for agentsaction to folder context menus.formatContextForAgents()helper for consistency with compositions and timeline items.Testing
Updated
packages/studio/src/test/folder-menu-items.test.tsto verify that the newcopy-context-for-agentsaction is available for folders.I was not able to run the full test suite in my current environment because the repository could not be checked out due to network restrictions.
Documentation
No documentation changes were added because this only fills in a missing Studio context-menu action and does not introduce a new public API or user-facing configuration option.
The behavior follows the already existing
Copy context for agentsaction for compositions.Tradeoffs
This adds another item to the folder context menu, making it slightly longer.
Rather than introducing folder-specific formatting, the implementation deliberately reuses
formatContextForAgents()and the existing folder ID. This keeps the generated context consistent with other Studio elements and avoids maintaining a separate formatting path.