From 70720c07d6f6c84b14f36781f42b9fd2a21943bf Mon Sep 17 00:00:00 2001 From: Nick Date: Sat, 27 Dec 2025 10:15:19 +1300 Subject: [PATCH] Add debug logging for workflow output history MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- handler.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/handler.py b/handler.py index ceaf765..be571e7 100644 --- a/handler.py +++ b/handler.py @@ -456,6 +456,15 @@ def handler(job: dict) -> dict: history = poll_for_completion(prompt_id, timeout) print("Workflow completed") + # Debug: print history structure + print(f"History keys: {history.keys()}") + if "outputs" in history: + print(f"Output nodes: {list(history['outputs'].keys())}") + for node_id, node_out in history["outputs"].items(): + print(f" Node {node_id}: {list(node_out.keys())}") + if "status" in history: + print(f"Status: {history['status']}") + # Get output files outputs = get_output_files(history)