fix: improve config schema and serve from docs site (#1248)
Fix idleTimeout description to document human-friendly formats (30s, 5m, 1h) alongside raw milliseconds. Add trailing newline. Serve the schema from the docs app at agent-browser.dev/schema.json via a prebuild copy step, and update all $schema URLs to use the stable docs-hosted URL instead of raw GitHub.
This commit is contained in:
@@ -1064,16 +1064,14 @@ impl DaemonState {
|
||||
}
|
||||
}
|
||||
}
|
||||
"Page.screencastFrame" => {
|
||||
// Frame broadcasting and acks are handled in real-time by the
|
||||
// stream server's background CDP event loop. Here we just
|
||||
// collect acks as a fallback for non-streaming mode.
|
||||
if self.stream_server.is_none() {
|
||||
if let Some(sid) =
|
||||
event.params.get("sessionId").and_then(|v| v.as_i64())
|
||||
{
|
||||
pending_acks.push(sid);
|
||||
}
|
||||
// Frame broadcasting and acks are handled in real-time by the
|
||||
// stream server's background CDP event loop. Here we just
|
||||
// collect acks as a fallback for non-streaming mode.
|
||||
"Page.screencastFrame" if self.stream_server.is_none() => {
|
||||
if let Some(sid) =
|
||||
event.params.get("sessionId").and_then(|v| v.as_i64())
|
||||
{
|
||||
pending_acks.push(sid);
|
||||
}
|
||||
}
|
||||
"Page.javascriptDialogOpening" => {
|
||||
|
||||
@@ -1302,10 +1302,8 @@ async fn poll_network_idle(
|
||||
}
|
||||
}
|
||||
}
|
||||
"Page.loadEventFired" => {
|
||||
if p.is_empty() {
|
||||
idle_start = Some(tokio::time::Instant::now());
|
||||
}
|
||||
"Page.loadEventFired" if p.is_empty() => {
|
||||
idle_start = Some(tokio::time::Instant::now());
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user