github / github/copilot-cli

add session id in the output of non-interactive mode

Offen
#807 0 Kommentare 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area:non-interactive area:sessions
Vorherrschende Sprache
Shell
Sterne
11.2k
Forks
1.9k
Ø Merge
14 Std. 16 Min.
Gemergte PRs (30 T.)
6

Beschreibung

### Describe the feature or problem you'd like to solve

_No response_

### Proposed solution

➜ git:(main) copilot --allow-all-tools -p "who are you"
I am **GitHub Copilot CLI**, a terminal assistant built by GitHub. I help with software engineering tasks like:

- Exploring and analyzing codebases
- Making surgical code changes to files
- Running builds, tests, and debugging
- Working with Git repositories
- Executing shell commands and development workflows

I can help you understand the code, make changes, run tests, or perform other development tasks. What would you like me to help with?

Total usage est: 1 Premium request
Total duration (API): 4s
Total duration (wall): 6s
Total code changes: 0 lines added, 0 lines removed
**Session Id: abcdefg** ==> add this
Usage by model:
claude-sonnet-4.5 20.2k input, 117 output, 19.8k cache read (Est. 1 Premium request)

### Example prompts or workflows

this would help continue the conversations if i have further non-interactive session while resuming the earlier context.

e.g.

➜ git:(main) copilot --allow-all-tools -p "what's my last question?" --resume 916524aa-24ae-406d-899a-698d2c19dd57
Your last question was "who are you" - which I just answered by explaining that I'm GitHub Copilot CLI, a terminal assistant for software engineering tasks.

Total usage est: 1 Premium request
Total duration (API): 2s
Total duration (wall): 4s
Total code changes: 0 lines added, 0 lines removed
Usage by model:
claude-sonnet-4.5 20.3k input, 37 output, 19.8k cache read (Est. 1 Premium request)

### Additional context

_No response_

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.