test(tui): add headless Box TUI render test suite and support box tui work shorthand
This commit is contained in:
+1
-1
@@ -8029,7 +8029,7 @@ def main():
|
||||
parser.add_argument("--account", "-a", choices=VALID_NODES, default=None, help="Initial agent account (default: top of list)")
|
||||
parser.add_argument("--thread", "-t", help="Initial thread UUID to open")
|
||||
parser.add_argument("--mode", "-m", choices=["muse", "box"], default="muse", help="TUI mode (default: muse)")
|
||||
parser.add_argument("--tab", choices=["chat", "fleet", "approvals", "jobs", "tmux", "logs", "ssh"], default=None, help="Initial Box tab (box mode only)")
|
||||
parser.add_argument("--tab", choices=["chat", "fleet", "approvals", "jobs", "tmux", "logs", "ssh", "work"], default=None, help="Initial Box tab (box mode only)")
|
||||
args = parser.parse_args()
|
||||
|
||||
try:
|
||||
|
||||
@@ -7685,6 +7685,8 @@ def main():
|
||||
cmd = [sys.executable, str(BIN_DIR / "box-onboard-tui.py")] + tui_args[1:]
|
||||
elif tui_args and tui_args[0] in ("fleet", "oversight"):
|
||||
cmd = [sys.executable, str(BIN_DIR / "box-fleet-tui.py")] + tui_args[1:]
|
||||
elif tui_args and tui_args[0] in ("chat", "fleet-status", "jobs", "logs", "ssh", "work"):
|
||||
cmd = [sys.executable, str(BIN_DIR / "muse-tui.py"), "--mode", "box", "--tab", tui_args[0]] + tui_args[1:]
|
||||
else:
|
||||
cmd = [sys.executable, str(BIN_DIR / "muse-tui.py"), "--mode", "box"] + tui_args
|
||||
res = subprocess.run(cmd)
|
||||
|
||||
Reference in New Issue
Block a user