INNER CODE UNIT · Go
newHome
smtg-ai/claude-squad · app/app.go:106
func newHome(ctx context.Context, program string, autoYes bool) *home {
// Load application config
appConfig := config.LoadConfig()
// Load application state
appState := config.LoadState()
// Initialize storage
storage, err := session.NewStorage(appState)
if err != nil {
fmt.Printf("Failed to initialize storage: %v\n", err)
os.Exit(1)
}
h := &home{
ctx: ctx,
spinner: spinner.New(spinner.WithSpinner(spinner.MiniDot)),
menu: ui.NewMenu(),