hermes-agent/tests/cli
Teknium 64beb25a35 fix(cli): stop hard-wrapping streamed paragraphs; prefer OSC 52 over SSH
Streamed responses no longer insert real newlines at terminal width —
logical lines are emitted whole and the terminal soft-wraps them, so
highlight-copy rejoins the full line (emulators only keep linebreaks
the app actually printed). This is the CLI equivalent of the TUI's
selection copy, which reads logical source lines from its screen
buffer. TTFT perception is preserved by mirroring the unfinished
line's tail into the spinner status text instead of chunk-printing.

/copy now prefers OSC 52 when running over SSH (SSH_CONNECTION /
SSH_TTY / SSH_CLIENT) — native tools there write the REMOTE clipboard,
which is never what the user wants. The CLI's OSC 52 writer also gains
tmux/screen DCS passthrough wrapping, mirroring the TUI's
wrapForMultiplexer. Fixes #31528 for the CLI surface.

Sabotage-verified: restoring the old chunk emitter fails 3 of the new
tests (hard-wrap detection, spinner mirror, unbreakable-run split).
2026-07-29 08:42:16 -07:00
..
__init__.py
…
test_bracketed_paste_timeout.py
…
test_branch_command.py
…
test_busy_input_mode_command.py
…
test_chat_q_exit_clear.py
…
test_cli_active_agent_ref_wiring.py
…
test_cli_approval_ui.py
…
test_cli_async_delegation_delivery.py
…
test_cli_background_status_indicator.py
…
test_cli_background_tui_refresh.py
…
test_cli_bracketed_paste_sanitizer.py
…
test_cli_browser_connect.py
…
test_cli_codex_context_reference.py
…
test_cli_context_warning.py
…
test_cli_copy_command.py fix(cli): stop hard-wrapping streamed paragraphs; prefer OSC 52 over SSH 2026-07-29 08:42:16 -07:00
test_cli_delegate_background_notice.py
…
test_cli_extension_hooks.py
…
test_cli_external_editor.py
…
test_cli_file_drop.py
…
test_cli_force_redraw.py
…
test_cli_goal_interrupt.py
…
test_cli_image_command.py
…
test_cli_init.py feat: raise default tool-calling iteration limit from 90 to 500 2026-07-26 12:54:45 -07:00
test_cli_insights_command.py
…
test_cli_interrupt_ack_race.py
…
test_cli_interrupt_drain_regression.py
…
test_cli_interrupt_subagent.py
…
test_cli_light_mode.py
…
test_cli_loading_indicator.py
…
test_cli_markdown_rendering.py
…
test_cli_mcp_config_watch.py
…
test_cli_new_session.py
…
test_cli_pet_pane.py
…
test_cli_prefix_matching.py
…
test_cli_preloaded_skills.py
…
test_cli_provider_resolution.py test: cover custom endpoint key storage and model-list persistence 2026-07-24 21:12:59 -05:00
test_cli_reload_skills.py
…
test_cli_resume_command.py fix(timeline): persist typed display events (#69771) 2026-07-23 14:46:24 -04:00
test_cli_retry.py
…
test_cli_save_config_value.py fix(config): persist runtime settings to HERMES_HOME/config.yaml, not the repo template 2026-07-28 10:40:28 -07:00
test_cli_secret_capture.py
…
test_cli_shift_enter_newline.py
…
test_cli_shutdown_memory_messages.py
…
test_cli_skin_integration.py
…
test_cli_status_bar.py
…
test_cli_status_bar_goal.py feat(cli): show active /goal segment in the TUI status bar 2026-07-26 17:47:38 -07:00
test_cli_status_command.py Reapply "Merge pull request #30179 from NousResearch/feat/iron-proxy" 2026-07-24 09:49:00 -07:00
test_cli_steer_busy_path.py
…
test_cli_terminal_response_sanitizer.py
…
test_cli_terminal_shortcuts.py
…
test_cli_tools_command.py
…
test_cli_user_message_preview.py
…
test_cli_yolo_toggle.py
…
test_compress_flags.py
…
test_compress_focus.py
…
test_compress_here.py fix: prevent stale lock-skip signal leaking between compress_context calls 2026-07-23 08:19:14 -07:00
test_compress_type_ahead.py test(cli): prove /compress type-ahead queue-drain; map contributor email 2026-07-23 07:24:46 -07:00
test_cpr_local_leak.py
…
test_cprint_bg_thread.py
…
test_ctrl_enter_newline.py
…
test_cwd_env_respect.py
…
test_destructive_slash_confirm.py
…
test_destructive_slash_inline_skip_e2e.py
…
test_exit_delete_session.py
…
test_exit_summary_resume_hint.py
…
test_exit_watchdog_signal_arm.py
…
test_fast_command.py
…
test_focus_view.py feat(cli): /focus — reduced-output view with hidden-line recovery and status indicator 2026-07-26 18:10:34 -07:00
test_manual_compress.py fix(compress): classify unconfirmed lock-acquire failures and cover all manual-compress surfaces 2026-07-23 08:19:14 -07:00
test_moa_command.py feat(moa): add reference model toggles 2026-07-23 18:11:57 -07:00
test_partial_compress.py
…
test_personality_none.py
…
test_prefill_config.py
…
test_prepend_note_to_message.py
…
test_prompt_text_input_thread_safety.py
…
test_quick_commands.py
…
test_reasoning_command.py
…
test_resume_display.py fix(timeline): persist typed display events (#69771) 2026-07-23 14:46:24 -04:00
test_resume_quiet_stderr.py
…
test_save_conversation_location.py
…
test_session_boundary_hooks.py Reapply "feat(observability): integrate NeMo Relay runtime and shared metrics" 2026-07-27 21:10:51 -07:00
test_single_query_session_finalize.py
…
test_slash_command_interrupt.py
…
test_slash_confirm_windows.py
…
test_steer_inline_repaint_34569.py
…
test_stream_delta_think_tag.py
…
test_stream_flush_left.py fix(cli): flush-left responses + native clipboard /copy for clean copy/paste 2026-07-28 23:53:16 -07:00
test_stream_partial_line_flush.py fix(cli): stop hard-wrapping streamed paragraphs; prefer OSC 52 over SSH 2026-07-29 08:42:16 -07:00
test_surrogate_sanitization.py
…
test_terminal_interrupt_recovery.py
…
test_tool_progress_scrollback.py
…
test_tui_terminal_reset_on_exit.py
…
test_update_command.py
…
test_version_command.py
…
test_worktree.py perf(cli): cut `hermes -w` startup from ~14s to ~1.8s by parallelizing + caching the worktree prune 2026-07-25 16:41:52 -07:00
test_worktree_security.py fix(cli): read .worktreeinclude and .gitignore as UTF-8 in worktree setup 2026-07-24 17:10:39 -07:00
test_worktree_sync_base.py
…