openclaw - 💡(How to fix) Fix [Bug]: Control UI /new, /reset, and New Session do not create the same true fresh session as direct session creation [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#69599Fetched 2026-04-22 07:50:23
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
Author
Participants

In Control UI / webchat, the normal "New Session" paths are not creating a genuinely fresh session the way backend session creation does.

What I verified:

  • manually creating a new session key (test-fresh-1) produced a real fresh session with low context usage
  • that new session appeared in the session dropdown and became active when selected
  • context in that fresh session was about 18k/272k (7%)
  • by contrast, the normal /new, /reset, and New Session button flows are not behaving like that fresh-session path and appear to keep routing back to the canonical main session instead of giving an actually separate fresh session

This means the backend can support the desired behavior, but the standard Control UI new/reset flows are not using it correctly.

Root Cause

High UX impact for anyone trying to escape a polluted or oversized session:

  • users expect /new, /reset, or New Session to actually start fresh
  • debugging is confusing because the backend fresh-session path works
  • current behavior makes the standard UI affordances unreliable as recovery tools

Fix Action

Fix / Workaround

/new, /reset, and the New Session button should all converge on the same fresh-session behavior as direct session creation:

  • create or switch to a genuinely fresh session
  • give that session its own identity in the session selector
  • start with low context usage rather than silently resuming agent:main:main
  • not require manual session-key creation as a workaround

Code Example

Fresh directly-created session status:
Session: agent:main:test-fresh-1
Context: 18k/272k (7%)

Observed prior investigation notes:
- Control UI/session-selection behavior appears more likely than auth token or browser cache issues
- fallback defaults around `sessionKey: "main"` and `lastActiveSessionKey: "main"` appear relevant when no saved session is available
RAW_BUFFERClick to expand / collapse

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

In Control UI / webchat, the normal "New Session" paths are not creating a genuinely fresh session the way backend session creation does.

What I verified:

  • manually creating a new session key (test-fresh-1) produced a real fresh session with low context usage
  • that new session appeared in the session dropdown and became active when selected
  • context in that fresh session was about 18k/272k (7%)
  • by contrast, the normal /new, /reset, and New Session button flows are not behaving like that fresh-session path and appear to keep routing back to the canonical main session instead of giving an actually separate fresh session

This means the backend can support the desired behavior, but the standard Control UI new/reset flows are not using it correctly.

Steps to reproduce

  1. Open Control UI / webchat
  2. Observe a long-lived main session with substantial inherited context
  3. Use the normal fresh-start UX, for example:
    • type /new, or
    • type /reset, or
    • click the New Session button
  4. Observe that the session does not behave like a truly fresh independent session
  5. For comparison, create a distinct session key directly (example used during testing: test-fresh-1)
  6. Select that new session from the session dropdown
  7. Observe that this direct-created session does behave like a genuinely fresh session, including low context usage and independent session identity

Expected behavior

/new, /reset, and the New Session button should all converge on the same fresh-session behavior as direct session creation:

  • create or switch to a genuinely fresh session
  • give that session its own identity in the session selector
  • start with low context usage rather than silently resuming agent:main:main
  • not require manual session-key creation as a workaround

Actual behavior

  • manual session creation produces the correct fresh-session result
  • /new, /reset, and the New Session button do not appear to follow that same path
  • the UI seems to route back to the canonical main session (agent:main:main) or otherwise fails to materialize the same kind of fresh independent session
  • as a result, users can believe they started fresh when they did not

OpenClaw version

2026.4.15

Operating system

WSL2 / Linux

Install method

npm global

Model

openai-codex/gpt-5.4

Provider / routing chain

webchat / Control UI

Additional provider/model setup details

Gateway was healthy and local. The behavior was observed in Control UI with direct local webchat usage.

Logs, screenshots, and evidence

Fresh directly-created session status:
Session: agent:main:test-fresh-1
Context: 18k/272k (7%)

Observed prior investigation notes:
- Control UI/session-selection behavior appears more likely than auth token or browser cache issues
- fallback defaults around `sessionKey: "main"` and `lastActiveSessionKey: "main"` appear relevant when no saved session is available

Impact and severity

High UX impact for anyone trying to escape a polluted or oversized session:

  • users expect /new, /reset, or New Session to actually start fresh
  • debugging is confusing because the backend fresh-session path works
  • current behavior makes the standard UI affordances unreliable as recovery tools

Additional information

Possibly related but not identical to these existing issues:

  • #66533, where session selector labeling makes /new feel like sessions disappear
  • #47561, where /new can be superseded by routing changes
  • #58353, where /new or /reset can carry stale content into the first message

This report is specifically about the normal fresh-session UI flows not matching the behavior of a truly new independently created session.

extent analysis

TL;DR

The issue can be resolved by ensuring that the /new, /reset, and New Session button flows correctly utilize the backend's fresh session creation path, similar to manually creating a new session key.

Guidance

  • Investigate the Control UI's session selection behavior and its interaction with the sessionKey and lastActiveSessionKey defaults to understand why the standard fresh-session flows are not creating a genuinely fresh session.
  • Verify that the backend's session creation logic is being correctly invoked by the /new, /reset, and New Session button flows, and that the resulting session is being properly registered in the session selector.
  • Compare the implementation of the manual session creation flow (which works as expected) with the implementation of the /new, /reset, and New Session button flows to identify any discrepancies.
  • Consider updating the fallback defaults around sessionKey: "main" and lastActiveSessionKey: "main" to ensure that a new session is created when no saved session is available.

Example

No code snippet is provided as the issue does not contain sufficient information about the specific implementation details.

Notes

The issue may be related to existing issues #66533, #47561, and #58353, but it is specifically focused on the normal fresh-session UI flows not matching the behavior of a truly new independently created session.

Recommendation

Apply a workaround by manually creating a new session key until the issue is resolved, as this has been verified to produce the correct fresh-session behavior.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

/new, /reset, and the New Session button should all converge on the same fresh-session behavior as direct session creation:

  • create or switch to a genuinely fresh session
  • give that session its own identity in the session selector
  • start with low context usage rather than silently resuming agent:main:main
  • not require manual session-key creation as a workaround

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Bug]: Control UI /new, /reset, and New Session do not create the same true fresh session as direct session creation [1 participants]