Since #742, lk agent deploy automatically starts tailing logs after deployment completes. This causes CI pipelines to hang indefinitely since the log tail never exits.
Reproduction
lk agent deploy \
--url "${LIVEKIT_URL}" \
--api-key "${LIVEKIT_API_KEY}" \
--api-secret "${LIVEKIT_API_SECRET}" \
--secrets-file .env.production \
--config deploy/livekit.toml
CircleCI output:
Deployed agent
Build completed - You can view build logs later with `lk agent logs --log-type=build`
Agent deploying. Would you like to view logs? [Y/n]
Tailing runtime logs...safe to exit at any time
Waiting for deployment to start...
Waiting for deployment to start...
The prompt defaults to "Y" in non-interactive environments and starts tailing logs indefinitely, blocking CI.
Expected Behavior
lk agent deploy should exit after deployment completes, or provide a --no-tail flag to disable automatic log tailing.
Related