Skip to content

fix: emulator selection reappears after config directory deleted (PRO-349)#345

Draft
gtsiolis wants to merge 1 commit into
mainfrom
pro-349-emulator-selection-prompt-does-not-reappear-after-configlstk
Draft

fix: emulator selection reappears after config directory deleted (PRO-349)#345
gtsiolis wants to merge 1 commit into
mainfrom
pro-349-emulator-selection-prompt-does-not-reappear-after-configlstk

Conversation

@gtsiolis

@gtsiolis gtsiolis commented Jun 26, 2026

Copy link
Copy Markdown
Member

Summary

Fixes PRO-349

  • Confirmed config.Load() correctly returns firstRun=true when ~/.config/lstk/ exists but config.toml is absent (the directory-recreated-by-logger scenario does not break first-run detection)
  • Added unit test proving Load() returns firstRun=true when the config directory exists but config.toml is missing
  • Added integration test covering the full deletion scenario: config directory deleted after a successful run → emulator selector reappears on next lstk start

Test plan

  • make test — unit test TestLoadFirstRunAfterConfigDirRecreated passes
  • make test-integration RUN=TestEmulatorSelectionReappearsAfterConfigDirDeleted — integration test passes (requires Docker)
  • make test-integration RUN=TestEmulatorSelectionReappearsAfterFailedFirstRun — integration test passes (requires Docker)
  • Manual: rm -rf ~/.config/lstk/ && lstk start → emulator selection prompt appears

🤖 Generated with Claude Code

@gtsiolis gtsiolis requested a review from a team as a code owner June 26, 2026 22:17
Add unit test proving config.Load() returns firstRun=true when the
config directory exists but config.toml is absent (e.g. after newLogger
recreates the directory). Add integration test covering the full
scenario: config directory deleted after successful run triggers the
emulator selector on the next run.

Co-authored-by: Claude <noreply@anthropic.com>
@gtsiolis gtsiolis force-pushed the pro-349-emulator-selection-prompt-does-not-reappear-after-configlstk branch from 69c6fff to 8c9103e Compare June 26, 2026 22:18
@gtsiolis gtsiolis added semver patch skip docs semver: patch docs: skip Pull request does not require documentation changes and removed semver patch skip docs labels Jun 26, 2026 — with Claude
@gtsiolis gtsiolis marked this pull request as draft June 28, 2026 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs: skip Pull request does not require documentation changes semver: patch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant