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

61 lines
2.9 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/embedded_mode_boots_without_hanging_on_blocked_backend.rs"]
mod embedded_mode_boots_without_hanging_on_blocked_backend;
#[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;
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
2026-07-30 19:07:40 +00:00
#[path = "pty_e2e/plan_revise_empty_enter_does_not_approve.rs"]
mod plan_revise_empty_enter_does_not_approve;
#[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;