fix(cli): resolve symlink path before looking up swarms.json in 'box swarm status'

This commit is contained in:
operator
2026-10-05 16:24:21 +00:00
parent 945e6bb481
commit b828ce1985
+1 -1
View File
@@ -3149,7 +3149,7 @@ def cmd_swarm_status(args):
if not sid.startswith("sw-"): if not sid.startswith("sw-"):
sid = "sw-" + sid sid = "sw-" + sid
# Support prefix matching if exact ID is truncated (e.g. 18 chars) # Support prefix matching if exact ID is truncated (e.g. 18 chars)
sw_file = Path(__file__).parent.parent / "swarms.json" sw_file = Path(__file__).resolve().parent.parent / "swarms.json"
if sw_file.exists(): if sw_file.exists():
try: try:
import json import json