mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
Fix /init on CLI Runtime (#9474)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
91cd647f20
commit
ac2947b7ff
@ -129,7 +129,7 @@ async def handle_init_command(
|
||||
close_repl = False
|
||||
reload_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 = True
|
||||
else:
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user