chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

FR : Programmatically Collapse a Step (`step.close()` or `step.status = "finished"`)

Open dominpm opened this issue 7 months ago • 1 comments
trafficstars

Summary
It would be incredibly useful to have a way to programmatically collapse a step in the Chainlit UI once it's complete — especially after tools or long-running processes finish streaming.


Why This Matters

  • Long tool steps (e.g., scraping, web search) stream lots of tokens.
  • After they complete, we want to visually signal completion and reduce clutter.
  • Currently, there is no way to collapse or mark a step as "done" via code.

dominpm avatar Mar 31 '25 09:03 dominpm