Repository navigation
Right-click a page to rename or delete it, and an agent to delete it - #417
Merged
Merged
Conversation
Both do what the hover controls already do: the page row's pencil and trash, and the delete key on a placed agent, with the same confirmation, undo, last-page protection and view-only rules. The driver learns shareLink, openShareLink and typeText, so a script can open a strategy as a viewer and rename a page.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 48 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
A driver key is dropped when the window has no keyboard focus, and the step still logs ok. Each key step in these scripts now has an agent count after it that fails the run, including the third undo, which had no check.
This was referenced Nov 1, 2026
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.
Real frames from the driver runs, stepped at 1.5 s each (local agent delete, local rename, cloud delete and Undo):
ci: test
People right-click things and expect to act on them. THINKII asked for this on pages in April and Dara said "on it", and placed agents had a right-click menu with no Delete in it. Before this PR, deleting either one meant hovering first: the row's trash button, or E on a hovered agent.
Pages. Right-clicking a page row offers Rename and Delete. Both call the same functions as the row's buttons, so rename keeps its dialog and delete keeps its confirmation, its teammate warning and the cloud Undo toast. The last page shows a greyed Delete, matching its greyed trash button. A viewer gets no menu.
Agents. The menu on a placed agent gets a Delete at the bottom, styled like the other canvas menus. It uses the same undoable delete as pressing E on a hovered agent. Viewers already had no agent menu and still don't.
Two cases needed a decision:
What I saw in a running build
Windows release driver builds against the dev deployment, before and after, from the same commit apart from the change.
right-click-local.json, 101 steps clean: agent delete and Ctrl+Z, selection delete and undo, unselected agent with a selection kept, rename, delete with confirm, delete with cancel, last page refuses.right-click-cloud.json, 63 steps clean: agent delete and undo reach synced, rename, delete, Undo toast brings the page back.right-click-viewer.json, 24 steps clean: right-clicking an agent and a page shows no menu, and the script fails if Rename or Delete appears.expectAgentscount after it that fails the run. Those runs used a build whose driver also took focus back before each key; that guard is not in this PR. Twenty rounds of delete selection, Ctrl+Z, each agent back on its spot, all landed.The driver gained
shareLink,openShareLinkandtypeTextso scripts can open a strategy as a viewer and rename a page, plusexpectAgentsandkeyE, the same lines as #425. Those are inlib/dev/drive, which only compiles into driver builds.Not covered


Confidence Score: 5/5
The PR appears safe to merge; no blocking issues were found.Summary
Adds Rename and Delete to page menus, and undoable Delete to placed-agent menus.
No new actionable issues were found in the changes since the previous review. The full-PR rule check found no violations. Checks here were source-only; the app and driver scripts were not run.
Reviews (3) · Last reviewed commit: "Fail the right-click scripts when an und..." · Reviewed by Greptile