Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions crates/vite_shared/src/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,14 @@ fn query_terminal_colors(palette_indices: &[u8]) -> (Option<Rgb>, Vec<(u8, Rgb)>
return (None, vec![]);
}

// Docker containers and devcontainers may return unreliable OSC
// responses or introduce excessive pty round-trip latency, causing
// responses to arrive after cooked mode is restored and leak as
// visible text.
if std::path::Path::new("/.dockerenv").exists() {
return (None, vec![]);
}

let mut tty = match OpenOptions::new().read(true).write(true).open("/dev/tty") {
Ok(file) => file,
Err(_) => return (None, vec![]),
Expand Down
Loading