{"record":{"id":"8cdcabfe160b6f97","repo":"sipeed/picoclaw","slug":"steering-queue-is-full","errorCode":null,"errorMessage":"steering queue is full","messagePattern":"steering queue is full","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/agent/steering.go","lineNumber":79,"sourceCode":"\t\treturn manualSteeringScope\n\t}\n\treturn scope\n}\n\n// push enqueues a steering message in the legacy fallback scope.\nfunc (sq *steeringQueue) push(msg providers.Message) error {\n\treturn sq.pushScope(manualSteeringScope, msg)\n}\n\n// pushScope enqueues a steering message for the provided scope.\nfunc (sq *steeringQueue) pushScope(scope string, msg providers.Message) error {\n\tsq.mu.Lock()\n\tdefer sq.mu.Unlock()\n\n\tscope = normalizeSteeringScope(scope)\n\tqueue := sq.queues[scope]\n\tif len(queue) >= MaxQueueSize {\n\t\treturn fmt.Errorf(\"steering queue is full\")\n\t}\n\tsq.queues[scope] = append(queue, msg)\n\treturn nil\n}\n\n// dequeue removes and returns pending steering messages from the legacy\n// fallback scope according to the configured mode.\nfunc (sq *steeringQueue) dequeue() []providers.Message {\n\treturn sq.dequeueScope(manualSteeringScope)\n}\n\n// dequeueScope removes and returns pending steering messages for the provided\n// scope according to the configured mode.\nfunc (sq *steeringQueue) dequeueScope(scope string) []providers.Message {\n\tsq.mu.Lock()\n\tdefer sq.mu.Unlock()\n\n\treturn sq.dequeueLocked(normalizeSteeringScope(scope))","sourceCodeStart":61,"sourceCodeEnd":97,"githubUrl":"https://github.com/sipeed/picoclaw/blob/49183d7e8daed0dba89ddbb6fcb60089401d9680/pkg/agent/steering.go#L61-L97","documentation":"Capacity guard in steeringQueue.pushScope: the per-scope steering queue (manual or otherwise) already holds MaxQueueSize messages, so enqueueing another would grow without bound and is refused. No message state changes — the rejected message is dropped by the caller unless it retries. The input at fault is the new steering msg for the normalized scope.","triggerScenarios":"Thrown at pkg/agent/steering.go:79 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Drain the queue: let the agent Continue/finish so pending steering messages are consumed before enqueuing more","Raise MaxQueueSize if legitimate workloads exceed it","Coalesce rapid user steering bursts into one message before pushing","At the call site (enqueueSteeringMessage), surface the error to the user instead of silently dropping"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"49183d7e8daed0dba89ddbb6fcb60089401d9680","analyzedAt":"2026-08-15T21:55:41.315Z","contentChangedAt":"2026-08-15T21:55:41.315Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}