From 24bbf1ded37f5052485ec3ca0f2655cf6d699260 Mon Sep 17 00:00:00 2001 From: David Kaya Date: Tue, 24 Mar 2026 23:32:22 +0100 Subject: [PATCH] fix: agent node deletion, inspector layout, and header overlap - Enable Delete-key removal of agent nodes on the canvas; system nodes remain non-deletable. Removals route through the authoritative removeAgent path which prevents deleting the last agent. - Stack Model and Reasoning selects vertically in the inspector panel so they fit within the 320px-wide column without truncation. - Add right padding (pr-36 / 144px) to the editor header so the Save and Delete buttons clear the Windows title-bar overlay controls. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/renderer/components/PatternEditor.tsx | 3 ++- .../pattern-graph/PatternGraphCanvas.tsx | 26 ++++++++++++++++--- .../pattern-graph/PatternGraphInspector.tsx | 2 +- src/renderer/lib/patternGraph.ts | 2 +- 4 files changed, 26 insertions(+), 7 deletions(-) diff --git a/src/renderer/components/PatternEditor.tsx b/src/renderer/components/PatternEditor.tsx index 57cec9a..5a8e741 100644 --- a/src/renderer/components/PatternEditor.tsx +++ b/src/renderer/components/PatternEditor.tsx @@ -231,7 +231,7 @@ export function PatternEditor({ return (
{/* Header */} -
+