Task 1: placing a widget now disarms placement mode — the next canvas
click places nothing until another palette widget is selected. Escape
and clicking the selected palette row again also cancel an armed
placement. Previously pending_kind persisted across placements, so
every click placed another fresh widget.
Task 2: placing a widget refreshes the Code window at once
(Lazarus-style) via a new CanvasState.on_placed hook wired to
Application.refresh_code_view(), so the generated code shows the new
widget without pressing Generate.
Tests: replaced test_pending_kind_persists_across_placements with
test_pending_kind_disarms_after_one_placement, plus
test_escape_cancels_pending_kind and
test_on_placed_fires_after_canvas_click_placement (280 tests pass).
Verified live under Xvfb (p-place-verify.sh + screenshots): place-once,
Escape-cancel, toggle-cancel, re-arm, code sync, clean app log.
- CanvasState on_bounds_change: programmatic resize, set_prop width,
set_bounds/move_to and handle drags fire it; selection changes and
unrelated prop edits do not.
- Inspector refresh_geometry: programmatic resize updates the width/
height spins in place (same editor widgets, no rebuild) and a spin
edit still live-applies; no-op with nothing selected.
- DebuggerWindow: Breakpoints label is the first child of its pane
(above the list) and sits above the tree in window coordinates;
Output label has a 6px top margin.