Skip to content

fix(cli): preserve Ctrl-J newline on macOS#25111

Open
ForgedFinancial wants to merge 3 commits into
NousResearch:mainfrom
ForgedFinancial:fix/macos-ctrl-j-newline-2026-05-13
Open

fix(cli): preserve Ctrl-J newline on macOS#25111
ForgedFinancial wants to merge 3 commits into
NousResearch:mainfrom
ForgedFinancial:fix/macos-ctrl-j-newline-2026-05-13

Conversation

@ForgedFinancial

Copy link
Copy Markdown

Summary\n- Treat native macOS like other preserved environments for Ctrl+J/Ctrl+Enter newline handling.\n- Keep Enter bound to submit while preventing c-j from being bound to submit on macOS.\n- Add regression coverage for macOS preserve behavior and submit binding separation.\n\n## Verification\n- venv/bin/python -m pytest -q -n 0 tests/cli/test_ctrl_enter_newline.py tests/cli/test_cli_init.py::TestPromptToolkitTerminalCompatibility::test_lf_enter_binds_to_submit_handler_posix\n- Direct assertion: macos_ctrl_j_submit_disabled=PASS\n- Canonical bootstrap ctrl-j check: HERMES_MACOS_CTRL_J_SUBMIT_DISABLED=1

@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/cli CLI entry point, hermes_cli/, setup wizard labels May 13, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Competes with #22911 (most comprehensive open PR for macOS Ctrl-J newline preservation) and closed #23448 (identical title/approach). Root issue is #22908.

1 similar comment
@alt-glitch

Copy link
Copy Markdown
Collaborator

Competes with #22911 (most comprehensive open PR for macOS Ctrl-J newline preservation) and closed #23448 (identical title/approach). Root issue is #22908.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants