Skip to content

Commit 2fe8568

Browse files
DanWahlinCopilot
andcommitted
docs: expand --resume session guidance in Chapter 02
Add detailed tips explaining how to find session IDs, how sessions work across multiple terminals, and how to switch sessions from inside an active session using /resume. Remove redundant 'Switch Sessions While Working' section that is now covered by the expanded tip. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent f201a68 commit 2fe8568

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

02-context-conversations/README.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,16 @@ copilot --resume
307307
copilot --resume abc123
308308
```
309309
310+
> 💡 **How do I find a session ID?** You don't need to memorize them. Running `copilot --resume` without an ID shows an interactive list of your previous sessions, their names, IDs, and when they were last active. Just pick the one you want.
311+
>
312+
> **What about multiple terminals?** Each terminal window is its own session with its own context. If you have Copilot CLI open in three terminals, that's three separate sessions. Running `--resume` from any terminal lets you browse all of them. The `--continue` flag grabs whichever session was closed most recently, no matter which terminal it was in.
313+
>
314+
> **Can I switch sessions without restarting?** Yes. Use the `/resume` slash command from inside an active session:
315+
> ```
316+
> > /resume
317+
> # Shows a list of sessions to switch to
318+
> ```
319+
310320
### Organize Your Sessions
311321
312322
Give sessions meaningful names so you can find them later:
@@ -430,17 +440,6 @@ copilot
430440
> Find all TODO comments in @samples/book-app-project/**/*.py
431441
```
432442
433-
### Switch Sessions While Working
434-
435-
Inside an interactive session, use the `/resume` command:
436-
437-
```bash
438-
copilot
439-
440-
> /resume
441-
# Shows a list of sessions to switch to
442-
```
443-
444443
### View Session Info
445444
446445
```bash

0 commit comments

Comments
 (0)