multica-ai/multica · error
load CLI config: %w
Error message
load CLI config: %w
What it means
Error "load CLI config: %w" thrown in multica-ai/multica.
Source
Thrown at server/cmd/multica/cmd_daemon.go:530
// --- daemon start ---
// daemonExecutable resolves the binary to spawn as the background daemon
// child. Tests override it: spawning the resolved executable there would fork
// the test binary itself, which ignores the daemon args and re-runs the suite.
var daemonExecutable = selfexec.Resolve
// requireDaemonAuth fails fast when the user never ran `multica login`. The
// daemon child performs the same check (resolveAuth) and dies immediately,
// but the background parent can't see that exit — it would poll the health
// port for the full 45s readiness window and then print a vague "check logs"
// warning. Checking before spawning turns that silent stall into an
// immediate, actionable error. Mirrors daemon.resolveAuth: the daemon only
// authenticates via the stored config token, never MULTICA_TOKEN.
func requireDaemonAuth(profile string) error {
cfg, err := cli.LoadCLIConfigForProfile(profile)
if err != nil {
return fmt.Errorf("load CLI config: %w", err)
}
if cfg.Token == "" {
loginHint := "multica login"
if profile != "" {
loginHint = fmt.Sprintf("multica login --profile %s", profile)
}
return fmt.Errorf("you are not logged in. Run '%s' first, then start the daemon", loginHint)
}
return nil
}
func runDaemonStart(cmd *cobra.Command, _ []string) error {
if err := requireHumanLocalCommand("daemon start"); err != nil {
return err
}
foreground, _ := cmd.Flags().GetBool("foreground")
if foreground {
return runDaemonForeground(cmd)View on GitHub (pinned to 2c0912b6ec)
Solutions
- Fix or delete the corrupted CLI config file and retry.
When it happens
Trigger: Thrown at server/cmd/multica/cmd_daemon.go:530 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of multica-ai/multica@2c0912b6ec (2026-08-15).
Data as JSON: /api/errors/8bcf662c8b805805.
Report an issue: GitHub.