Synced from monorepo

Changes:
- Detect the herdr multiplexer
- Mark /gboom as non-production code
- Bound peak memory when loading a large session
- Add a subagent lifecycle soak bounding threads, fds, and heap
- Stream inherited replay to bound fork memory
- Copy full plan from plan approval with y
- Stop armed signature verification from deleting the managed-deny smoke policy
- Add source-tagged terminal version telemetry
- Show the UI instantly and fetch models and settings in the background
- Session test helpers
- computer_reason on the ConversationHistoryDone trailer
This commit is contained in:
grokkybara[bot] 2026-07-26 20:03:03 +01:00
commit b41c75a578
92 changed files with 9410 additions and 3788 deletions

View file

@ -20,9 +20,9 @@ use tokio::sync::{mpsc, oneshot};
use super::coordinator_state::{
ActiveChild, BlockingWaiter, BufferedCompletion, ChildRecord, CompletedChild, InternalEvent,
ListRequest, MAX_COMPLETED_ENTRIES, PendingChild, ProgressFuture, ProgressTarget, ReplyFuture,
TaggedFuture, active_summary, background_at_deadline, background_if_caller_gone,
completed_snapshot, completion_summary, sleep_until, workflow_outstanding,
ListRequest, PendingChild, ProgressFuture, ProgressTarget, ReplyFuture, TaggedFuture,
active_summary, background_at_deadline, background_if_caller_gone, completed_snapshot,
completion_summary, sleep_until, workflow_outstanding,
};
use super::types::{
SpawnedSubagentRef, SubagentCancelOutcome, SubagentCancelTarget, SubagentDescribeOutcome,
@ -32,8 +32,8 @@ use super::types::{
pub use super::coordinator_state::{
ChildCompletion, ChildControl, ChildReporter, ChildRunOutput, ChildRunRequest, ChildRunner,
CompletionDisposition, CoordinatorConfig, LocalBoxFuture, SendBoxFuture, StartedChild,
SubagentProgress,
CompletionDisposition, CoordinatorConfig, LocalBoxFuture, MAX_COMPLETED_ENTRIES, SendBoxFuture,
StartedChild, SubagentProgress,
};
/// Channel-owned subagent lifecycle actor.

View file

@ -13,7 +13,9 @@ use super::types::{
SubagentSnapshotStatus, SubagentValidateTypeOutcome,
};
pub(super) const MAX_COMPLETED_ENTRIES: usize = 1024;
/// Cap on retained completed-subagent entries before the oldest are evicted.
/// Public so the subagent soak test can assert the coordinator stays bounded.
pub const MAX_COMPLETED_ENTRIES: usize = 1024;
pub(super) const OUTPUT_UNAVAILABLE_PLACEHOLDER: &str = "[subagent output no longer available]";
pub type LocalBoxFuture<T> = Pin<Box<dyn Future<Output = T> + 'static>>;