promptgarten 🌱
🌍 DE

命令参考 · Cursor CLI

agent resume

直接继续最近使用的聊天会话,不显示选择列表。

agent resume 会加载最近使用的会话(包括此前的上下文),并在那里继续对话。它等价于 --continue 或斜杠命令 /resume,两者都是 --resume=-1 的简写。

什么时候用?

中断之后直接继续上一次的对话

agent resume

什么时候不该用?

想继续的是更早的某个会话,而不是最近使用的那个

agent resume 始终只加载最近使用的会话。

更好的选择: 用 agent ls 选择某个具体的更早会话,或用 --resume [chatId] 指定具体 ID

来源