π OpenHands: AI-Driven Development
Fix /init on CLI Runtime (#9474)
Engel Nystac2947b7ffd7
diff --git a/openhands/cli/commands.py b/openhands/cli/commands.pyindex 787799dcfc..2aef2a2f9f 100644--- a/openhands/cli/commands.py+++ b/openhands/cli/commands.py@@ -129,7 +129,7 @@ async def handle_init_command(close_repl = Falsereload_microagents = False- if config.runtime == 'local':+ if config.runtime in ('local', 'cli'):init_repo = await init_repository(config, current_dir)if init_repo:event_stream.add_event(@@ -140,7 +140,7 @@ async def handle_init_command(close_repl = Trueelse:print_formatted_text(- '\nRepository initialization through the CLI is only supported for local runtime.\n'+ '\nRepository initialization through the CLI is only supported for CLI and local runtimes.\n')return close_repl, reload_microagents