Describe the Bug
The same run that prints valid HTML to console produces a partially written HTML file when saving to disk.
Operating System
Windows11
Python Version
3.12
Steps to Reproduce
- Execute the shopping assistant workflow; print HTML to console.
- Save the workflow output to an HTML file in the same flow.
Logs or Screenshots
Expected
Complete HTML written to file.
Actual
File writing is interrupted; output is incomplete.
Additional Context
Environment / Context
Shopping assistant scenario with an example input of “recommend headphones under 500 RMB”.
Suggested Fix
• Ensure writes are awaited/flushed; use context managers and flush() before closing.
• If multi-threaded, guard against premature process exit; if async, await file ops.
Priority
P1
Describe the Bug
The same run that prints valid HTML to console produces a partially written HTML file when saving to disk.
Operating System
Windows11
Python Version
3.12
Steps to Reproduce
Logs or Screenshots
Expected
Complete HTML written to file.
Actual
File writing is interrupted; output is incomplete.
Additional Context
Environment / Context
Shopping assistant scenario with an example input of “recommend headphones under 500 RMB”.
Suggested Fix
• Ensure writes are awaited/flushed; use context managers and flush() before closing.
• If multi-threaded, guard against premature process exit; if async, await file ops.
Priority
P1