openclaw - 💡(How to fix) Fix [Feature]: New Session "+" button: add confirmation, change icon, or make it configurable [4 comments, 3 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#76138Fetched 2026-05-03 04:41:54
View on GitHub
Comments
4
Participants
3
Timeline
10
Reactions
2
Author
Timeline (top)
commented ×4mentioned ×2subscribed ×2labeled ×1

Prevent accidental session loss from the New Session button in the chat toolbar

Root Cause

Prevent accidental session loss from the New Session button in the chat toolbar

Fix Action

Fix / Workaround

CSS-only workaround (current user fix): Some users hide the button via browser extensions like Stylus with button.btn--ghost[aria-label="New session"] { display: none !important; }. This works but shouldn't be necessary — it removes the functionality entirely instead of fixing the underlying UX issue, and requires technical knowledge most users don't have.

Consequence: Lost context means re-explaining the task to the assistant, wasted tokens, interrupted workflow, and growing user frustration that leads to browser-extension workarounds.

Existing community discussions confirm this is a recurring pain point: GitHub issues #56611 (icon confusion with attachment), #45800 (proximity to Send), #6784 (destructive reset behavior), #5969 (move to session dropdown). User workaround evidence: Multiple users have resorted to installing Stylus browser extensions and writing custom CSS to hide the button entirely — a disproportionate response for what should be a UX preference. Comparative precedent: ChatGPT, Claude, and most AI chat UIs place "New Chat" in the sidebar or top header, never in the send toolbar adjacent to the submit button.

RAW_BUFFERClick to expand / collapse

Summary

Prevent accidental session loss from the New Session button in the chat toolbar

Problem to solve

The "+" (New Session) button sits in the chat input toolbar right next to the Send button. A single misclick triggers /new, which immediately replaces the current conversation with a blank session — with no confirmation dialog and no obvious way to recover the lost conversation. The "+" icon also conflicts with user expectations: in every major chat app (WeChat, WhatsApp, Telegram, Slack, Discord), a "+" next to the input signals "add attachment" or "add content", not "discard everything I'm looking at."

Proposed solution

Primary recommendation (minimal effort, maximum impact): Show a confirmation dialog before executing /new — "Start a new session? Current conversation will be cleared." with Confirm/Cancel buttons.

Alternatively or additionally:

Change the icon: Replace + with a ↻ (refresh) glyph or a document icon — anything that doesn't imply "add attachment".
Relocate the button: Move it out of the send toolbar into the session header or sidebar, away from the Send button's click zone.
Config option: Add gateway.controlUi.hideNewSessionButton to let users remove it entirely.

Alternatives considered

CSS-only workaround (current user fix): Some users hide the button via browser extensions like Stylus with button.btn--ghost[aria-label="New session"] { display: none !important; }. This works but shouldn't be necessary — it removes the functionality entirely instead of fixing the underlying UX issue, and requires technical knowledge most users don't have.

Removing the button entirely by default: Too aggressive — the button has legitimate use. The goal is to prevent accidental clicks, not remove access to /new.

Impact

Affected users: All Control UI users, especially those on touchscreens and fast typists.

Severity: Blocks workflow — the entire conversation context is lost in one click with no recovery path. Users must manually dig through the Sessions panel to find their old session.

Frequency: Always reproducible — every time the button is misclicked (happens multiple times per day for some users). The button is always visible and adjacent to the most frequently clicked UI element (Send).

Consequence: Lost context means re-explaining the task to the assistant, wasted tokens, interrupted workflow, and growing user frustration that leads to browser-extension workarounds.

Evidence/examples

Existing community discussions confirm this is a recurring pain point: GitHub issues #56611 (icon confusion with attachment), #45800 (proximity to Send), #6784 (destructive reset behavior), #5969 (move to session dropdown). User workaround evidence: Multiple users have resorted to installing Stylus browser extensions and writing custom CSS to hide the button entirely — a disproportionate response for what should be a UX preference. Comparative precedent: ChatGPT, Claude, and most AI chat UIs place "New Chat" in the sidebar or top header, never in the send toolbar adjacent to the submit button.

Additional information

No response

extent analysis

TL;DR

Show a confirmation dialog before executing the /new command to prevent accidental session loss.

Guidance

  • Implement a confirmation dialog with a clear warning message, such as "Start a new session? Current conversation will be cleared."
  • Consider changing the icon for the New Session button to avoid confusion with attachment icons.
  • Relocating the button to a less prominent location, such as the session header or sidebar, could also reduce accidental clicks.
  • Adding a configuration option to hide the button entirely could provide an alternative solution for users who do not need this functionality.

Example

<button aria-label="New session" onclick="confirmNewSession()">
</button>

<script>
function confirmNewSession() {
  if (confirm("Start a new session? Current conversation will be cleared.")) {
    // execute /new command
  }
}
</script>

Notes

The proposed solution focuses on preventing accidental session loss, but it may not address all user concerns. Further user testing and feedback may be necessary to ensure the solution meets user needs.

Recommendation

Apply the workaround by showing a confirmation dialog before executing the /new command, as it provides a simple and effective solution to prevent accidental session loss.

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…

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 [Feature]: New Session "+" button: add confirmation, change icon, or make it configurable [4 comments, 3 participants]