Press j/k to move, c to comment${approve}, s to save, ? for all shortcuts.
`; } /** The shortcut sheet's rows: the review's own keys, led by approve when offered. */ function reviewKeys(canApprove: boolean): KeyHint[] { const rows: KeyHint[] = []; if (canApprove) rows.push({ keys: "a", label: "Approve and run the plan" }); rows.push( { keys: ["j", "k"], label: "Next and previous block" }, { keys: "c", label: "Comment on the current block" }, { keys: "Enter", label: "Add the comment you are writing" }, { keys: "s", label: "Save feedback and return to Pi" }, { keys: "Esc", label: "Close the composer, the sheet, or the review" }, { keys: "?", label: "Toggle this sheet" }, ); return rows; } /** * The approval confirmation. Approving leaves plan mode and runs the plan, which * cannot be undone from the page, so it is one deliberate dialog rather than the * header button's single click. The shared `bf-dialog` styles and the shared * dialog runtime supply the backdrop, the Tab trap, and `Esc`. */ function approveDialog(): string { return `Pi leaves plan mode and starts the work. The comments you added are saved with the plan.
Choose Approve & run to go ahead, or Cancel to keep reviewing.