Skip to content

Show license plan in header for self-validating emulators#283

Draft
gtsiolis wants to merge 1 commit into
mainfrom
show-plan-label-self-validating-emulators
Draft

Show license plan in header for self-validating emulators#283
gtsiolis wants to merge 1 commit into
mainfrom
show-plan-label-self-validating-emulators

Conversation

@gtsiolis

@gtsiolis gtsiolis commented Jun 4, 2026

Copy link
Copy Markdown
Member

Starting the Azure (or Snowflake) emulator showed no license plan in the header — the label line rendered empty:

   ▟████▖   lstk (0.11.0)
  ▟██▙█▙█▟
    ▀▛▀▛▀   ~/.config/lstk/config.toml

lstk deliberately skips the license API for self-validating emulators (no platform catalog entry for their products, see #262), and ui.Run conflated "no resolved version" with "already running", so a fresh start rendered the empty cached label.

Instead, resolve the label from the license the container activates into its volume (<volume>/cache/license.json) — the plan is a property of the subscription, not the emulator — and re-resolve it on every start. Falls back to LocalStack (never blank) when the file is unavailable. No license API call, no double activation. The header now shows e.g. LocalStack Enterprise.

🤖 Generated with Claude Code

@gtsiolis

gtsiolis commented Jun 4, 2026

Copy link
Copy Markdown
Member Author

Possibly related to #265. @anisaoshafi what do you think, is this useful?

@gtsiolis gtsiolis self-assigned this Jun 18, 2026
@gtsiolis gtsiolis force-pushed the show-plan-label-self-validating-emulators branch from f01a30d to 2b73b6f Compare June 30, 2026 11:13
Azure and Snowflake starts left the header plan label blank: lstk
deliberately skips the license API for self-validating emulators (no
catalog entry for their products), and run.go conflated "no resolved
version" with "already running", sending the (empty) cached label.

Resolve the label from the license the container activates into its
volume (cache/license.json) instead — no extra license API activation —
falling back to "LocalStack" when the file is unavailable.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@gtsiolis gtsiolis force-pushed the show-plan-label-self-validating-emulators branch from 2b73b6f to d66fe9c Compare July 1, 2026 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant