sipeed/picoclaw · error

channel streaming.min_growth_chars must be >= 0

Error message

channel %q streaming.min_growth_chars must be >= 0

What it means

Sibling guard in validateChannelStreamingConfig: the channel's streaming.min_growth_chars is negative, which is invalid for the minimum character-growth threshold used during streaming output. InitChannelList rejects the config so streaming behavior stays well-defined.

Solutions

  1. Set streaming.min_growth_chars to 0 or a positive integer
  2. Remove the field to use the default value
  3. Re-check the channel's streaming block after editing config.json
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at pkg/config/config_channel.go:808 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/58ea1a3c9ab9c201. Report an issue: GitHub.

Appendix: source

Thrown at pkg/config/config_channel.go:808

func validateChannelStreamingConfig(channelName string, target any) error {
	var streaming StreamingConfig
	switch settings := target.(type) {
	case *PicoSettings:
		streaming = settings.Streaming
	case *TelegramSettings:
		streaming = settings.Streaming
	case *WeComSettings:
		streaming = settings.Streaming
	default:
		return nil
	}

	if streaming.ThrottleSeconds < 0 {
		return fmt.Errorf("channel %q streaming.throttle_seconds must be >= 0", channelName)
	}
	if streaming.MinGrowthChars < 0 {
		return fmt.Errorf("channel %q streaming.min_growth_chars must be >= 0", channelName)
	}
	return nil
}

View on GitHub (pinned to 49183d7e8d)