sipeed/picoclaw · error
channel has no active worker
Error message
channel %s has no active worker
What it means
Validation guard in Manager.SendMessage: fires when the channel exists in m.channels but has no entry in m.workers, i.e. the channel is registered but not running (it failed to start or was stopped). The message cannot be delivered until the channel is started.
Solutions
- Ensure the channel started successfully before sending through it
- Check startup logs for this channel's Start failure
- Restart the channel/manager and retry once the worker exists
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at pkg/channels/manager.go:2054 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/bd16c061ee760a5e.
Report an issue: GitHub.
Appendix: source
Thrown at pkg/channels/manager.go:2054
// SendMessage sends an outbound message synchronously through the channel
// worker's rate limiter and retry logic. It blocks until the message is
// delivered (or all retries are exhausted), which preserves ordering when
// a subsequent operation depends on the message having been sent.
func (m *Manager) SendMessage(ctx context.Context, msg bus.OutboundMessage) error {
msg = bus.NormalizeOutboundMessage(msg)
channelName := outboundMessageChannel(msg)
m.mu.RLock()
_, exists := m.channels[channelName]
w, wExists := m.workers[channelName]
m.mu.RUnlock()
if !exists {
return fmt.Errorf("channel %s not found", channelName)
}
if !wExists || w == nil {
return fmt.Errorf("channel %s has no active worker", channelName)
}
maxLen := 0
if mlp, ok := w.ch.(MessageLengthProvider); ok {
maxLen = mlp.MaxMessageLength()
}
if chunks := splitOutboundMessageContent(msg, maxLen); len(chunks) > 1 {
for _, chunk := range chunks {
chunkMsg := msg
chunkMsg.Content = chunk
m.sendWithRetry(ctx, channelName, w, chunkMsg)
}
} else {
if len(chunks) == 1 {
msg.Content = chunks[0]
}
m.sendWithRetry(ctx, channelName, w, msg)
}View on GitHub (pinned to 49183d7e8d)