Synced from monorepo

Synced from monorepo

Changes:
- Workspace server: surface preview-proxy metrics through the hub metric pump
- Shell: reclaim a session’s retained state in one entry
- Shell: reclaim a session’s resident state in one entry
- Pager: withhold key event types from Alacritty builds that double keys
- Tools: cancel a session’s subagents when it closes
- Pager: keep the whole plan in scrollback and separate reasoning from output in minimal mode
- Pager: probe terminal version over DA2 and include it with feedback
- SuperGrok Plus: identity, CLI, and analytics tier surfaces
- Shell: inherit the session process scope into subagents
- Pager: build @-file-search matcher lazily on first use
- Tools: fix description and output contradictions in tool definitions
- Workspace: degrade @-file-search instead of aborting on thread exhaustion
- Tools: reap a session’s LSP servers when it closes
- Tools: fix contradictions and defects in tool descriptions, schemas, and harness pools
- MCP: reap stdio MCP children on session close
- Shell: reuse spawn-time skill discovery for session telemetry
- Tools: stop leaking shell-wrapper positional params into sourced scripts (fixes activate_conda under persistent/static shell)
- Shell: self-heal corrupt session-search SQLite cache
- Workspace: cap workspace-server tokio workers on many-core hosts
- Shell: reap a session’s child processes when it closes
- Crash handler: capture SIGABRT so panic-aborts leave crash reports
- CLI chat proxy: team-scoped Grok Code managed-config admin routes
- MCP: add CLI enable/disable for MCP servers
- Shell: cap tokio worker threads for startup thread demand
- Workspace: harden git_commit and add git_sync_base operation
- Circuit breaker: add feature-gated gRPC retry policy

Source-Revision: 2a818575225183d8ca915f5632a09b8067b5156a
This commit is contained in:
grokkybara[bot] 2026-07-28 22:50:19 +00:00
commit 5da6962e4a
192 changed files with 10337 additions and 3421 deletions

View file

@ -475,9 +475,9 @@ pub struct DashboardState {
pub peek_reply_rect: Option<Rect>,
/// Directory the reply's `@` file-search daemon is currently rooted
/// at. Tracked so [`Self::ensure_peek_reply_cwd`] can skip a
/// `retarget` (which rebuilds the daemon thread) when the peeked
/// agent's cwd hasn't actually changed. `None` = the construction
/// default (`.`); set to the launch cwd at dashboard open.
/// `retarget` (which drops the daemon so the next @-use rebuilds it)
/// when the peeked agent's cwd hasn't actually changed. `None` = the
/// construction default (`.`); set to the launch cwd at dashboard open.
peek_reply_cwd: Option<PathBuf>,
/// Cwd of the currently-peeked agent, recorded by the render pass
/// (which has the agents map). Applied lazily to the reply's `@`
@ -1919,12 +1919,12 @@ impl DashboardState {
/// Lazily root the reply's `@` file-search daemon at the peeked
/// agent's cwd (recorded in [`Self::peek_reply_target_cwd`]).
///
/// Applied only when it differs from the daemon's current root and
/// only at the moment the user composes into the reply — never on a
/// bare cursor move — because `retarget` rebuilds the matcher daemon
/// thread. So navigating past a dozen agents in other directories
/// costs nothing; the (single) retarget happens on the first
/// keystroke/paste into the reply, deduped by cwd.
/// Applied only when it differs from the daemon's current root, and only
/// when the user composes into the reply (never on a bare cursor move),
/// because `retarget` throws away the built matcher daemon and the next
/// @-use rebuilds it. So navigating past a dozen agents in other
/// directories costs nothing; the single retarget happens on the first
/// keystroke or paste into the reply, deduped by cwd.
fn ensure_peek_reply_cwd(&mut self) {
if let Some(target) = self.peek_reply_target_cwd.clone()
&& self.peek_reply_cwd.as_deref() != Some(target.as_path())