@@ -334,6 +334,9 @@ def deploy(
334
334
agent_config = AgentConfig .read (directory )
335
335
ensure_profile (agent_config )
336
336
337
+ user_config = UserConfig .read ()
338
+ server_config = user_config .get_server_config ()
339
+
337
340
active_link = agent_config .active_link
338
341
339
342
client = api .create_client ()
@@ -375,7 +378,7 @@ def deploy(
375
378
376
379
run = client .start_strike_run (agent .latest_version .id , strike = strike , model = model , user_model = user_model )
377
380
agent_config .add_run (run .id ).write (directory )
378
- formatted = format_run (run )
381
+ formatted = format_run (run , server_url = server_config . url )
379
382
380
383
if not watch :
381
384
print (formatted )
@@ -385,7 +388,7 @@ def deploy(
385
388
while run .is_running ():
386
389
time .sleep (1 )
387
390
run = client .get_strike_run (run .id )
388
- live .update (format_run (run ))
391
+ live .update (format_run (run , server_url = server_config . url ))
389
392
390
393
391
394
@cli .command (help = "List available models for the current (or specified) strike" )
@@ -440,6 +443,9 @@ def latest(
440
443
agent_config = AgentConfig .read (directory )
441
444
ensure_profile (agent_config )
442
445
446
+ user_config = UserConfig .read ()
447
+ server_config = user_config .get_server_config ()
448
+
443
449
active_link = agent_config .active_link
444
450
if not active_link .runs :
445
451
print (":exclamation: No runs yet, use [bold]dreadnode agent deploy[/]" )
@@ -451,7 +457,7 @@ def latest(
451
457
if raw :
452
458
print (run .model_dump (mode = "json" ))
453
459
else :
454
- print (format_run (run , verbose = verbose , include_logs = logs ))
460
+ print (format_run (run , verbose = verbose , include_logs = logs , server_url = server_config . url ))
455
461
456
462
457
463
@cli .command (help = "Show the status of the active agent" )
0 commit comments