Show license plan in header for self-validating emulators#283
Draft
gtsiolis wants to merge 1 commit into
Draft
Conversation
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>
Member
Author
|
Possibly related to #265. @anisaoshafi what do you think, is this useful? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Starting the Azure (or Snowflake) emulator showed no license plan in the header — the label line rendered empty:
lstk deliberately skips the license API for self-validating emulators (no platform catalog entry for their products, see #262), and
ui.Runconflated "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 toLocalStack(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