@@ -334,6 +334,9 @@ def deploy(
334334 agent_config = AgentConfig .read (directory )
335335 ensure_profile (agent_config )
336336
337+ user_config = UserConfig .read ()
338+ server_config = user_config .get_server_config ()
339+
337340 active_link = agent_config .active_link
338341
339342 client = api .create_client ()
@@ -375,7 +378,7 @@ def deploy(
375378
376379 run = client .start_strike_run (agent .latest_version .id , strike = strike , model = model , user_model = user_model )
377380 agent_config .add_run (run .id ).write (directory )
378- formatted = format_run (run )
381+ formatted = format_run (run , server_url = server_config . url )
379382
380383 if not watch :
381384 print (formatted )
@@ -385,7 +388,7 @@ def deploy(
385388 while run .is_running ():
386389 time .sleep (1 )
387390 run = client .get_strike_run (run .id )
388- live .update (format_run (run ))
391+ live .update (format_run (run , server_url = server_config . url ))
389392
390393
391394@cli .command (help = "List available models for the current (or specified) strike" )
@@ -440,6 +443,9 @@ def latest(
440443 agent_config = AgentConfig .read (directory )
441444 ensure_profile (agent_config )
442445
446+ user_config = UserConfig .read ()
447+ server_config = user_config .get_server_config ()
448+
443449 active_link = agent_config .active_link
444450 if not active_link .runs :
445451 print (":exclamation: No runs yet, use [bold]dreadnode agent deploy[/]" )
@@ -451,7 +457,7 @@ def latest(
451457 if raw :
452458 print (run .model_dump (mode = "json" ))
453459 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 ))
455461
456462
457463@cli .command (help = "Show the status of the active agent" )
0 commit comments