Commit 3367a5f
fix(self-improvement): skip note inject on Discord channel /new to avoid hook interference
Skip self-improvement note injection on Discord channel (non-thread) resets.
The appendSelfImprovementNote hook was push()ing synchronously into
event.messages before the first agent turn ran, which contributed to
the post-reset startup race described in openclaw/openclaw#46941.
Discord channel resets are guarded by checking Provider=discord && (MessageThreadId
== null or empty). Thread resets and non-Discord surfaces are unaffected.
Ref: openclaw/openclaw#46941 (root cause: /new re-fires command:new hooks)
Ref: openclaw/openclaw#49001 (thread-only post-rotation window)1 parent 5c477c1 commit 3367a5f
1 file changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2785 | 2785 | | |
2786 | 2786 | | |
2787 | 2787 | | |
| 2788 | + | |
| 2789 | + | |
| 2790 | + | |
| 2791 | + | |
| 2792 | + | |
| 2793 | + | |
| 2794 | + | |
| 2795 | + | |
| 2796 | + | |
| 2797 | + | |
| 2798 | + | |
| 2799 | + | |
| 2800 | + | |
2788 | 2801 | | |
2789 | 2802 | | |
2790 | 2803 | | |
| |||
0 commit comments