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
|
|
@ -56,9 +56,13 @@ async fn scroll_up_from_follow_bottom_then_back_down() -> Result<()> {
|
|||
.context("welcome")?;
|
||||
|
||||
harness.inject_keys(b"scroll test\r")?;
|
||||
// Follow mode pins the viewport to the bottom, so the top marker only
|
||||
// flashes on-screen before scrolling above the viewport — polling for it
|
||||
// races a fast stream. Wait for the bottom marker, which stays visible in
|
||||
// follow mode once the response reaches it.
|
||||
harness
|
||||
.wait_for_text("MARKER_TOP_OF_RESPONSE", Duration::from_secs(30))
|
||||
.context("top marker while streaming")?;
|
||||
.wait_for_text("MARKER_BOTTOM_OF_RESPONSE", Duration::from_secs(30))
|
||||
.context("response reached bottom while following")?;
|
||||
|
||||
// Wait for stream end. Follow mode pins the viewport to the bottom.
|
||||
let settle_deadline = Instant::now() + Duration::from_secs(45);
|
||||
|
|
|
|||
|
|
@ -22,8 +22,19 @@ use xai_grok_pager_pty_harness::scroll_matrix::{
|
|||
/// across awaits; no poisoning, so one failed cell doesn't cascade).
|
||||
static SERIAL: tokio::sync::Mutex<()> = tokio::sync::Mutex::const_new(());
|
||||
|
||||
/// Per-cell captures land here. Prefer Bazel's `TEST_TMPDIR` (unique and
|
||||
/// isolated per test action) over the shared system temp dir: this target is
|
||||
/// `tags = ["local"]`, so concurrent executions on a CI host would otherwise
|
||||
/// share a stable `/tmp/scroll-matrix-curated/<cell_id>.jsonl` path — a
|
||||
/// second run's stale-capture `remove_file` (and its pager's `GROK_SCROLL_LOG`
|
||||
/// writer) then corrupts the first run's in-flight capture, surfacing as a
|
||||
/// `parse capture: No such file or directory` or a mid-record parse error.
|
||||
/// Falls back to the system temp dir for plain `cargo test`.
|
||||
fn artifacts_dir() -> PathBuf {
|
||||
std::env::temp_dir().join("scroll-matrix-curated")
|
||||
std::env::var_os("TEST_TMPDIR")
|
||||
.map(PathBuf::from)
|
||||
.unwrap_or_else(std::env::temp_dir)
|
||||
.join("scroll-matrix-curated")
|
||||
}
|
||||
|
||||
/// Run one curated cell by id and return its report (panics on unknown ids
|
||||
|
|
|
|||
Loading…
Reference in a new issue