Synced from monorepo

Synced from monorepo

Changes:
- Temporarily disable session share link creation in the TUI
- Do not approve plan on empty Enter from the revise prompt
- Expose chat product Skills via ACP available_commands_update
- Return immediately from a blocking wait on an already-completed ACP task
- Split headless pager module for clearer structure
- Stop git worktree prune from removing user registrations on resume
- Use compaction sampler tokenizer for item token counts
- Opt-in extra root CAs via GROK_EXTRA_CA_BUNDLE
- Cancel all session subagents when the user stops
- Let the session persistence actor exit when its session ends
- Make fullscreen terminal resize much cheaper on long sessions
- Report honestly from kill_task when an ACP task does not exist
- Hide /usage for external-auth deployments
- Forward the history-load trailer’s computer_reason to the client
- Remove ineffective no-op tool reminder
- Declare slash-command screen-mode support in one place
- Keep settings enum picker on the committed value until Enter
- Reap a PTY’s full process tree
- Stream tool calls from headless mode over ACP
- Bridge gateway task lifecycle to ACP for chat session background tasks
- Don’t warn about truncated history on a suppressed replay
- Fit full-replace summarizer input and recover on context-length errors
- Stop dropping agents over an unrecognized frontmatter color
- Add /undo as a slash alias for /rewind
- Harden sleep/wake token-refresh paths against forced re-login
- Add session/list ACP method
- Give each sampling backend its own conversion module
- Treat an unenrolled child process as a lint error
- Suppress the cancelled marker on send-now wake turns
- Stop tearing down Roslyn on every edit, and read C# diagnostics

Source-Revision: 2a28b4a86cfc4a4c133c35b7fc2a6a9964387c39
This commit is contained in:
grokkybara[bot] 2026-07-30 19:07:40 +00:00
commit dd04f397b1
367 changed files with 29489 additions and 10051 deletions

View file

@ -11,12 +11,16 @@
//! per-session gateway bridge actor and routes prompts through
//! it. Unset → falls back to [`GrokBuildEnvironment::gateway_ws_url`] for
//! sessions created in gateway mode; otherwise local-mode (unchanged).
#[cfg(any(test, feature = "test-support"))]
pub use xai_grok_env::EnvVarGuard;
pub use xai_grok_env::{
GrokBuildEnvironment, PROD_ASSET_SERVER_URL, PROD_CLI_CHAT_PROXY_BASE_URL, PROD_GATEWAY_WS_URL,
PROD_RELAY_WS_URL, PROD_WS_ORIGIN,
};
/// Public Computer Hub WebSocket URL used by the local-workspace supervisor
/// (`workspace_server --hub-url`) when `agent_config.hub.url` is unset.
/// Extracted from the former private leader const (same literal).
pub const PROD_COMPUTER_HUB_WS_URL: &str = "wss://computer-hub.grok.com/v1/tools";
#[cfg(any(test, feature = "test-support"))]
pub use xai_grok_env::EnvVarGuard;
/// Env var that opts a process into gateway-bridge mode. When set to
/// a parseable URL, `session/new` / `session/load` spawns a per-session
/// `gateway_bridge` actor in the shell; unset → local-mode (unchanged).

View file

@ -387,6 +387,7 @@ mod tests {
#[cfg(unix)]
#[test]
fn kill_process_by_pid_terminates_live_child() {
#[allow(clippy::disallowed_methods)]
let mut child = std::process::Command::new("sleep")
.arg("60")
.spawn()
@ -412,6 +413,7 @@ mod tests {
#[cfg(unix)]
#[test]
fn kill_process_with_signal_sigkill_terminates_live_child() {
#[allow(clippy::disallowed_methods)]
let mut child = std::process::Command::new("sleep")
.arg("60")
.spawn()