fix(console): don't replay history when attaching to the console (#358)

This commit is contained in:
alex authored and GitHub committed 2024-08-25 03:49:33 +00:00
1 parent 694de5d1fd
commit ec74bc8d2b
6 files changed
+13 -7

No files matched your search

@@ -46,7 +46,9 @@ impl AttachZoneConsoleRpc {
.map_err(|error| anyhow!("failed to attach to console: {}", error))?;
let output = try_stream! {
yield ZoneConsoleReply { data: console.initial.clone(), };
if request.replay_history {
yield ZoneConsoleReply { data: console.initial.clone(), };
}
loop {
let what = select! {
x = receiver.recv() => ConsoleDataSelect::Read(x),