Skip to content

Add --multi flag to start llm chat in multi-line mode, fixes #1267 - #1615

Open
Dhvani30 wants to merge 1 commit into
simonw:mainfrom
Dhvani30:feat-1267-chat-multi
Open

Dhvani30 wants to merge 1 commit into
simonw:mainfrom
Dhvani30:feat-1267-chat-multi

Conversation

@Dhvani30

@Dhvani30 Dhvani30 commented Aug 14, 2026

Copy link
Copy Markdown

Fixes #1267

Adds a --multi flag to llm chat so the session starts directly in
multi-line mode, instead of requiring !multi after launch.

Changes in llm/cli.py:

  • New --multi click flag on the chat command
  • New initial_multi parameter on _run_chat() which seeds the
    existing in_multi state

Testing:
Verified locally with uv run llm chat -m echo --multi: the session
starts in multi-line mode immediately (no > prompt suffix), !end
submits the accumulated lines as a single prompt, and behaviour
afterwards matches the existing !multi/!end toggle.

@Dhvani30
Dhvani30 force-pushed the feat-1267-chat-multi branch from a556e46 to 8702030 Compare September 16, 2026 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Launch in multi-line mode via parameter

1 participant