Repository navigation
feat(agents): collect the Copilot CLI transcript as a session log - #700
Merged
Merged
Conversation
Copilot CLI always draws on the alternate screen and has no switch to stop it, so a session's terminal log keeps only the last frame. The CLI's own session-state/<id>/events.jsonl is the one full record of the conversation; collect it like Claude's and Kiro's transcripts, under a name carrying the CLI's session id, since every file is called events.jsonl. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Artem Petrov <[email protected]>
NOX73
added a commit
that referenced
this pull request
Nov 11, 2026
…s-0-1-0 * origin/develop: feat(coder): clone GitLab, Bitbucket and Azure DevOps repos in coder_prepare_repo (#703) fix(agents): show each runtime's own logo everywhere (#704) feat(teams): assign cards to a team and run triggers as a team (#701) feat(agents): collect the Copilot CLI transcript as a session log (#700) fix(agents): keep Grok and Antigravity conversations in the terminal scrollback (#698) feat(billing): redesign the Billing tab around active and previous subscriptions (#646) feat(web): switch the UI, admin, public pages and emails to Inter (#699) chore(deps): weekly dependency batch — aws-sdk-core 3.267 retry fix, prism 2, Mantine 9.7.5, runner Go 1.27.4 (#697) fix(board): leave archived tasks out of agent board listings (#690) feat(agents): add GitHub Copilot CLI as an agent runtime (#684) feat(runners): the callback proxy — the proxy sidecar, the host runner relay and the gateway proxy route (task #216, 8b) (#677) Signed-off-by: Rozhnov Alexandr <[email protected]>
aixle-com Bot
pushed a commit
that referenced
this pull request
Nov 11, 2026
Conflicts were between staging's feature-branch merges of #677, #684 and an earlier head of #689 and develop's squash-merges of #677/#684 (plus #700, #704). Each hunk takes develop's side (the final, reviewed version), except config/settings.yml, which keeps the runners.release block of #689, and CHANGELOG.md, which keeps both sides' entries. Staging-only content (#494) merged without conflict and is kept.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Copilot CLI (1.0.108) always draws on the alternate screen and offers no flag, setting or env var to stop it (upstream: github/copilot-cli#2334 closed as "will not bring back the old renderer", #4509 open). So a Copilot session's terminal log, its replay and the tmux scrollback hold only the last frame. #698 fixes this for the runtimes that have a switch. Copilot has none.
The CLI keeps a full record of its own at
~/.copilot/session-state/<session id>/events.jsonl. It holds every user and assistant message, tool call and result. Sessions did not collect it.What
CopilotCliAdapter#session_log_pathsnow adds~/.copilot/session-state/*/events.jsonl.CopilotCliAdapter#session_log_namestores each transcript as<session id>.events.jsonl. Every transcript file is namedevents.jsonl, so the bare basename would make the rows indistinguishable (the same approach as Kiro'ssess_<id>.messages.jsonl).Sessions::LogCollectormasks it inside the container before upload, like Claude's transcript.Verified
aixle/copilot-clicontainer ran a TUI session against the mock LLM (test/otlp_capture/mock.py, BYOK provider env), two turns.session-state/<uuid>/events.jsonl(36 KB) with event typessession.start,user.message,assistant.message,assistant.turn_*,session.usage_recordand others.LogCollector's own listing command, run in that container, found the file and the masker marker. That selects the direct-upload path with masking in the container.session_log_namemaps the file to<uuid>.events.jsonl.copilot_cli_adapter_test.rbandchangelog_test.rbpass, and rubocop is clean. The full suite runs on CI.🤖 Generated with Claude Code