grok-build-upstream-mirror/crates/codegen/xai-grok-pager/tests/pty_e2e_smoke.rs

57 lines
2.6 KiB
Rust
Raw Normal View History

//! Basic PTY coverage: startup, input, rendering, permission-mode keys, and
//! `grok wrap` command routing.
//!
//! All cases are ignored for ordinary Cargo runs; Bazel opts in and caps this
//! process-heavy family at four concurrent libtest workers.
// Shared support intentionally serves all PTY family crates.
#[allow(dead_code, unused_imports)]
#[path = "pty_e2e/common.rs"]
mod common;
#[path = "pty_e2e/agent_response.rs"]
mod agent_response;
#[path = "pty_e2e/auto_compact_top_row.rs"]
mod auto_compact_top_row;
#[path = "pty_e2e/basename_path_demo_pty.rs"]
mod basename_path_demo_pty;
#[path = "pty_e2e/doubled_lines_out_of_band_repro.rs"]
mod doubled_lines_out_of_band_repro;
#[path = "pty_e2e/initial_prompt_positional_auto_submits.rs"]
mod initial_prompt_positional_auto_submits;
#[path = "pty_e2e/input_echoes_at_idle_prompt.rs"]
mod input_echoes_at_idle_prompt;
#[path = "pty_e2e/renders_on_action.rs"]
mod renders_on_action;
#[path = "pty_e2e/requirements_version_failure_exits_2_with_guidance.rs"]
mod requirements_version_failure_exits_2_with_guidance;
#[path = "pty_e2e/shift_tab_in_session_cycles_mode.rs"]
mod shift_tab_in_session_cycles_mode;
#[path = "pty_e2e/shift_tab_on_welcome_starts_session_in_plan_mode.rs"]
mod shift_tab_on_welcome_starts_session_in_plan_mode;
#[path = "pty_e2e/small_screen_tip_survives_slow_turn.rs"]
mod small_screen_tip_survives_slow_turn;
#[path = "pty_e2e/tab_focuses_scrollback_in_vim_and_default_modes.rs"]
mod tab_focuses_scrollback_in_vim_and_default_modes;
#[path = "pty_e2e/waiting_for_model_label.rs"]
mod waiting_for_model_label;
#[path = "pty_e2e/welcome_screen.rs"]
mod welcome_screen;
#[path = "pty_e2e/welcome_screen_braille_logo_renders_correctly.rs"]
mod welcome_screen_braille_logo_renders_correctly;
Synced from monorepo Changes: - Classify clipboard delivery confidence - Add durable session update append - Scope the xAI session bearer to first-party memory embedding endpoints - Persist subagent outputs to disk and bound long-lived agent state - Add MiniSweAgent:bash for mini-swe-agent parity - Revert taking local sessions off the persistent shell - Contextual tip recommending grok wrap on SSH sessions - Voice STT bearer from model BYOK env_key/api_key - Define exact website policies for sandbox - Gate unsafe shell environments - Shared pin hoist; single require_sha gate for marketplace plugins - Server-signed is-managed claim (closes sidecar-removal downgrade) - Optional require_sha pin for remote plugin installs - Show session title and last exchange in the exit resume hint - Gate shell output redirects - Warn when fail_closed is present but not a boolean - Add canonical text editing core (ratatui-textarea) - Keep execution state out of goal scratch - Add acknowledged persistence primitives - Inherit child network restrictions in sandbox - Fail closed when hook matchers fail to recompile - Add MCP setup preferences for plugin MCPs - Gate sourced shell scripts - Gate file-typed project hooks - grok wrap: restore terminal modes on child death - Harden owner-only permissions on auth and MCP credentials - Create crash dump files with owner-only permissions - Write the agent_id cache owner-only (0600) - SessionMetrics mode skips Mixpanel profile sync - Dashboard: slim live-tail peek - Yank full queued prompt text, not (+N lines) - Defeat clock-rollback on the signed managed-config cache - Stop early session/cancel from overtaking the prompt and wedging the turn slot - Self-heal a diverged agent entrypoint on startup - Add matched inference expectations in test-support - Add AuthSingleFlight cancel/successor gap tests - Remove consumer from external OTEL allowlist and pin scrub coverage - Enable /copy in minimal mode - Surface capacity and API-key detail on 429 errors - Single-flight interactive auth - Fix PageUp/PageDown skipping lines behind sticky prompt header
2026-07-17 14:19:50 +01:00
#[path = "pty_e2e/wrap_child_killed_with_latched_modes_restores_terminal.rs"]
mod wrap_child_killed_with_latched_modes_restores_terminal;
#[path = "pty_e2e/wrap_clean_exit_stays_byte_transparent.rs"]
mod wrap_clean_exit_stays_byte_transparent;
#[path = "pty_e2e/wrap_echo_passthrough_and_exit_code.rs"]
mod wrap_echo_passthrough_and_exit_code;
#[path = "pty_e2e/wrap_explicit_path_not_found_fails_fast.rs"]
mod wrap_explicit_path_not_found_fails_fast;
#[path = "pty_e2e/wrap_not_found_alias_routes_via_shell_contract.rs"]
mod wrap_not_found_alias_routes_via_shell_contract;
#[path = "pty_e2e/wrap_osc52_sink_env_advertised_through_shell.rs"]
mod wrap_osc52_sink_env_advertised_through_shell;
Synced from monorepo Changes: - Classify clipboard delivery confidence - Add durable session update append - Scope the xAI session bearer to first-party memory embedding endpoints - Persist subagent outputs to disk and bound long-lived agent state - Add MiniSweAgent:bash for mini-swe-agent parity - Revert taking local sessions off the persistent shell - Contextual tip recommending grok wrap on SSH sessions - Voice STT bearer from model BYOK env_key/api_key - Define exact website policies for sandbox - Gate unsafe shell environments - Shared pin hoist; single require_sha gate for marketplace plugins - Server-signed is-managed claim (closes sidecar-removal downgrade) - Optional require_sha pin for remote plugin installs - Show session title and last exchange in the exit resume hint - Gate shell output redirects - Warn when fail_closed is present but not a boolean - Add canonical text editing core (ratatui-textarea) - Keep execution state out of goal scratch - Add acknowledged persistence primitives - Inherit child network restrictions in sandbox - Fail closed when hook matchers fail to recompile - Add MCP setup preferences for plugin MCPs - Gate sourced shell scripts - Gate file-typed project hooks - grok wrap: restore terminal modes on child death - Harden owner-only permissions on auth and MCP credentials - Create crash dump files with owner-only permissions - Write the agent_id cache owner-only (0600) - SessionMetrics mode skips Mixpanel profile sync - Dashboard: slim live-tail peek - Yank full queued prompt text, not (+N lines) - Defeat clock-rollback on the signed managed-config cache - Stop early session/cancel from overtaking the prompt and wedging the turn slot - Self-heal a diverged agent entrypoint on startup - Add matched inference expectations in test-support - Add AuthSingleFlight cancel/successor gap tests - Remove consumer from external OTEL allowlist and pin scrub coverage - Enable /copy in minimal mode - Surface capacity and API-key detail on 429 errors - Single-flight interactive auth - Fix PageUp/PageDown skipping lines behind sticky prompt header
2026-07-17 14:19:50 +01:00
#[path = "pty_e2e/wrap_sigterm_restores_terminal_and_exit_code.rs"]
mod wrap_sigterm_restores_terminal_and_exit_code;
#[path = "pty_e2e/wrap_single_string_routes_via_shell.rs"]
mod wrap_single_string_routes_via_shell;