def test_multiline_input():
    """Test that multiline input works when cli_multiline_input is True"""
    config = OpenHandsConfig()
    config.cli_multiline_input = True

    # Simulate multiple lines of input followed by /exit
    mock_inputs = ['line 1', 'line 2', 'line 3', '/exit']

    with patch('builtins.input', side_effect=mock_inputs):
        result = read_input(config.cli_multiline_input)
        assert result == 'line 1\nline 2\nline 3'
Test that multiline input works when cli_multiline_input is True
tests/unit/test_io.py