Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/openrtc/cli_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,12 @@ def main(argv: list[str] | None = None) -> int:
previous_argv = sys.argv
try:
if argv is not None:
injected_args = inject_cli_positional_paths(list(argv))
# Mirror a real CLI invocation so LiveKit handoff logic that
# inspects sys.argv sees the injected arguments (e.g. --reload).
sys.argv = [previous_argv[0], *injected_args]
cli.main(
args=inject_cli_positional_paths(list(argv)),
args=injected_args,
prog_name="openrtc",
standalone_mode=True,
)
Expand Down
8 changes: 4 additions & 4 deletions src/openrtc/tui_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ def validate_metrics_watch_path(path: Path) -> None:
resolved = path.resolve()
if resolved.exists() and resolved.is_dir():
raise ValueError(
"'--watch' must be a JSONL file path (the same path you pass to "
"'--metrics-jsonl' on the OpenRTC worker). This value is a directory "
"— for example, use a file such as ./metrics.jsonl, not your agents "
f"folder. Got: {resolved}"
"The metrics watch path must be a JSONL file path (the same path you "
"pass to '--metrics-jsonl' on the OpenRTC worker). This value is a "
"directory — for example, use a file such as ./metrics.jsonl, not your "
f"agents folder. Got: {resolved}"
)


Expand Down
Loading