Synced from monorepo
Synced from monorepo Changes: - Shell: accept target response id on rewind execute - Shell: stamp response id on chat user message chunks - Worktree: optional rebuild and stale git registration cleanup in auto-GC - Worktree: kind-aware auto-GC TTLs and config knobs - Worktree: macOS process CWD scan and Unix PID liveness for GC guards - Worktree: automatic throttled GC on startup (Linux age-based; non-Linux dead-only) - Pager: add `[ui].combine_queued_prompts` to batch queued follow-ups - Shell: stop overwriting user skills - Tools: read markdown in `skills/` directories untruncated - `/usage` shows per-session token and dollar usage in the TUI - Security: prompt on environment-dumping `ps` variants - Security: always-safe `kubectl` no longer runs arbitrary kubeconfig credential plugins without permission - Tools: make scheduler deletion durable - Shell: add relocation storage primitives - Shell: give side model calls their own conversation ids - Fix five workflow-runtime bugs (budget, pause, cancel, reconnect) - Security: peel `env -S` / `--split-string` operands in the Bash permission gate (managed deny/ask) - Pager: expose doctor in the TUI - Security: block unauthorized RCE via abused safe commands - Pager idle watcher cue: "1 subagent still running" instead of "watching · 1 subagent" - Security: block `rg --pre` arbitrary code execution in auto-mode - Voice: diagnose silent-mic failures (macOS permission) and add doctor/terminal-setup Voice section - App builder deployer: `allow_forking` and `show_built_with_grok` - Pager: stop stacking duplicate "Worked for" markers on parked turns - Shell: support `max` as a distinct reasoning effort tier - Tools: serialize background `/loop` fires on the whole work unit - Shell: add working-directory relocation state primitives - Proto: `ClientToolResult` and `ChatConfig` client-side tools - Shell: model providers - Chat: select App Builder product on the Build path - Shell: attach author identity to feedback when the deployment opts in - Doctor: fix for SSH wrap setup - Workflow authoring skills: create-workflow and import-claude-workflow docs - Add read-only grok doctor - Sandbox: apply Landlock without a controlling TTY - Pager: recover image paste over grok wrap on headless remotes - Pager: make actions screen-mode aware - Shell: resume sessions when the working directory moves - Pager: centralize terminal diagnostics - Workspace: gate inline shell file access - Pager: centralize terminal probes - Pager: edit minimal prompts in an external editor - Pager: standardize backgrounding on Ctrl+B - Shell: recap rides the parent turn's prompt cache - Tools: add scheduler lifecycle version clock Source-Revision: 0f4d7c91b8b2b408333f6de1e8a76cb8eaa71899
This commit is contained in:
parent
a881e6703f
commit
3af4d5d398
556 changed files with 56609 additions and 21892 deletions
|
|
@ -14,6 +14,27 @@ pub struct GoalDeliverableInfo {
|
|||
pub status: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
|
||||
pub struct WorkflowPhaseInfo {
|
||||
pub title: String,
|
||||
pub state: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
|
||||
pub struct WorkflowAgentInfo {
|
||||
pub agent_id: String,
|
||||
pub label: String,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
pub phase: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
pub model: Option<String>,
|
||||
pub state: String,
|
||||
#[serde(default)]
|
||||
pub tokens_used: u64,
|
||||
#[serde(default)]
|
||||
pub duration_ms: u64,
|
||||
}
|
||||
|
||||
/// xAI-specific session notification (parallel to acp::SessionNotification)
|
||||
/// This wraps an XaiSessionUpdate with session context for persistence and replay.
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
|
||||
|
|
@ -599,6 +620,8 @@ pub enum SessionUpdate {
|
|||
/// ID of the source subagent this session was resumed from.
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
resumed_from: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
workflow_run_id: Option<String>,
|
||||
},
|
||||
/// Periodic progress update for a running subagent.
|
||||
///
|
||||
|
|
@ -770,6 +793,47 @@ pub enum SessionUpdate {
|
|||
ImageDropped { notes: Vec<String> },
|
||||
/// Memory file listing for the pager's /memory modal.
|
||||
MemoryFiles { files: Vec<MemoryFileInfo> },
|
||||
WorkflowUpdated {
|
||||
run_id: String,
|
||||
#[serde(default)]
|
||||
revision: u64,
|
||||
name: String,
|
||||
objective: String,
|
||||
status: String,
|
||||
#[serde(default)]
|
||||
foreground: bool,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
phases: Vec<WorkflowPhaseInfo>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
current_phase: Option<String>,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
agent_budget: Option<u64>,
|
||||
#[serde(default)]
|
||||
agents_used: u64,
|
||||
#[serde(default)]
|
||||
agents_reserved: u64,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
agents_remaining: Option<u64>,
|
||||
#[serde(default)]
|
||||
agent_usage_incomplete: bool,
|
||||
elapsed_ms: u64,
|
||||
#[serde(default)]
|
||||
active_agents: u32,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
current_agent_label: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
agents: Vec<WorkflowAgentInfo>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
last_event: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
last_event_detail: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
last_event_timestamp: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
pause_message: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
result_summary: Option<String>,
|
||||
},
|
||||
/// Goal mode orchestration progress update.
|
||||
///
|
||||
/// Sent on the parent session's notification channel at phase transitions
|
||||
|
|
@ -1429,6 +1493,7 @@ mod tests {
|
|||
role: None,
|
||||
model: None,
|
||||
resumed_from: None,
|
||||
workflow_run_id: None,
|
||||
})
|
||||
.unwrap();
|
||||
let progress = serde_json::to_value(SessionUpdate::SubagentProgress {
|
||||
|
|
|
|||
Loading…
Reference in a new issue