Skip to content

能否恢复复用未使用的新会话? #3983

Closed

Description

@Raing5Days

我在看新建会话流程时发现,PR #716 / 提交 70e2d4e5b 把 findReusableEmptySessionId 直接改成了 return null,明确关掉了空会话复用。之后点“新建会话”总会再建一个,即使当前工作区已经有一个同模式、没有发过任何内容的新会话。想确认一下当时为什么要关掉:是遇到了 bug、工作区或配置上的问题,还是产品交互上决定不再复用?如果背后有已知问题,最好在 helper 旁边写清楚,避免以后又被误改回来。

能不能把它有限制地恢复?比如当前工作区已经有一个同模式、没发过内容的新会话时,就直接打开它,不再创建新的。侧栏现在会给这种草稿加角标,但继续点新建还是会再多一个,所以只加角标作用不大。至少恢复“未发送草稿”的复用,既能减少空会话堆积,也能保留当初这个改动想规避的问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions