From 2f8194c82955ab317b2cd58f4fdfcaa2ef9f8845 Mon Sep 17 00:00:00 2001 From: Alex Schapiro Date: Tue, 1 Sep 2026 19:27:51 +0000 Subject: [PATCH] Open the Link approval URL in the browser for interactive runs --- strix/interface/cloud/billing.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/strix/interface/cloud/billing.py b/strix/interface/cloud/billing.py index 705e5504..f471ee2b 100644 --- a/strix/interface/cloud/billing.py +++ b/strix/interface/cloud/billing.py @@ -9,6 +9,8 @@ import shutil import subprocess import sys import tempfile +import webbrowser +from contextlib import suppress from dataclasses import dataclass from pathlib import Path from typing import TYPE_CHECKING, Any, cast @@ -391,6 +393,9 @@ def _run_link_wallet_flow( if not quiet: console.print(f"[yellow]Approve the payment in the Link app:[/] {approval_url}") + if sys.stdin.isatty() and sys.stdout.isatty() and approval_url.startswith("https://"): + with suppress(Exception): + webbrowser.open(approval_url) polled = run_step( [ "spend-request",