Skip to content

simulate: run text mode when no subcommand is given - #1044

Closed
u9g wants to merge 1 commit into
mainfrom
jason/simulate-bare-runs-text
Closed

u9g wants to merge 1 commit into
mainfrom
jason/simulate-bare-runs-text

Conversation

@u9g

@u9g u9g commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Since #968 (v2.18.7), a bare lk agent simulate prints help and exits 0. That is the exact command the LiveKit Cloud dashboard tells new users to run on the empty Simulations page (lk agent simulate -n 5). It is also what the dashboard's "Add to CI" workflow runs, and what scripts written before the text subcommand existed run. On v2.18.7+ all of them silently do nothing, and in CI the step passes without running a single simulation.

This restores the pre-#968 behavior: with no subcommand, simulate runs text mode. text, audio, list, view, export, get and cancel are unchanged. The project still loads per subcommand, so get/list/cancel keep skipping the API-key project gate.

Impact: of projects that copied the empty-state command, the share that opened a simulation run within 7 days fell from 12.8% (Aug 15 – Sep 15, 33/258) to 4.5% (Sep 16 – Oct 15, 7/154). Part of that drop predates the release (web#5932 changed who sees the command), but every copy since v2.18.7 has been a no-op.

Tested: go test ./cmd/lk/ passes. Running lk agent simulate -n 2 --yes from agent-starter-python on this branch generated scenarios and completed a run; on v2.19.0 it prints help.

#968 made a bare `lk agent simulate` print help and exit 0. The dashboard's
empty state, its Add to CI workflow, and scripts written before the text
subcommand existed all run the bare form, so they silently did nothing (and
passed in CI). A bare simulate runs text mode again; text and audio stay as
explicit subcommands.
@u9g

u9g commented Oct 15, 2026

Copy link
Copy Markdown
Contributor Author

Before (v2.19.0): the dashboard's lk agent simulate -n 2 prints help and exits 0. After (this PR): the same bare command generates scenarios and runs a text simulation to completion.

bare-simulate.mp4

@u9g

u9g commented Oct 15, 2026

Copy link
Copy Markdown
Contributor Author

Closing in favor of the decision on #1043: keep the explicit text/audio entry point and point every surface at lk agent simulate text.

@u9g u9g closed this Oct 15, 2026
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.

1 participant