From 75b406e87b785931e1539226bcec77f114d5fddf Mon Sep 17 00:00:00 2001 From: "Factory: remote-delegations" <138933559+factory-droid[bot]@users.noreply.github.com> Date: Wed, 2 Sep 2026 23:24:33 +0000 Subject: [PATCH] docs(cli): document resume picker usage Co-authored-by: stepan-factory Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> --- docs/reference/cli-reference.mdx | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/docs/reference/cli-reference.mdx b/docs/reference/cli-reference.mdx index fe6dc1af..8d93f792 100644 --- a/docs/reference/cli-reference.mdx +++ b/docs/reference/cli-reference.mdx @@ -92,7 +92,9 @@ detail, so always pin a version and verify its checksum. | :----------------------------------- | :--------------------------------------------------------------------- | :--------------------------------------------- | | `droid` | Start interactive REPL | `droid` | | `droid "query"` | Start REPL with initial prompt | `droid "explain this project"` | -| `droid --resume [sessionId]` | Resume a session (defaults to last modified). Alias: `-r` | `droid --resume` | +| `droid resume [sessionId]` | Open the session picker, or resume the specified session directly | `droid resume` | +| `droid --resume [sessionId]` | Equivalent flag form of `droid resume`. Alias: `-r` | `droid --resume session-abc123` | +| `droid resume --last` | Resume the most recent session in the current folder without the picker | `droid resume --last` | | `droid --fork ` | Fork and resume a session in a new copy | `droid --fork session-abc123` | | `droid exec "query"` | Execute task without interactive mode | `droid exec "summarize src/auth"` | | `droid exec -f prompt.md` | Load prompt from file | `droid exec -f .factory/prompts/review.md` | @@ -132,7 +134,8 @@ Customize droid's behavior with command-line flags: | `--list-tools` | Print available tools and exit | `droid exec --list-tools` | | `-o, --output-format ` | Output format (`text`, `json`, `stream-json`, `stream-jsonrpc`) | `droid exec -o json "document API"` | | `--input-format ` | Input format (`stream-jsonrpc` for multi-turn) | `droid exec --input-format stream-jsonrpc -o stream-jsonrpc` | -| `-r, --resume [sessionId]` | Resume a previous session. In interactive mode, `-r` is `--resume`; in `droid exec`, `-r` is `--reasoning-effort`. | `droid -r` | +| `-r, --resume [sessionId]` | Open the session picker, or resume the specified session directly. In `droid exec`, `-r` is `--reasoning-effort`. | `droid -r` | +| `--last` | With a bare resume, skip the picker and resume the most recent session in the current folder | `droid --resume --last` | | `-r, --reasoning-effort ` | Override reasoning effort (`off`, `none`, `low`, `medium`, `high`). In `droid exec`, `-r` maps to this flag. | `droid exec -r high "debug flaky test"` | | `--spec-model ` | Use a different [model ID](/models) for specification planning | `droid exec --spec-model claude-opus-4-7` | | `--spec-reasoning-effort ` | Override reasoning effort for spec mode | `droid exec --use-spec --spec-reasoning-effort high` | @@ -368,6 +371,29 @@ droid --worktree feature-b & In addition to the global flags above, several `droid` subcommands accept their own flags. +#### `droid resume` flags + +| Flag | Description | Example | +| :------- | :-------------------------------------------------------------------- | :--------------------------------------- | +| `--last` | Skip the picker and select the most recent session in the current folder | `droid resume --last` | +| `--fork` | Fork the selected session and resume the new copy | `droid resume session-abc123 --fork` | + +```bash +# Choose a session from the interactive picker +droid resume + +# Resume a specific session directly +droid resume session-abc123 + +# Resume the most recent session in the current folder without the picker +droid resume --last + +# Fork the most recent session, then resume the new copy +droid resume --last --fork +``` + +The `droid --resume` flag form supports the same picker, session ID, and `--last` behavior. + #### `droid update` flags | Flag | Description | Example |