PhotoCraft: An open-source, photo editor written by scratch in pure Rust
Merge current main and validate document activation replies
jonathanwxh-cellc5e25bba8f71
diff --cc crates/automation/src/rpc.rsindex 15a0e24e3,3db25c4fd..3f46bfe69--- a/crates/automation/src/rpc.rs+++ b/crates/automation/src/rpc.rs@@@ -341,6 -342,6 +342,19 @@@ mod testsMutex::new(Headless::trusted_local())}++ #[test]++ fn document_activation_reply_survives_engine_rpc() {++ let h = session();++ let mut g = h.lock().unwrap();++ for _ in 0..2 {++ g.handle("engine.execute", json!({"command": "file.new", "params": {"width": 4, "height": 4}})).unwrap();++ }++ let reply = g.handle("engine.execute", json!({"command": "document.activate", "params": {"offset": -1}})).unwrap();++ assert_eq!(reply, json!({"document": 0}));++ let reply = g.handle("engine.execute", json!({"command": "document.activate", "params": {"document": 1}})).unwrap();++ assert_eq!(reply, json!({"document": 1}));++ }++#[test]fn execute_reports_invalid_filter_parameters_without_changing_history() {let h = session();diff --cc docs/gaps.mdindex 81828282f,ab42d0f8e..a51eccfd8--- a/docs/gaps.md+++ b/docs/gaps.md@@@ -275,7 -274,7 +279,8 @@@ what an agent can't finish alone| Date | Change | Summary ||---|---|---|+| 2026-10-19 | minor | G11: `.atn` steps that select another open document by offset import as `document.activate {"offset"}`, play and save back (#7103); estimate unchanged |+ | 2026-10-15 | minor | G1 / #5972 A1: render only provably constant-RGB `GdFl` noise fills; variable noise synthesis remains open || 2026-10-18 | minor | G9: with no selection, Copy takes fill and adjustment layers whole and Paste recreates them (#2344); UI-217-23 stays partial (a single pixel layer copies its pixels only); estimate unchanged || 2026-10-14 | minor | G1: a PSD smart object's filter mask shows when the file opens (Photoshop stores the filtered pixels unmasked); export stores them that way too; Photoshop-oracle floor 185 → 188 of 258 || 2026-10-13 | minor | G14: D90 image area measured (4288 × 2848 at (10, 10)); gap remains open |