Skip to content

feat(lk): support non-interactive terminals and default accept flag#776

Merged
rektdeckard merged 2 commits intomainfrom
tobiasfried/grw-129-improve-accessibility-of-interactive-cli-commands-for-coding
Mar 4, 2026
Merged

feat(lk): support non-interactive terminals and default accept flag#776
rektdeckard merged 2 commits intomainfrom
tobiasfried/grw-129-improve-accessibility-of-interactive-cli-commands-for-coding

Conversation

@rektdeckard
Copy link
Member

https://linear.app/livekit/issue/GRW-129/improve-accessibility-of-interactive-cli-commands-for-coding-agents-by

Adds a default command execution mode when the not running in an interactive terminal or when the --yes flag is explicitly passed that:

  • Skips rendering any interactive prompts
  • Accepts boolean choices by default
  • Uses implied default values when relevant
  • Fails otherwise

This makes some actions possible in CI and other non-interactive sessions that were not previously possible, and should make it easier for coding agents to make use of the CLI.

For example:

lk agent init --yes

Will get you a python agent initialized, with a sandbox, with no interactive prompting, provided you have a default project set, or only one project credential registered.

@rektdeckard rektdeckard requested review from bcherry and real-danm March 4, 2026 00:57
Copy link
Contributor

@real-danm real-danm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like this is just a new flag, so lgtm.
if there are breaking functional changes i'm missing we'd need to make a minor version bump.

@rektdeckard
Copy link
Member Author

There is some new functionality I didn't mention, which is that lk a deploy now behaves like lk a create if this is the first deployment (we're in an agent project but no livekit.toml or other specified config file exists. I'll bump and deploy.

@rektdeckard rektdeckard merged commit 75fcdfc into main Mar 4, 2026
9 checks passed
@rektdeckard rektdeckard deleted the tobiasfried/grw-129-improve-accessibility-of-interactive-cli-commands-for-coding branch March 4, 2026 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants