Synced from monorepo
Synced from monorepo Changes: - Cache growing transcripts on the messages backend - Tell the model when a wait was clamped instead of re-inviting it - Stop the stationarity nudge from claiming results are identical - Deliver the stationarity nudge after the tool result - Run auth provider commands through the platform shell (fixes Windows) - Keep monitor tool stdout short and prescriptive - Use UUIDs for analytics event insert IDs - Stop crashing at startup when the host runs out of threads - Delete the current session from within the session - Add project forking-settings toggle (backend and deploy-time control) - Reap a session’s bash and background commands when it closes - Reap a session’s hook child processes when it closes - Track coding-data consent decisions - Fail open the access gate to stop false CLI paywalls - Ship Agent Dashboard user guide - Enable doom-loop recovery by default - Kill agent children and the idle inhibitor when the parent process dies - Fix multi-process credential wipe and orphaned session log writers Source-Revision: 6372e41d828b8a6ee82c29e01a69e27ec895cca9
This commit is contained in:
parent
5da6962e4a
commit
500129c714
89 changed files with 3841 additions and 771 deletions
|
|
@ -32,6 +32,8 @@ const RPC_TIMEOUT: Duration = Duration::from_secs(60);
|
|||
struct Counts {
|
||||
sessions: usize,
|
||||
session_threads: usize,
|
||||
resident_resources: usize,
|
||||
retained_resources: usize,
|
||||
dispatch_locks: usize,
|
||||
session_turn_numbers: usize,
|
||||
permission_event_receivers: usize,
|
||||
|
|
@ -73,11 +75,11 @@ async fn ext_method(
|
|||
method: &str,
|
||||
params: serde_json::Value,
|
||||
) -> serde_json::Value {
|
||||
let raw =
|
||||
let params_json =
|
||||
serde_json::value::RawValue::from_string(params.to_string()).expect("serialize ext params");
|
||||
let resp = tokio::time::timeout(
|
||||
RPC_TIMEOUT,
|
||||
conn.ext_method(acp::ExtRequest::new(method, Arc::from(raw))),
|
||||
conn.ext_method(acp::ExtRequest::new(method, Arc::from(params_json))),
|
||||
)
|
||||
.await
|
||||
.unwrap_or_else(|_| panic!("{method} timed out"))
|
||||
|
|
@ -255,6 +257,12 @@ fn session_churn_returns_registry_snapshot_to_baseline() {
|
|||
baseline.sessions, 0,
|
||||
"warmup session must be fully removed before baseline"
|
||||
);
|
||||
assert_eq!(
|
||||
(baseline.resident_resources, baseline.retained_resources),
|
||||
(0, 0),
|
||||
"warmup must leave no per-session resource entries, including \
|
||||
entries holding no resources"
|
||||
);
|
||||
assert_eq!(
|
||||
baseline.workspace_bindings,
|
||||
Some(0),
|
||||
|
|
|
|||
Loading…
Reference in a new issue