Skip to content

[BUG] Sub-agent sessions_spawn fails with pairing required error #23187

@rintea0001-tech

Description

@rintea0001-tech

Description

Using sessions_spawn tool fails with error:

gateway closed (1008): pairing required

Steps to Reproduce

  1. Call sessions_spawn tool from main agent
  2. Sub-agent attempts to connect back to gateway
  3. Fails with "pairing required" error

Expected Behavior

Sub-agent should spawn without requiring manual pairing

Logs

scopesFrom: operator.admin,operator.approvals,operator.pairing,operator.read
scopesTo: operator.write
reason: scope-upgrade
gateway connect failed: Error: pairing required

Environment

  • OpenClaw version: 2026.2.21-2
  • Platform: macOS
  • Channel: Telegram
  • Config: agents.defaults.subagents.maxSpawnDepth: 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions