Skip to content

[Bug]: /new command spawns subagent instead of resetting session #16732

@kdotndot

Description

@kdotndot

Summary

Want /new to reset current session to reduce context token usage.

Steps to reproduce

Steps to reproduce:

  1. Have an active main session with some context
  2. Send /new as a standalone message
  3. Observe that a subagent is spawned instead of resetting

Expected behavior

Expected behavior:

  • /new should reset the current session (clear context/tokens in-place)
  • Should get a greeting in the same session
  • No subagent should be created

Actual behavior

Actual behavior:

  • /new spawns a new subagent session instead
  • Main session context is NOT cleared (tokens unchanged)
  • Subagent receives the greeting prompt

OpenClaw version

  • OpenClaw version: 2026.2.12 (f9e444d)

Operating system

  • Platform: macOS 15.6 (arm64)

Install method

No response

Logs, screenshots, and evidence

**Evidence:**

# Main session NOT reset:
agent:main:main (26k tokens - should be ~0 after /new)

# Unwanted subagent created:
agent:main:subagent:d9c65331-b5a8-4d1c-9452-b39c4f5da0d2


**Documentation reference:**
According to [slash-commands.md](https://docs.openclaw.ai/tools/slash-commands):
> `/new` or `/reset` starts a **fresh session for that chat**

This should reset in-place, not spawn a subagent.

Impact and severity

Impact:

  • Users cannot clear session context as intended
  • Unwanted subagent sessions accumulate
  • Session management becomes confusing

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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