Synced from monorepo
Synced from monorepo Changes: - Workspace task snapshots only list incomplete backgrounded tasks - Quiet auth, LSP, and config warnings in the shell - Fix observability attributes for warm store errors, restore setup, remote tools, and preview denials - Fail closed when soak metrics are missing - Run plan-mode exit last in mixed tool batches - Allow /loop to store prompts that can terminate the loop - Make subagent maximum nesting depth configurable - Security: apply sandbox profile to the leader process that executes tools Source-Revision: 1adcd1f477870e4a97bacbd6be78c8a3bfbac46d
This commit is contained in:
parent
b41c75a578
commit
02d9359435
96 changed files with 2346 additions and 351 deletions
|
|
@ -68,6 +68,17 @@ mod inner {
|
|||
.expect("computer_hub_client_reconnects_by_cause_total must register once")
|
||||
});
|
||||
|
||||
static DISCONNECT_DETAIL_CLASS_TOTAL: LazyLock<IntCounterVec> = LazyLock::new(|| {
|
||||
register_int_counter_vec!(
|
||||
"computer_hub_client_disconnect_detail_class_total",
|
||||
"Disconnects with a transport error detail, by cause (transport_read_error |\
|
||||
transport_write_error) and bounded detail_class (connection_reset | \
|
||||
broken_pipe | unexpected_eof | timeout | connection_aborted | other).",
|
||||
&["cause", "detail_class"]
|
||||
)
|
||||
.expect("computer_hub_client_disconnect_detail_class_total must register once")
|
||||
});
|
||||
|
||||
static RECONNECT_GAP_SECONDS: LazyLock<Histogram> = LazyLock::new(|| {
|
||||
register_histogram!(
|
||||
"computer_hub_client_reconnect_gap_seconds",
|
||||
|
|
@ -340,6 +351,12 @@ mod inner {
|
|||
RECONNECTS_BY_CAUSE_TOTAL.with_label_values(&[cause]).inc();
|
||||
}
|
||||
|
||||
pub(crate) fn disconnect_detail_class(cause: &str, detail_class: &str) {
|
||||
DISCONNECT_DETAIL_CLASS_TOTAL
|
||||
.with_label_values(&[cause, detail_class])
|
||||
.inc();
|
||||
}
|
||||
|
||||
pub(crate) fn reconnect_gap_observe(secs: f64) {
|
||||
RECONNECT_GAP_SECONDS.observe(secs);
|
||||
}
|
||||
|
|
@ -551,6 +568,7 @@ mod inner {
|
|||
pub(crate) fn reconnect_failed(_reason: &str) {}
|
||||
pub(crate) fn reconnect_duration_observe(_secs: f64) {}
|
||||
pub(crate) fn reconnect_cause(_cause: &str) {}
|
||||
pub(crate) fn disconnect_detail_class(_cause: &str, _detail_class: &str) {}
|
||||
pub(crate) fn reconnect_gap_observe(_secs: f64) {}
|
||||
pub(crate) fn call_dispatch_observe(_secs: f64) {}
|
||||
pub(crate) fn demux_inbox_depth_set(_depth: i64) {}
|
||||
|
|
@ -598,6 +616,7 @@ pub(crate) use inner::cancel_hook_received;
|
|||
pub(crate) use inner::cancel_no_target;
|
||||
pub(crate) use inner::cancel_pending_tombstoned;
|
||||
pub(crate) use inner::demux_inbox_depth_set;
|
||||
pub(crate) use inner::disconnect_detail_class;
|
||||
pub(crate) use inner::early_notif_buffered;
|
||||
pub(crate) use inner::heartbeat_pong_dropped;
|
||||
pub(crate) use inner::hook_send;
|
||||
|
|
|
|||
Loading…
Reference in a new issue