From cac06f9259daee24beeee7d6b65bbc7c39ca82dd Mon Sep 17 00:00:00 2001 From: Dotta Date: Wed, 7 Oct 2026 01:26:46 -0500 Subject: [PATCH] test(runner): format OpenCode tool-event regression Formatting only; keep the a704a0b91 paid campaign frozen at its original source. Co-Authored-By: Paperclip --- .../crates/runner-core/src/provider_events.rs | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/packages/paperclip-runner/runner/crates/runner-core/src/provider_events.rs b/packages/paperclip-runner/runner/crates/runner-core/src/provider_events.rs index 2a6bae1b3e..5e1bc49875 100644 --- a/packages/paperclip-runner/runner/crates/runner-core/src/provider_events.rs +++ b/packages/paperclip-runner/runner/crates/runner-core/src/provider_events.rs @@ -1761,18 +1761,24 @@ mod tests { ("item/updated", "tool.execution.progressed", "running"), ("item/completed", "tool.execution.completed", "failed"), ] { - let events = normalize_codex_notification(method, &json!({ - "threadId": "session-1", "turnId": "turn-1", "item": { - "id": "part-invalid", "type": "builtinToolCall", "tool": "invalid", - "status": status, "output": "Tool not found: fixture_missing; token=top-secret", - } - })); + let events = normalize_codex_notification( + method, + &json!({ + "threadId": "session-1", "turnId": "turn-1", "item": { + "id": "part-invalid", "type": "builtinToolCall", "tool": "invalid", + "status": status, "output": "Tool not found: fixture_missing; token=top-secret", + } + }), + ); assert_eq!(events[0].event_type, event_type); assert_eq!(events[0].payload["executionId"], "part-invalid"); assert_eq!(events[0].payload["transport"], "builtin"); assert_eq!(events[0].payload["name"], "invalid"); assert_eq!(events[0].payload["status"], status); - assert!(events[0].payload["output"].as_str().unwrap().contains("fixture_missing")); + assert!(events[0].payload["output"] + .as_str() + .unwrap() + .contains("fixture_missing")); assert!(!events[0].payload.to_string().contains("top-secret")); assert!(events[0].payload.get("callId").is_none()); }