@@ -1316,7 +1316,9 @@ def _resolve_connection_mode(self) -> str:
13161316
13171317 def _render_status_snapshot (self , * , title : str = "Status Snapshot" ) -> None :
13181318 connected = bool (self .connector .current_model )
1319- model = self .connector .current_model_id or self .connector .current_model or "disconnected"
1319+ model = (
1320+ self .connector .current_model_id or self .connector .current_model or "disconnected"
1321+ )
13201322 provider = self .connector .model_type or "-"
13211323 mode = self ._resolve_connection_mode ()
13221324 route = str (self ._last_response_route or "direct-llm" ).strip ().lower () or "direct-llm"
@@ -1357,7 +1359,7 @@ def _render_status_snapshot(self, *, title: str = "Status Snapshot") -> None:
13571359 if connected :
13581360 tips .append ("/models" , style = f"bold { PALETTE .info } " )
13591361 tips .append (" " , style = PALETTE .text_dim )
1360- tips .append (" /rlm run \ " task\ " steps=4" , style = f"bold { PALETTE .success } " )
1362+ tips .append (' /rlm run "task" steps=4' , style = f"bold { PALETTE .success } " )
13611363 tips .append (" " , style = PALETTE .text_dim )
13621364 tips .append ("/connect" , style = f"bold { PALETTE .warning } " )
13631365 else :
@@ -1386,7 +1388,7 @@ def _render_connection_success(self, provider: str, model: str) -> None:
13861388 steps .append ("Ready: " , style = f"bold { PALETTE .success } " )
13871389 steps .append ("/status" , style = f"bold { PALETTE .info } " )
13881390 steps .append (" " , style = PALETTE .text_dim )
1389- steps .append (" /rlm run \ " your task\ " steps=6" , style = f"bold { PALETTE .success } " )
1391+ steps .append (' /rlm run "your task" steps=6' , style = f"bold { PALETTE .success } " )
13901392 steps .append (" " , style = PALETTE .text_dim )
13911393 steps .append ("/models" , style = f"bold { PALETTE .info } " )
13921394
@@ -1444,7 +1446,9 @@ def _render_rlm_run_started(self, command: str) -> None:
14441446 )
14451447 )
14461448 try :
1447- summary = self ._cached_research_summary or self .query_one ("#research_summary" , Static )
1449+ summary = self ._cached_research_summary or self .query_one (
1450+ "#research_summary" , Static
1451+ )
14481452 summary .update (
14491453 "[yellow]Run started...[/yellow] waiting for runtime events. "
14501454 "Open [cyan]Research Lab -> Events[/cyan] for live logs."
@@ -1499,7 +1503,9 @@ def _update_research_live_from_event(self, name: str, payload: dict[str, Any]) -
14991503 except Exception :
15001504 pass
15011505 try :
1502- state ["reward" ] = float (payload .get ("total_reward" , state .get ("reward" , 0.0 )) or 0.0 )
1506+ state ["reward" ] = float (
1507+ payload .get ("total_reward" , state .get ("reward" , 0.0 )) or 0.0
1508+ )
15031509 except Exception :
15041510 pass
15051511 else :
@@ -1535,7 +1541,9 @@ def _update_research_live_from_event(self, name: str, payload: dict[str, Any]) -
15351541 pass
15361542
15371543 try :
1538- summary = self ._cached_research_summary or self .query_one ("#research_summary" , Static )
1544+ summary = self ._cached_research_summary or self .query_one (
1545+ "#research_summary" , Static
1546+ )
15391547 summary .update (
15401548 f"{ status_text } | Reward: [bold]{ reward :.3f} [/bold] | "
15411549 f"Steps: { steps } | Run: [dim]{ run_id } [/dim]{ task_line } "
@@ -1581,8 +1589,12 @@ def _render_rlm_run_summary_from_context(self) -> None:
15811589 body .add_column ()
15821590 body .add_row (lines )
15831591 if final_response :
1584- preview = final_response if len (final_response ) <= 320 else f"{ final_response [:317 ]} ..."
1585- body .add_row (Panel (preview , title = "Final Response (preview)" , border_style = "#3b82f6" ))
1592+ preview = (
1593+ final_response if len (final_response ) <= 320 else f"{ final_response [:317 ]} ..."
1594+ )
1595+ body .add_row (
1596+ Panel (preview , title = "Final Response (preview)" , border_style = "#3b82f6" )
1597+ )
15861598 body .add_row (tail )
15871599
15881600 self ._chat_log ().write (
@@ -2197,9 +2209,7 @@ def _set_command_running(self, command: str) -> None:
21972209 status .append (f"Running { short } " , style = PALETTE .text_secondary )
21982210 self ._thinking_status ().update (status )
21992211
2200- def _render_slash_footer (
2201- self , command : str , * , handled : bool , error : str | None
2202- ) -> None :
2212+ def _render_slash_footer (self , command : str , * , handled : bool , error : str | None ) -> None :
22032213 started = self ._active_slash_started_at
22042214 elapsed = None
22052215 if started is not None :
@@ -3390,7 +3400,9 @@ def _handle_rlm_abort_fast(self, args: list[str]) -> bool:
33903400 f"[yellow]Requested cancellation for run '{ run_id } '.[/yellow]"
33913401 )
33923402 else :
3393- self ._chat_log ().write ("[yellow]Requested cancellation for all active runs.[/yellow]" )
3403+ self ._chat_log ().write (
3404+ "[yellow]Requested cancellation for all active runs.[/yellow]"
3405+ )
33943406
33953407 if active_runs :
33963408 joined = ", " .join (str (item ) for item in active_runs )
@@ -3400,9 +3412,7 @@ def _handle_rlm_abort_fast(self, args: list[str]) -> bool:
34003412
34013413 if pending :
34023414 joined = ", " .join (str (item ) for item in pending )
3403- self ._chat_log ().write (
3404- f"[dim]Pending run-specific cancellations:[/dim] { joined } "
3405- )
3415+ self ._chat_log ().write (f"[dim]Pending run-specific cancellations:[/dim] { joined } " )
34063416
34073417 return True
34083418
0 commit comments