Skip to content

[Bug]: Session-memory hook not triggered when using /new command in Feishu #31275

@Spirit597

Description

@Spirit597

Bug type

Behavior bug (incorrect output/state without crash)

Summary

The session-memory hook is not triggered when using the /new command in Feishu channel, but it works correctly when using the same command in WebUI. This results in session context not being saved to memory files with the expected date-slug format.

Steps to reproduce

  1. Connect OpenClaw to Feishu with session-memory hook enabled
  2. Have a conversation in Feishu
  3. Issue the /new command in Feishu
  4. Check the ~/.openclaw/workspace/memory/ directory - no new memory file is created
  5. Compare with WebUI: when /new is used in WebUI, a memory file like 2026-03-02-vendor-pitch.md is created

Expected behavior

When /new command is issued in Feishu, the session-memory hook should be triggered and save the previous session context to a memory file with date-slug format, just like it does in WebUI.

Actual behavior

When /new command is issued in Feishu, the session-memory hook does not work. There is no new memory file in ~/.openclaw/workspace/memory/ directory

OpenClaw version

2026.2.24

Operating system

Ubuntu 24.04

Install method

npm

Logs, screenshots, and evidence

N/A

Impact and severity

  • Affected channels: feishu
  • Frequency: Always

Additional information

Installation Status**

  • Session-memory hook: ready (bundled with OpenClaw)
  • Feishu channel: configured and enabled,bundled with OpenClaw

Important clarification: The /new command does execute correctly in Feishu - it successfully creates a new session and resets the conversation. The issue is specifically that the session-memory hook is not triggered during this process, so the previous session context is not saved to memory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbug:behaviorIncorrect behavior without a crash

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions