sipeed/picoclaw · error
channel type is singleton and does not support multiple…
Error message
channel type %q is singleton and does not support multiple instances, found %d enabled instances: %v
What it means
Validation guard in validateSingletonChannels, invoked by InitChannelList: more than one enabled channel entry has the same singleton channel type (e.g. two enabled Telegram instances). Singleton types allow only one enabled instance, so startup/reload is rejected and the error lists the offending instance names.
Solutions
- Disable all but one enabled instance of the singleton channel type (set enabled: false)
- Merge the duplicate instances' settings into a single entry
- Move the extra instance to a channel type that supports multiple instances
Defensive patterns
Strategy: validation
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.
Appendix: 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)