Skip to content

Commit 2f0d8ad

Browse files
committed
fix terminal for http claw connection
1 parent e0fd176 commit 2f0d8ad

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

crates/example-eventage-claw/src/channels/terminal.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,12 @@ pub async fn run_terminal_channel(
3535
})
3636
.await?;
3737

38-
let Some(raw) = line else { break };
38+
let Some(raw) = line else {
39+
// stdin closed (headless/Docker) — block until killed so the HTTP
40+
// channel keeps running.
41+
std::future::pending::<()>().await;
42+
break;
43+
};
3944
let trimmed = raw.trim().to_string();
4045
if trimmed.is_empty() {
4146
continue;

0 commit comments

Comments
 (0)