From c94e976ca6846d8873ebfffcc016661379a71714 Mon Sep 17 00:00:00 2001 From: Nucleic Date: Sun, 26 Jul 2026 18:42:41 -0700 Subject: [PATCH] Merge nucleic/hazy-cedar-badger-mzt0 into dev --- .../Views/Transcript/SandboxToolDisplay.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/NucleicRemote/NucleicRemote/Views/Transcript/SandboxToolDisplay.swift b/NucleicRemote/NucleicRemote/Views/Transcript/SandboxToolDisplay.swift index cceaf33..004bdc0 100644 --- a/NucleicRemote/NucleicRemote/Views/Transcript/SandboxToolDisplay.swift +++ b/NucleicRemote/NucleicRemote/Views/Transcript/SandboxToolDisplay.swift @@ -104,8 +104,13 @@ enum SandboxToolDisplay { return [verb, point].compactMap { $0 }.joined(separator: " ") case "type": return string(step, "text").map { "\(verb) “\(clip(singleLine($0)))”" } ?? verb - case "key", "launch_app", "open_browser": + case "key", "launch_app": return string(step, "text").map { "\(verb) \(clip($0))" } ?? verb + // The starting page is the informative half of an `open_browser` with a `url` — "open chrome" + // says far less than the address it lands on. + case "open_browser": + let target = string(step, "url") ?? string(step, "text") + return target.map { "\(verb) \(clip($0))" } ?? verb case "scroll": let amount = step["scroll_amount"]?.intValue.map { String($0) } return [verb, string(step, "scroll_direction"), amount].compactMap { $0 }