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
|
|
@ -99,6 +99,9 @@ pub struct AppCtx<'a> {
|
|||
pub cwd: &'a std::path::Path,
|
||||
/// Session announcements (critical or promo) exist (gates `/announcements` visibility).
|
||||
pub has_session_announcements: bool,
|
||||
/// Consumer billing surface (`AppView::usage_visible`). Gates `/usage` subcommands.
|
||||
pub billing_surface_visible: bool,
|
||||
pub workflows_available: bool,
|
||||
/// Effective render mode of this process (gates `/minimal` and
|
||||
/// `/fullscreen` visibility). Same source of truth as
|
||||
/// [`CommandExecCtx::screen_mode`], carried by the owning
|
||||
|
|
@ -115,6 +118,8 @@ pub struct CommandExecCtx<'a> {
|
|||
pub session_id: Option<&'a acp::SessionId>,
|
||||
pub bundle_state: &'a BundleState,
|
||||
pub(crate) screen_mode: crate::app::ScreenMode,
|
||||
/// Consumer billing surface (`AppView::usage_visible`). Gates `/usage` subcommands.
|
||||
pub billing_surface_visible: bool,
|
||||
/// Snapshot of the active agent's PAGER-owned settings, built at
|
||||
/// command-build time by the dispatcher. Slash commands like
|
||||
/// `/multiline` read this to compute `!current` and dispatch a
|
||||
|
|
@ -149,6 +154,16 @@ pub trait SlashCommand: Send + Sync {
|
|||
false
|
||||
}
|
||||
|
||||
/// Runtime args contract (e.g. subcommands only for some auth modes).
|
||||
/// Defaults to [`Self::takes_args`]. Dropdown/completion paths only:
|
||||
/// insert text (trailing space), the args-phase snapshot, and argument
|
||||
/// suggestions. Enter-completeness ([`crate::slash::is_command_complete`])
|
||||
/// keys off the static [`Self::takes_args`] / [`Self::args_required`] pair.
|
||||
#[allow(unused_variables)]
|
||||
fn takes_args_now(&self, ctx: &AppCtx) -> bool {
|
||||
self.takes_args()
|
||||
}
|
||||
|
||||
/// Whether arguments are required for execution.
|
||||
///
|
||||
/// Only meaningful when `takes_args()` is true. The two-bit model:
|
||||
|
|
|
|||
Loading…
Reference in a new issue