fix(cli): preflight PTY check in --headless before resource allocation
test / integration-docker (push) Successful in 19s
lint / lint (push) Successful in 52s
Update Quality Badges / update-badges (push) Successful in 48s
test / unit (push) Failing after 1m45s
test / integration-firecracker (push) Successful in 4m55s
test / coverage (push) Has been skipped
test / publish-infra (push) Has been skipped
test / integration-docker (push) Successful in 19s
lint / lint (push) Successful in 52s
Update Quality Badges / update-badges (push) Successful in 48s
test / unit (push) Failing after 1m45s
test / integration-firecracker (push) Successful in 4m55s
test / coverage (push) Has been skipped
test / publish-infra (push) Has been skipped
Fails fast with a clear message and workaround hint instead of the opaque ENODEV deep in the container exec layer after images are built, the gateway is started, and deploy keys are provisioned. Closes #460 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -195,6 +195,12 @@ def _start_headless(
|
|||||||
path, so the agent still execs on the inherited stdio/PTY — an
|
path, so the agent still execs on the inherited stdio/PTY — an
|
||||||
orchestrator allocates that PTY and relays it to its
|
orchestrator allocates that PTY and relays it to its
|
||||||
desktop/mobile clients."""
|
desktop/mobile clients."""
|
||||||
|
if not os.isatty(sys.stdin.fileno()):
|
||||||
|
die(
|
||||||
|
"--headless requires a PTY on stdin; run via:\n"
|
||||||
|
" script -q /dev/null ./cli.py start ..."
|
||||||
|
)
|
||||||
|
|
||||||
agent_name = args.name
|
agent_name = args.name
|
||||||
if not agent_name:
|
if not agent_name:
|
||||||
die("--headless requires an agent name: ./cli.py start <agent> --headless")
|
die("--headless requires an agent name: ./cli.py start <agent> --headless")
|
||||||
|
|||||||
Reference in New Issue
Block a user