#Edit default session

1 messages · Page 1 of 1 (latest)

median sand
#

Made secound agent but now it the new one default and useing different rules. How i can change back to main session?

marsh cargoBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

verbal mossBOT
# median sand Made secound agent but now it the new one default and useing different rules. Ho...

In OpenClaw there’s a difference between agent (separate workspace/persona/rules) and session (the chat history bucket inside an agent). If you “made a second agent” and now it’s acting like the default, you probably need to switch agent, not just session.

If you’re using the TUI

Switch back to the main agent:

  • type: /agent main
  • (optional) then: /session main

You can also use the pickers:

  • Ctrl+G = agent picker
  • Ctrl+P = session picker

Docs: https://docs.openclaw.ai/tui

If you mean Discord messages are being handled by the wrong agent

Discord routing is deterministic (bindings/default agent). To make main the default again, edit your config and restart the Gateway:

  • In ~/.openclaw/openclaw.json:
median sand
#

Is there a way to delete the secound agent and automatically switching to main?

verbal mossBOT
# median sand Is there a way to delete the secound agent and automatically switching to main?

Yes.

Delete the second agent (recommended way)

From the machine running the Gateway:

  1. See what the agent id is + what bindings route Discord to it:
openclaw agents list --bindings
  1. Delete it:
openclaw agents delete <agentId>

(Add --force if it asks for confirmation.)

This will remove that agent and prune its workspace/state, so any history/files that lived in that agent are gone.