Skip to content

feat: add settings persistence#11

Open
Anmol1696 wants to merge 1 commit intomainfrom
feat/settings
Open

feat: add settings persistence#11
Anmol1696 wants to merge 1 commit intomainfrom
feat/settings

Conversation

@Anmol1696
Copy link
Copy Markdown
Collaborator

Summary

  • Add LauncherSettings struct that persists to ~/.openclaw-launcher/settings.json
  • Settings include: healthCheckInterval, openBrowserOnStart, dockerImage, memoryLimit, cpuLimit, port
  • Launcher loads settings on startup and uses them for Docker container configuration
  • Add updateSettings() method for future settings UI

Test plan

  • Launch app, verify it creates settings.json
  • Modify settings.json manually, restart app, verify values are loaded
  • Run swift test - 3 new settings tests added

Add LauncherSettings struct that persists to ~/.openclaw-launcher/settings.json.
Settings include: healthCheckInterval, openBrowserOnStart, dockerImage,
memoryLimit, cpuLimit, and port.

The launcher now loads settings on startup and uses them for Docker
container configuration. Settings can be updated via updateSettings().
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