Repository navigation
Description
Bug type
Regression (worked before, now fails)
Beta release blocker
No
Summary
Problem
In OpenClaw 2026.5.3 (and 2026.5.3-1), running a bare /new or /reset command (with no trailing instructions) no longer triggers the persona greeting from the agent. Instead, the user gets a canned text reply ✅ New session started. / ✅ Session reset. and no LLM turn runs.
This breaks the established UX where a freshly-reset session greets the user via the agent's configured persona (SOUL.md / system prompt). For users who rely on the greeting as a "morning sync"-style summary, this is a meaningful regression.
Steps to reproduce
- Configure an agent with a persona that produces a greeting on
BARE_SESSION_RESET(we haveagents.defaults.bootstrapTotalMaxCharsetc. set so the persona has enough context to write a real greeting). - From any chat surface, send exactly
/new(or/reset). - Expected: agent runs an LLM turn and replies with the persona greeting (covers daily memory, current todos, etc.).
- Actual: gateway returns the canned
✅ New session started.text and the LLM turn is skipped entirely.
Expected behavior
One of the following:
- Restore 4.x behavior (preferred): bare
/new//resetfalls through to the LLM turn, agents that have a persona-driven greeting see it run as before. - Make it configurable: e.g.
agents.defaults.commands.bareReset.mode = "greeting" | "canned"(default"greeting"to match historical behavior), or a per-handler hook so configs that want the canned reply opt in.
The current behavior makes it impossible to use /new as a normal "reset and re-greet" trigger without patching dist/, which is brittle across upgrades.
Actual behavior
the user gets a canned text reply ✅ New session started. / ✅ Session reset. and no LLM turn runs.
OpenClaw version
2026.5.3-1
Operating system
Ubuntu 20.04
Install method
No response
Model
claude-opus-4-7
Provider / routing chain
feishu -> openclaw -> claude
Additional provider/model setup details
No response
Logs, screenshots, and evidence
Root Cause (suspected)
dist/commands.runtime-*.js was changed in 5.3 to add a short-circuit branch immediately after emitResetCommandHooks(...):
// 5.3 introduced this branch
if (!resetTail) return {
shouldContinue: false,
...hookResult.routedReply ? {} : { reply: { text: commandAction === "reset" ? "✅ Session reset." : "✅ New session started." } }
};
return null;In 4.x, the corresponding code path returned null for bare /new and /reset, so the request fell through to isBareSessionReset → the normal LLM turn → the persona greeting.
In 5.3, when resetTail is empty (bare /new), the new branch returns shouldContinue: false with the canned text, so the LLM turn never runs.
Workaround
Locally patching the dist file to remove the short-circuit restores the greeting behavior. Reproducible patch:
perl -0777 -i -pe 's/\tif \(!resetTail\) return \{\n\t\tshouldContinue: false,\n\t\t\.\.\.hookResult\.routedReply \? \{\} : \{ reply: \{ text: commandAction === "reset" \? "✅ Session reset\." : "✅ New session started\." \} \}\n\t\};\n\treturn null;/\treturn null;/' \
~/.nvm/versions/node/v22.22.0/lib/node_modules/openclaw/dist/commands.runtime-*.js
systemctl --user restart openclaw-gateway
After the patch, bare `/new` again triggers the persona greeting. Confirmed working on `2026.5.3-1`.Impact and severity
No response
Additional information
No response
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon May 5, 2026
Codex review: this still needs some work.
Summary
Keep this issue open for the optional startup-turn decision expressly reserved by a maintainer; acknowledgement-only bare resets remain intentional.
Reproducibility: Current source proves the reported acknowledgement without model execution, and inspected boundary tests encode it; no live reproduction was run, and this is intentional behavior.
Root-cause cluster
Relationship:
canonicalCanonical: #77733
Summary: This issue remains the explicitly retained tracker for optional reset startup turns.
Members:
fixed_by_candidate: fix(commands): restore bare /new and /reset model fallthrough #81939 - The restoration candidate was closed unmerged as not planned, with the startup-turn decision expressly retained here.fixed_by_candidate: fix(commands): restore LLM fallthrough on bare /new and /reset [AI-assisted] #77758 - The earlier restoration candidate targeted this behavior and is closed unmerged.duplicate: [Feature Request] /new and /reset should trigger an actual greeting instead of a synthetic confirmation bubble #82359 - The closed greeting request directs its remaining discussion to this canonical issue.Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.
Maintainer decision needed
Next step
Maintainers must decide whether to support an optional persona startup turn before choosing its interface or changing the reset contract.
Review details
Best possible solution:
If maintainers sponsor startup greetings, provide a minimal opt-in through the existing reset owner while preserving acknowledgement-only defaults.
Do we have a high-confidence way to reproduce the issue?
Current source proves the reported acknowledgement without model execution, and inspected boundary tests encode it; no live reproduction was run, and this is intentional behavior.
Is this the best way to solve the issue?
An explicit opt-in is safer than unconditional fallthrough because the existing short-circuit prevents empty provider calls, but its interface requires the reserved maintainer decision.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning medium; reviewed against 885bd760863b.
Label changes
Label changes:
No label changes.
Label justifications:
P3: This is optional reset ergonomics under an intentional contract, with explicit follow-up instructions already supported.impact:ux-friction: Persona users must explicitly request their briefing instead of receiving it automatically after a bare reset.Evidence reviewed
What I checked:
src/auto-reply/reply/commands-reset.ts:175, 885bd760863b)src/auto-reply/reply/get-reply-inline-actions.ts:577, 885bd760863b)docs/tools/slash-commands.md:205, 885bd760863b)src/auto-reply/reply.triggers.trigger-handling.e2e.test.ts:363, 885bd760863b)src/auto-reply/reply/commands-reset.ts, a68ca1ae0b47)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.Reviewed October 15, 2026, 7:45 PM ET / 23:45 UTC.
jw8957 commentedon May 5, 2026
Quick clarifying question before this gets triaged either way — looking at
src/auto-reply/reply/commands-reset.tsand the matching testcommands-reset-hooks.test.ts, the new test case is literally titledso it looks like the 5.3 short-circuit is intentional, not an accidental regression. If that's correct, could you say a bit about the reasoning?
A couple things I'd love to understand:
/new? That would make sense for channel plugins with passive users where greetings aren't desired and tokens add up.bare /new = clear session, no LLM turnthe new mental model, with/new <task>being the "and run something" form? If so, this is more of a docs / migration issue than a behavior question./new?Context for why I care — I'm running a Feishu-based personal assistant with a
SOUL.md-style persona. In 4.x bare/newwas the natural trigger for a "morning sync" greeting: the user types/new, the agent runs a full turn, reads daily memory + heartbeat, and produces a recap. That flow disappeared in 5.3-1 because the short-circuit returns the canned text beforeisBareSessionResethas a chance to run.I have a local
perlpatch that drops the short-circuit and restores 4.x fall-through behavior, which works, but re-applying it on every upgrade is exactly the brittle patternCONTRIBUTING.mdwarns against. So before I either keep patchingdist/or send a PR, I'd like to understand the intended replacement path.If the answer is "this was deliberate, please use
/new <task>instead", that's a perfectly fine answer and I'll adjust. If the answer is "we'd accept an opt-in config to restore the old fall-through", I'd be happy to send that PR. Want to make sure I'm not building something that goes against the design intent.COOLBGT commentedon May 8, 2026
Adding a current-data point from
v2026.5.7.I reproduced the same behavior locally: a bare
/newin WebChat returned only the static✅ New session started.ack and did not start the startup/model turn.I applied a local hotfix to the installed dist bundle by removing the bare-reset short-circuit in
maybeHandleResetCommand():and letting that path fall through with:
On my installed build the patched file was:
After restarting the gateway and running
node --checkon the patched bundle, bare/newagain produced a real fresh startup turn instead of only the canned ack. I verified this by starting a new WebChat session: the agent received the fresh-session startup flow and greeted from its configured persona/context.So at least for the WebChat/control-ui path, removing the short-circuit restores the old 4.x-style behavior. Obviously patching
dist/is only a workaround and will be overwritten by npm/self-updates, but it may help confirm the suspected fix direction.My preference would be either:
/new//reset, orbareReset.mode = "ack" | "startupTurn"so personal-assistant/persona setups can keep using/newas a fresh greeting/sync trigger without local patches.Tony-ooo commentedon May 12, 2026
Additional Source Code Analysis
I traced the exact code path and confirmed the root cause. Here's the full chain:
1. Short-circuit in
maybeHandleResetCommandFile:
dist/commands.runtime-*.js(line ~136)When
resetTailis empty (bare/newor/reset), this returnsshouldContinue: falsewith a static reply. The command handler inget-reply-*.js(line ~1564) then exits immediately:No LLM turn runs at all.
2.
isBareSessionResetdetection exists but is never reachedFile:
dist/get-reply-*.js(line ~2180)The
isBareSessionResetflag is correctly set, and the startup context prelude is computed:This would inject daily memory files (
memory/YYYY-MM-DD.md) into the prompt. But this code is never reached because the short-circuit inmaybeHandleResetCommandexits beforerunPreparedReplyis called.3. The reset prompt tells the agent to read files, but the agent never runs
File:
dist/startup-context-*.js(line ~11)This prompt is built and would be injected as
baseBodyFinalwhenisBareSessionResetis true. But again, the agent never runs to receive it.Summary
The 5.3 short-circuit in
maybeHandleResetCommandreturnsshouldContinue: falsebefore the entirerunPreparedReplypipeline executes. This means:BARE_SESSION_RESET_PROMPT_BASEinstructions sent to the modelThe fix is to remove or make configurable the
if (!resetTail) return { shouldContinue: false, ... }branch so bare/new//resetfalls through to the normal LLM turn.jw8957 commentedon May 23, 2026
Returning to this — given the test name
"acknowledges bare /new without falling through to model execution"incommands-reset-hooks.test.ts, the 5.3 short-circuit is clearly intentional rather than accidental. So a straight revert isn't the right path, which is probably why #81939 has stalled on the bot's "needs changes" feedback.Proposal: instead of reverting, add an opt-in so persona-based agents can keep the 4.x fallthrough behavior, while the 5.3 ack-only default stays untouched.
Two audiences, both legitimate:
/new= cheap ack, no LLM turn (current 5.3 default — keep it)/new= "run the session-start turn so the agent readsSOUL.md/ daily memory / heartbeat and produces a real greeting" (4.x behavior — needs to be reachable again)Concrete API shapes maintainers might pick from:
23 remaining items
steipete commentedon Oct 24, 2026
Thanks for filing this. We're closing older issues that no longer look actionable on current
main.Acknowledgement-only bare /new and /reset is intentional now; adding text after the command (for example /new good morning) still starts a model turn. Please open a fresh feature request for an opt-in startup turn if you still want one.