fix(client): flush incomplete streams before run terminals
fix(client): flush incomplete streams before run terminals: a task in github-trending-environments-10k (Harbor dataset). Title: fix(client): flush incomplete streams before run terminals
The task
**Title:** fix(client): flush incomplete streams before run terminals