TaskFlow
DashboardFreewriteWhiteboardsProjectsCRMTasksNotificationsSettingsAgent TowerAPI Docs
OpenClaw Docs
?

User

Member

Caricamento in corso...

Home
Progetti
Task
Notifiche
CRM

    OpenClaw

    Documentation Mirror

    Documentation Overview

    Docs

    Auth credential semantics
    Scheduled tasks
    Hooks
    Automation & tasks
    Standing orders
    Task flow
    Background tasks
    BlueBubbles
    Broadcast groups
    Channel routing
    Discord
    Feishu
    Google Chat
    Group messages
    Groups
    iMessage
    Chat channels
    IRC
    LINE
    Channel location parsing
    Matrix
    Matrix migration
    Matrix push rules for quiet previews
    Mattermost
    Microsoft Teams
    Nextcloud Talk
    Nostr
    Pairing
    QA channel
    QQ bot
    Signal
    Slack
    Synology Chat
    Telegram
    Tlon
    Channel troubleshooting
    Twitch
    WeChat
    WhatsApp
    Yuanbao
    Zalo
    Zalo personal
    CI pipeline
    ACP
    Agent
    Agents
    Approvals
    Backup
    Browser
    Channels
    Clawbot
    `openclaw commitments`
    Completion
    Config
    Configure
    Cron
    Daemon
    Dashboard
    Devices
    Directory
    DNS
    Docs
    Doctor
    Flows (redirect)
    Gateway
    Health
    Hooks
    CLI reference
    Inference CLI
    Logs
    MCP
    Memory
    Message
    Migrate
    Models
    Node
    Nodes
    Onboard
    Pairing
    Plugins
    Proxy
    QR
    Reset
    Sandbox CLI
    Secrets
    Security
    Sessions
    Setup
    Skills
    Status
    System
    `openclaw tasks`
    TUI
    Uninstall
    Update
    Voicecall
    Webhooks
    Wiki
    Active memory
    Agent runtime
    Agent loop
    Agent runtimes
    Agent workspace
    Gateway architecture
    Channel docking
    Inferred commitments
    Compaction
    Context
    Context engine
    Delegate architecture
    Dreaming
    Experimental features
    Features
    Markdown formatting
    Memory overview
    Builtin memory engine
    Honcho memory
    QMD memory engine
    Memory search
    Messages
    Model failover
    Model providers
    Models CLI
    Multi-agent routing
    OAuth
    OpenClaw App SDK
    Presence
    QA overview
    Matrix QA
    Command queue
    Steering queue
    Retry policy
    Session management
    Session pruning
    Session tools
    SOUL.md personality guide
    Streaming and chunking
    System prompt
    Timezones
    TypeBox
    Typing indicators
    Usage tracking
    Date and time
    Node + tsx crash
    Diagnostics flags
    Authentication
    Background exec and process tool
    Bonjour discovery
    Bridge protocol
    CLI backends
    Configuration — agents
    Configuration — channels
    Configuration — tools and custom providers
    Configuration
    Configuration examples
    Configuration reference
    Diagnostics export
    Discovery and transports
    Doctor
    Gateway lock
    Health checks
    Heartbeat
    Gateway runbook
    Local models
    Gateway logging
    Multiple gateways
    Network model
    OpenAI chat completions
    OpenResponses API
    OpenShell
    OpenTelemetry export
    Gateway-owned pairing
    Prometheus metrics
    Gateway protocol
    Remote access
    Remote gateway setup
    Sandbox vs tool policy vs elevated
    Sandboxing
    Secrets management
    Secrets apply plan contract
    Security audit checks
    Security
    Tailscale
    Tools invoke API
    Troubleshooting
    Trusted proxy auth
    Debugging
    Environment variables
    FAQ
    FAQ: first-run setup
    FAQ: models and auth
    GPT-5.5 / Codex agentic parity
    GPT-5.5 / Codex parity maintainer notes
    Help
    Scripts
    Testing
    Testing: live suites
    General troubleshooting
    OpenClaw
    Ansible
    Azure
    Bun (experimental)
    ClawDock
    Release channels
    DigitalOcean
    Docker
    Docker VM runtime
    exe.dev
    Fly.io
    GCP
    Hetzner
    Hostinger
    Install
    Installer internals
    Kubernetes
    macOS VMs
    Migration guide
    Migrating from Claude
    Migrating from Hermes
    Nix
    Node.js
    Northflank
    Oracle Cloud
    Podman
    Railway
    Raspberry Pi
    Render
    Uninstall
    Updating
    Logging
    Network
    Audio and voice notes
    Camera capture
    Image and media support
    Nodes
    Location command
    Media understanding
    Talk mode
    Node troubleshooting
    Voice wake
    Pi integration architecture
    Pi development workflow
    Android app
    Platforms
    iOS app
    Linux app
    Gateway on macOS
    Canvas
    Gateway lifecycle
    macOS dev setup
    Health checks (macOS)
    Menu bar icon
    macOS logging
    Menu bar
    Peekaboo bridge
    macOS permissions
    Remote control
    macOS signing
    Skills (macOS)
    Voice overlay
    Voice wake (macOS)
    WebChat (macOS)
    macOS IPC
    macOS app
    Windows
    Plugin internals
    Plugin architecture internals
    Building plugins
    Plugin bundles
    Codex Computer Use
    Codex harness
    Community plugins
    Plugin compatibility
    Google Meet plugin
    Plugin hooks
    Plugin manifest
    Memory LanceDB
    Memory wiki
    Message presentation
    Agent harness plugins
    Building channel plugins
    Channel turn kernel
    Plugin entry points
    Plugin SDK migration
    Plugin SDK overview
    Building provider plugins
    Plugin runtime helpers
    Plugin setup and config
    Plugin SDK subpaths
    Plugin testing
    Skill workshop plugin
    Voice call plugin
    Webhooks plugin
    Zalo personal plugin
    OpenProse
    Alibaba Model Studio
    Anthropic
    Arcee AI
    Azure Speech
    Amazon Bedrock
    Amazon Bedrock Mantle
    Chutes
    Claude Max API proxy
    Cloudflare AI gateway
    ComfyUI
    Deepgram
    Deepinfra
    DeepSeek
    ElevenLabs
    Fal
    Fireworks
    GitHub Copilot
    GLM (Zhipu)
    Google (Gemini)
    Gradium
    Groq
    Hugging Face (inference)
    Provider directory
    Inferrs
    Inworld
    Kilocode
    LiteLLM
    LM Studio
    MiniMax
    Mistral
    Model provider quickstart
    Moonshot AI
    NVIDIA
    Ollama
    OpenAI
    OpenCode
    OpenCode Go
    OpenRouter
    Perplexity
    Qianfan
    Qwen
    Runway
    SGLang
    StepFun
    Synthetic
    Tencent Cloud (TokenHub)
    Together AI
    Venice AI
    Vercel AI gateway
    vLLM
    Volcengine (Doubao)
    Vydra
    xAI
    Xiaomi MiMo
    Z.AI
    Default AGENTS.md
    Release policy
    API usage and costs
    Credits
    Device model database
    Full release validation
    Memory configuration reference
    OpenClaw App SDK API design
    Prompt caching
    Rich output protocol
    RPC adapters
    SecretRef credential surface
    Session management deep dive
    AGENTS.md template
    BOOT.md template
    BOOTSTRAP.md template
    HEARTBEAT.md template
    IDENTITY template
    SOUL.md template
    TOOLS.md template
    USER template
    Tests
    Token use and costs
    Transcript hygiene
    Onboarding reference
    Contributing to the threat model
    Threat model (MITRE ATLAS)
    Formal verification (security models)
    Network proxy
    Agent bootstrapping
    Docs directory
    Getting started
    Docs hubs
    OpenClaw lore
    Onboarding (macOS app)
    Onboarding overview
    Personal assistant setup
    Setup
    Showcase
    Onboarding (CLI)
    CLI automation
    CLI setup reference
    ACP agents
    ACP agents — setup
    Agent send
    apply_patch tool
    Brave search
    Browser (OpenClaw-managed)
    Browser control API
    Browser troubleshooting
    Browser login
    WSL2 + Windows + remote Chrome CDP troubleshooting
    BTW side questions
    ClawHub
    Code execution
    Creating skills
    Diffs
    DuckDuckGo search
    Elevated mode
    Exa search
    Exec tool
    Exec approvals
    Exec approvals — advanced
    Firecrawl
    Gemini search
    Grok search
    Image generation
    Tools and plugins
    Kimi search
    LLM task
    Lobster
    Tool-loop detection
    Media overview
    MiniMax search
    Multi-agent sandbox and tools
    Music generation
    Ollama web search
    PDF tool
    Perplexity search
    Plugins
    Reactions
    SearXNG search
    Skills
    Skills config
    Slash commands
    Sub-agents
    Tavily
    Thinking levels
    Tokenjuice
    Trajectory bundles
    Text-to-speech
    Video generation
    Web search
    Web fetch
    Linux server
    Control UI
    Dashboard
    Web
    TUI
    WebChat

    OpenAPI Specs

    openapi
    TaskFlow
    docs/openclaw
    Original Docs

    Real-time Synchronized Documentation

    Last sync: 01/05/2026 07:01:45

    Note: This content is mirrored from docs.openclaw.ai and is subject to their terms and conditions.

    OpenClaw Docs

    v2.4.0 Production

    Last synced: Today, 22:00

    Technical reference for the OpenClaw framework. Real-time synchronization with the official documentation engine.

    Use this file to discover all available pages before exploring further.

    Command queue

    We serialize inbound auto-reply runs (all channels) through a tiny in-process queue to prevent multiple agent runs from colliding, while still allowing safe parallelism across sessions.

    Why

    • Auto-reply runs can be expensive (LLM calls) and can collide when multiple inbound messages arrive close together.
    • Serializing avoids competing for shared resources (session files, logs, CLI stdin) and reduces the chance of upstream rate limits.

    How it works

    • A lane-aware FIFO queue drains each lane with a configurable concurrency cap (default 1 for unconfigured lanes; main defaults to 4, subagent to 8).
    • text
      runEmbeddedPiAgent
      enqueues by session key (lane
      text
      session:<key>
      ) to guarantee only one active run per session.
    • Each session run is then queued into a global lane (
      text
      main
      by default) so overall parallelism is capped by
      text
      agents.defaults.maxConcurrent
      .
    • When verbose logging is enabled, queued runs emit a short notice if they waited more than ~2s before starting.
    • Typing indicators still fire immediately on enqueue (when supported by the channel) so user experience is unchanged while we wait our turn.

    Defaults

    When unset, all inbound channel surfaces use:

    • text
      mode: "steer"
    • text
      debounceMs: 500
    • text
      cap: 20
    • text
      drop: "summarize"

    text
    steer
    is the default because it keeps the active model turn responsive without starting a second session run. It drains all steering messages that arrived before the next model boundary. If the current run cannot accept steering, OpenClaw falls back to a followup queue entry.

    Queue modes

    Inbound messages can steer the current run, wait for a followup turn, or do both:

    • text
      steer
      : queue steering messages into the active runtime. Pi delivers all pending steering messages after the current assistant turn finishes executing its tool calls, before the next LLM call; Codex app-server receives one batched
      text
      turn/steer
      . If the run is not actively streaming or steering is unavailable, OpenClaw falls back to a followup queue entry.
    • text
      queue
      (legacy): old one-at-a-time steering. Pi delivers one queued steering message at each model boundary; Codex app-server receives separate
      text
      turn/steer
      requests. Prefer
      text
      steer
      unless you need the previous serialized behavior.
    • text
      followup
      : enqueue each message for a later agent turn after the current run ends.
    • text
      collect
      : coalesce queued messages into a single followup turn after the quiet window. If messages target different channels/threads, they drain individually to preserve routing.
    • text
      steer-backlog
      (aka
      text
      steer+backlog
      ): steer now and preserve the same message for a followup turn.
    • text
      interrupt
      (legacy): abort the active run for that session, then run the newest message.

    Steer-backlog means you can get a followup response after the steered run, so streaming surfaces can look like duplicates. Prefer

    text
    collect
    /
    text
    steer
    if you want one response per inbound message.

    For runtime-specific timing and dependency behavior, see Steering queue.

    Configure globally or per channel via

    text
    messages.queue
    :

    json5
    { messages: { queue: { mode: "steer", debounceMs: 500, cap: 20, drop: "summarize", byChannel: { discord: "collect" }, }, }, }

    Queue options

    Options apply to

    text
    followup
    ,
    text
    collect
    , and
    text
    steer-backlog
    (and to
    text
    steer
    or legacy
    text
    queue
    when steering falls back to followup):

    • text
      debounceMs
      : quiet window before draining queued followups. Bare numbers are milliseconds; units
      text
      ms
      ,
      text
      s
      ,
      text
      m
      ,
      text
      h
      , and
      text
      d
      are accepted by
      text
      /queue
      options.
    • text
      cap
      : max queued messages per session. Values below
      text
      1
      are ignored.
    • text
      drop: "summarize"
      : default. Drop the oldest queued entries as needed, keep compact summaries, and inject them as a synthetic followup prompt.
    • text
      drop: "old"
      : drop the oldest queued entries as needed, without preserving summaries.
    • text
      drop: "new"
      : reject the newest message when the queue is already full.

    Defaults:

    text
    debounceMs: 500
    ,
    text
    cap: 20
    ,
    text
    drop: summarize
    .

    Precedence

    For mode selection, OpenClaw resolves:

    1. Inline or stored per-session
      text
      /queue
      override.
    2. text
      messages.queue.byChannel.<channel>
      .
    3. text
      messages.queue.mode
      .
    4. Default
      text
      steer
      .

    For options, inline or stored

    text
    /queue
    options win over config. Then channel-specific debounce (
    text
    messages.queue.debounceMsByChannel
    ), plugin debounce defaults, global
    text
    messages.queue
    options, and built-in defaults are applied.
    text
    cap
    and
    text
    drop
    are global/session options, not per-channel config keys.

    Per-session overrides

    • Send
      text
      /queue <mode>
      as a standalone command to store the mode for the current session.
    • Options can be combined:
      text
      /queue collect debounce:0.5s cap:25 drop:summarize
    • text
      /queue default
      or
      text
      /queue reset
      clears the session override.

    Scope and guarantees

    • Applies to auto-reply agent runs across all inbound channels that use the gateway reply pipeline (WhatsApp web, Telegram, Slack, Discord, Signal, iMessage, webchat, etc.).
    • Default lane (
      text
      main
      ) is process-wide for inbound + main heartbeats; set
      text
      agents.defaults.maxConcurrent
      to allow multiple sessions in parallel.
    • Additional lanes may exist (e.g.
      text
      cron
      ,
      text
      cron-nested
      ,
      text
      nested
      ,
      text
      subagent
      ) so background jobs can run in parallel without blocking inbound replies. Isolated cron agent turns hold a
      text
      cron
      slot while their inner agent execution uses
      text
      cron-nested
      ; both use
      text
      cron.maxConcurrentRuns
      . Shared non-cron
      text
      nested
      flows keep their own lane behavior. These detached runs are tracked as background tasks.
    • Per-session lanes guarantee that only one agent run touches a given session at a time.
    • No external dependencies or background worker threads; pure TypeScript + promises.

    Troubleshooting

    • If commands seem stuck, enable verbose logs and look for “queued for …ms” lines to confirm the queue is draining.
    • If you need queue depth, enable verbose logs and watch for queue timing lines.
    • Codex app-server runs that accept a turn and then stop emitting progress are interrupted by the Codex adapter so the active session lane can release instead of waiting for the outer run timeout.
    • When diagnostics are enabled, sessions that remain in
      text
      processing
      past
      text
      diagnostics.stuckSessionWarnMs
      log a stuck-session warning. Active embedded runs, active reply operations, and active lane tasks remain warning-only by default; stale startup bookkeeping with no active session work can release the affected session lane so queued work drains.

    Related

    • Session management
    • Steering queue
    • Retry policy

    © 2024 TaskFlow Mirror

    Powered by TaskFlow Sync Engine