test(tui): add headless Box TUI render test suite and support box tui work shorthand

This commit is contained in:
operator
2026-10-10 11:45:05 -04:00
parent cc6a33cbca
commit 0668d257ca
3 changed files with 142 additions and 1 deletions
+1 -1
View File
@@ -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:
+2
View File
@@ -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)