#Why /new and /reset command so slow?
1 messages Β· Page 1 of 1 (latest)
Thatβs not expected. /new / /reset should mostly just create a fresh session id for that chat; if it takes 1β2 min, something is probably running during or ahead of the command.
Most likely culprits:
-
session-memoryhook
OpenClaw hooks can run on/newand/reset, and the bundledsession-memoryhook saves recent context and generates a slug via an LLM. If that model call is slow, reset feels slow. (docs.openclaw.ai) -
A queued/stuck run or compaction
Thereβs been a known class of issues where/new//resetcan sit behind an in-flight compaction/run instead of immediately recovering. (github.com) -
Discord slash-command path vs plain message
Docs recommend sending/newor/resetas a standalone message. (docs.openclaw.ai)
Can you paste:
openclaw --version
openclaw hooks list
openclaw status
And while reproducing:
openclaw logs --follow --json | grep -Ei 'command:new|command:reset|hook|session-memory|compact|slow|timeout'
Quick test: if session-memory is enabled, temporarily try:
openclaw hooks disable session-memory
openclaw gateway restart
Then test /new again. If it becomes instant, weβve found the cause. Docs: https://docs.openclaw.ai/automation/hooks
openclaw --version
openclaw hooks list
openclaw status
OpenClaw 2026.4.27 (cbc2ba0)
π¦ OpenClaw 2026.4.27 (cbc2ba0) β Ah, the fruit tree company! π
Hooks (4/4 ready)
ββββββββββββ¬ββββββββββββββββββββββββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββββ
β Status β Hook β Description β Source β
ββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββ€
β β ready β π boot-md β Run BOOT.md on gateway startup β openclaw-bundled β
β β ready β π bootstrap-extra-files β Inject additional workspace bootstrap files via glob/path patterns β openclaw-bundled β
β β ready β π command-logger β Log all command events to a centralized audit file β openclaw-bundled β
β β ready β πΎ session-memory β Save session context to memory when /new or /reset command is issued β openclaw-bundled
discord won't let me paste more
No worries β that hook list is enough. The likely culprit is session-memory.
Docs say session-memory runs on command:new and command:reset, extracts recent messages, generates a descriptive filename slug via LLM, then saves to <workspace>/memory/. That LLM call is exactly the kind of thing that can make /new feel like it hangs for 1β2 minutes. (docs.openclaw.ai)
Try this:
openclaw hooks disable session-memory
openclaw gateway restart
Then test /new or /reset again.
If it becomes instant, we found it. You can either leave session-memory disabled, or re-enable later with:
openclaw hooks enable session-memory
openclaw gateway restart
The other hooks in your list are much less suspicious: boot-md is gateway startup, bootstrap-extra-files is bootstrap, and command-logger just logs commands. session-memory is the one specifically attached to /new and /reset.
do I need any of these hooks?
No β none of those are required for basic Discord/UI chat.
My recommendation: disable only session-memory first.
| Hook | Do you need it? | What happens if disabled |
| --------------------- | ----------------------------------------- | ----------------------------------------------------------------------------------- |
| session-memory | No | /new//reset wonβt auto-save the old session into memory. Likely fixes the slowness. |
| command-logger | Usually no | Stops writing command audit logs. Low overhead, safe either way. |
| boot-md | Only if you use BOOT.md | Gateway wonβt auto-run BOOT.md on startup. |
| bootstrap-extra-files | Only if you rely on extra bootstrap files | Some extra workspace context files may not be injected at session start. |
Try:
openclaw hooks disable session-memory
openclaw gateway restart
Then test /new. If itβs fast, leave that one off. Iβd keep the others enabled unless youβre intentionally slimming things down.
yes it's alot faster now
Nice β that confirms it was session-memory. π
Youβre fine leaving it disabled. The only thing you lose is automatic βsave old session to memoryβ when using /new or /reset.
If this fixed it, please right-click the solution message β Apps β β Mark Solution so Answer Overflow indexes it for future users.