multica-ai/multica · error

%s ID contains an unsafe path character

Error message

%s ID contains an unsafe path character

What it means

Error "%s ID contains an unsafe path character" thrown in multica-ai/multica.

Source

Thrown at server/internal/daemon/daemon.go:8461

	if err := os.MkdirAll(path, 0o700); err != nil {
		return "", err
	}
	if err := os.Chmod(path, 0o700); err != nil {
		return "", err
	}
	return path, nil
}

func validateReasonixStateSegment(name, value string) (string, error) {
	if value == "" {
		return "", fmt.Errorf("%s ID is required", name)
	}
	for _, r := range value {
		switch {
		case r >= 'a' && r <= 'z', r >= 'A' && r <= 'Z', r >= '0' && r <= '9', r == '-', r == '_':
			continue
		default:
			return "", fmt.Errorf("%s ID contains an unsafe path character", name)
		}
	}
	return value, nil
}

// codexShellAuthorizedCustomEnvNames returns names from the current agent's
// custom_env that pass the same daemon blocklist used when assembling the child
// environment. Returning names only keeps credential values out of the managed
// Codex config path.
func codexShellAuthorizedCustomEnvNames(customEnv map[string]string) []string {
	names := make([]string, 0, len(customEnv))
	for key := range customEnv {
		if key == "" || isBlockedEnvKey(key) {
			continue
		}
		names = append(names, key)
	}
	return names

View on GitHub (pinned to 2c0912b6ec)

Solutions

  1. Remove path separators and other unsafe characters from the ID.

When it happens

Trigger: Thrown at server/internal/daemon/daemon.go:8461 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/16e8dc5dd2b63e4b. Report an issue: GitHub.