Skip to content

Carry --server-url over to the printed --view command on simulate exit#909

Merged
u9g merged 1 commit into
mainfrom
jl/simulate-view-server-url
Jul 14, 2026
Merged

Carry --server-url over to the printed --view command on simulate exit#909
u9g merged 1 commit into
mainfrom
jl/simulate-view-server-url

Conversation

@u9g

@u9g u9g commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

When a simulation run exits, the CLI prints a hint like To re-open this simulation, run: lk agent simulate --view SR_.... If the original command targeted a non-default API server via --server-url (e.g. staging), the printed command previously dropped that flag, so copy-pasting it would look up the run in the wrong environment.

This adds a viewCommandHint helper that appends --server-url whenever the active server differs from the default cloud API, and uses it for both exit paths in the TUI.

@u9g u9g force-pushed the jl/simulate-view-server-url branch from 17115e5 to 3cdeb28 Compare July 13, 2026 22:54
@u9g u9g merged commit 4922f4b into main Jul 14, 2026
22 checks passed
@u9g u9g deleted the jl/simulate-view-server-url branch July 14, 2026 15:43
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