Skip to content

Feature: Persist Region/Profile Selection to Config #50

@yimsk

Description

@yimsk

Persist Selection to Config 💾

Save user's region and profile selection to config file for restoration on next startup.

Current Behavior

  • Region: detected from profile's default region or environment
  • Profile: SDK default on startup
  • No persistence between sessions

Proposed Behavior

# ~/.config/claws/config.yaml
regions:
  - us-east-1
  - ap-northeast-1
profile: production  # or profiles: [...] after #49

Features

  1. Auto-save: Save selection when changed via R/P keys
  2. Restore on startup: Load saved selection if config exists
  3. CLI override: claws -r us-west-2 overrides saved config
  4. Clear config: Command to reset to defaults

Implementation Tasks

  • Define config file schema (YAML)
  • Config read/write functions
  • Save on RegionChangedMsg / ProfileChangedMsg
  • Load on app startup (respect CLI flags priority)
  • Handle migration if schema changes

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions