Feature Request: Automations 支持"智能新开 Session"模式

1、问题描述

当前 Automation 运行时会复用指定 Desktop 中的已有 Session。如果该 Session 之前有过大量交互(数百甚至上千轮对话),Automation 触发的任务会继承这些历史上下文,导致:

  • a、执行中途触发 Context Compaction:长对话积累到上下文窗口上限时,系统会在任务关键节点强制压缩上下文,导致任务中断、状态丢失、执行时间显著增加 无法从 Agent 内部自救:

  • b、Agent 运行在 Session 内部,没有能力新建 Session 或切换 Session,只能被动承受上下文污染的后果

2、期望功能

在 Automation 配置中,Session 策略除了当前的"复用当前 Session"外,增加一个选项:

【智能新开 Session 模式】

运行前先检查当前 Session 的上下文环境,当检测到新任务可能会触发 Context Compaction 时,自动新建一个全新的 Session,然后在新 Session 里执行 Automation 任务。如果上下文空间充足,则继续在当前 Session 中执行。

补充:这个功能对所有多步骤、长时间运行的 Automation 任务都有价值,能增加automation成功的概率,并减少执行时间

Please authenticate to join the conversation.

Upvoters
Status

In Review

Board
💡

Feature Request

Date

4 months ago

Author

Jason

Subscribe to post

Get notified by email when there are changes.