openclaw - 💡(How to fix) Fix [Feature]: New Session 创建时增加确认提示 [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#70933Fetched 2026-04-24 10:37:40
View on GitHub
Comments
0
Participants
1
Timeline
1
Reactions
0
Participants
Timeline (top)
labeled ×1

New Session 创建时增加确认提示

Root Cause

New Session 创建时增加确认提示

RAW_BUFFERClick to expand / collapse

Summary

New Session 创建时增加确认提示

Problem to solve

点击 "New Session" 时没有任何确认机制,误点击会导致:

  • 当前会话上下文丢失
  • 未保存的工作进度丢失
  • 需要重新解释任务背景

Proposed solution

点击 New Session 后,弹出确认对话框:

  • 提示:"确定要创建新会话吗?"
  • 说明影响:"当前聊天内容将消失,之前未完成的任务需要重新开始"
  • 提供"确认创建"和"取消"两个按钮
  • 可选:增加"不再提示"的checkbox

Alternatives considered

No response

Impact

Medium

Evidence/examples

No response

Additional information

No response

extent analysis

TL;DR

Implement a confirmation dialog when creating a new session to prevent accidental loss of current session context and unsaved work.

Guidance

  • Add a confirmation prompt before creating a new session to alert users of potential data loss.
  • Display a clear message explaining the consequences of creating a new session, such as loss of current chat content and unsaved task progress.
  • Provide "Confirm" and "Cancel" buttons to allow users to proceed or abort the new session creation.
  • Consider adding a "Do not show again" checkbox to allow users to opt-out of future prompts.

Example

// Pseudocode example of confirmation dialog
function createNewSession() {
  const confirmation = confirm("确定要创建新会话吗?\n当前聊天内容将消失,之前未完成的任务需要重新开始");
  if (confirmation) {
    // Proceed with creating new session
  } else {
    // Cancel new session creation
  }
}

Notes

This solution assumes that the application has the capability to display a confirmation dialog and handle user input. The exact implementation may vary depending on the programming language and framework used.

Recommendation

Apply workaround: Implement the proposed solution of adding a confirmation dialog to prevent accidental new session creation, as it provides a clear and effective way to mitigate the problem.

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