sipeed/picoclaw · error

channel type %q is singleton and does not support multiple i

Error message

channel type %q is singleton and does not support multiple instances, found %d enabled instances: %v

What it means

Error "channel type %q is singleton and does not support multiple instances, found %d enabled instances: %v" thrown in sipeed/picoclaw.

Source

Thrown at pkg/config/config_channel.go:529

func validateSingletonChannels(channels ChannelsConfig) error {
	typeCount := make(map[string]int)
	typeNames := make(map[string][]string)
	for name, bc := range channels {
		if !bc.Enabled {
			continue
		}
		t := bc.Type
		if t == "" {
			t = name
		}
		if IsSingletonChannel(t) {
			typeCount[t]++
			typeNames[t] = append(typeNames[t], name)
		}
	}
	for t, count := range typeCount {
		if count > 1 {
			return fmt.Errorf(
				"channel type %q is singleton and does not support multiple instances, found %d enabled instances: %v",
				t,
				count,
				typeNames[t],
			)
		}
	}
	return nil
}

// BaseFieldNames are JSON keys that belong to Channel, not to channel-specific settings.
var BaseFieldNames = map[string]struct{}{
	"enabled":              {},
	"type":                 {},
	"allow_from":           {},
	"reasoning_channel_id": {},
	"group_trigger":        {},
	"typing":               {},

View on GitHub (pinned to 49183d7e8d)

When it happens

Trigger: Thrown at pkg/config/config_channel.go:529 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of sipeed/picoclaw@49183d7e8d (2026-08-15). Data as JSON: /api/errors/2966251ffb88b1ff. Report an issue: GitHub.