Synced from monorepo
Changes: - Stop hooks for session lifecycle - Add x.ai/session/state and x.ai/session/import ACP methods - Deny-and-continue for auto-mode classifier blocks with denial limits - Drop codebase-upload from dhat soak test - scheduler_create upsert via task_id; retire one-shot tasks - Clipboard: copy file fallback + honest toasts for SSH/Apple Terminal - Polarity-safe syntax colors in minimal mode - Auto mode classifies unvetted env prefixes instead of hard-prompting - Add GROK_CLIPBOARD_NO_OSC52 kill switch to force OSC 52 off
This commit is contained in:
parent
7cfcb20d2b
commit
ba76b0a683
143 changed files with 9465 additions and 3419 deletions
|
|
@ -27,6 +27,18 @@ pub async fn run_headless(
|
|||
server: &MockInferenceServer,
|
||||
args: &[&str],
|
||||
cwd: &Path,
|
||||
) -> HeadlessResult {
|
||||
run_headless_with_env(server, args, cwd, &[]).await
|
||||
}
|
||||
|
||||
/// Like [`run_headless`], but with extra environment variables applied after the
|
||||
/// shared defaults so they take precedence — e.g. to re-enable a feature the
|
||||
/// defaults turn off.
|
||||
pub async fn run_headless_with_env(
|
||||
server: &MockInferenceServer,
|
||||
args: &[&str],
|
||||
cwd: &Path,
|
||||
env: &[(&str, &str)],
|
||||
) -> HeadlessResult {
|
||||
let home = TempDir::new().expect("create temp home");
|
||||
let mut cmd = tokio::process::Command::new(grok_binary());
|
||||
|
|
@ -37,6 +49,7 @@ pub async fn run_headless(
|
|||
.stderr(std::process::Stdio::piped())
|
||||
.kill_on_drop(true);
|
||||
test_env_cmd_tokio(&mut cmd, &server.url(), home.path());
|
||||
cmd.envs(env.iter().copied());
|
||||
run_headless_with_cmd(cmd).await
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue