Skip to content

[Bug] Workflow output truncated when writing to HTML file (shopping assistant) #130

Description

@Oxygennnnn

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

  1. Execute the shopping assistant workflow; print HTML to console.
  2. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions