[CLI] Resume picker: default to “This workspace” (configurable)

Feature request for product/service

Cursor CLI

Describe the request

Title: CLI /resume: default session filter to “This workspace” (and make it configurable)

Feature request for: Cursor CLI

Problem

In interactive Agent CLI, /resume / agent ls opens a session picker with two tabs:

• All chats
• This workspace

The picker always opens on All chats. For day-to-day work I almost always want sessions from the current cwd/workspace; the
global list is noisy and easy to pick the wrong chat.

Switching is possible (→ / l), but the choice is not persisted and there is no cli-config.json setting. Every /resume starts
on All chats again.

Proposal

  1. Default the filter to “This workspace” when opening the resume picker (or at least when a current workspace is known).
  2. Optionally add a config key, e.g. in ~/.cursor/cli-config.json:

{
“resume”: {
“defaultFilter”: “workspace”
}
}

Allowed values: “workspace” | “all”. Persist the last selected tab as a weaker alternative if you don’t want a new config
field yet.

Why

• Matches how most people resume work: same repo, same directory.
• Reduces mis-resumes from similarly named chats in other workspaces.
• Small UX change; filter UI already exists.

Current workaround

• Manually press → / l each time, or
• Patch local CLI bundle useState(“all”) → useState(“workspace”) (overwritten by agent update).

Environment

• Cursor Agent CLI (e.g. 2026.07.23-e383d2b)
• Slash command /resume / agent ls

Hey @lchgl

One thing that may cover most of your daily case without patching the bundle: session history is bucketed by the directory you launch from, and that’s exactly what the This workspace tab filters on. So from inside the repo:

  • agent resume (or agent --continue) drops you straight into the most recent chat from that directory, no picker at all
  • agent --resume=-2, agent --resume=-3 and so on jump to the 2nd, 3rd most recent from that same directory

That skips the “All chats” list entirely when you just want to pick up where you left off in a repo. It won’t help when you actually want to browse, which is where your ask still stands.

Docs for reference: CLI parameters and CLI configuration.

We’ll be tracking this thread to gauge interest, which helps our product team prioritize. If others want a configurable default here, chime in.