Fix /init on CLI Runtime (#9474)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Engel Nyst 2025-07-03 14:28:18 +02:00 committed by GitHub
parent 91cd647f20
commit ac2947b7ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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