perf(hive-claude): match rate-limit markers on raw line, drop re-serialize
This commit is contained in:
parent
487e62a9ca
commit
f6977a961a
2 changed files with 7 additions and 6 deletions
|
|
@ -151,7 +151,7 @@ async fn pump_stdout(stdout: ChildStdout, sink: &impl Sink, sentinels: &Sentinel
|
|||
while let Ok(Some(line)) = lines.next_line().await {
|
||||
sentinels.scan_line(&line);
|
||||
if let Ok(event) = serde_json::from_str::<serde_json::Value>(&line) {
|
||||
sentinels.scan_stdout_json(&event);
|
||||
sentinels.scan_stdout_json(&event, &line);
|
||||
sink.on_event(&event);
|
||||
} else {
|
||||
sentinels.scan_rate_limit_text(&line);
|
||||
|
|
|
|||
Loading…
Reference in a new issue