2 minute read

I asked GitHub Copilot to save our chat. It asked me to rephrase.

TL;DR: Copilot told me to rephrase my chat export request. I did. Same refusal. Making me guess what went wrong feels like enshittification. My workaround is a Python script that reads the local Copilot logs and writes one Markdown file per session.

I asked GitHub Copilot to save our chat. I already had a Python script for that.

I had a fallback before I had the error message. I figured that sooner or later I’d want a copy of a coding session and asking the assistant for it wouldn’t work. So I wrote a Python script to turn my local Copilot logs into Markdown.

Then I got to see what the failure would actually look like.

I was using GitHub Copilot in VS Code with Claude Opus 5.5 selected. I asked it to save our chat under doc/chatlog/ as a dated Markdown file and update doc/documentation.md with what we’d established about the project.

Sorry, the model declined to complete this request. Please rephrase your prompt.

Fair enough. I’d squeezed two jobs into one prompt and even misspelled TOPIC as TOIPC in the filename. I dropped the documentation request and asked for just the chat log. Same reply, word for word. Underneath it was a blue Try Again button. I thought I just had.

Meanwhile, the conversation was already on my disk. On my setup, VS Code stores Copilot sessions under chatSessions/*.jsonl. There’s a small wrinkle if you want to read them yourself. The first record gives my exporter a starting state. Later records describe changes to it. The script replays those changes to recover the conversation. For Copilot CLI sessions, it reads the user and assistant messages directly from the event log.

After configuring the sources with setup_export_chat.py, I can run this from the repo root:

python3 src/agenttools/export_chat.py doc/chatlog

That gives me one Markdown file per conversation under doc/chatlog/sessions/ and a README.md that indexes them by start time. The VS Code export condenses tool calls to a line each and skips thinking blocks. Add --watch 5 and it checks for changes every five seconds. Files whose contents haven’t changed keep their timestamps. I can open yesterday’s session in an editor, search it with rg, or read the diff after another turn.

Enshittification is the word that came to mind when I saw that button. One screenshot can’t tell me whether the model declined, the integration lacked access to the transcript, or something else failed. What I can see is who got the debugging job. Copilot told me to change my wording. I did. Its answer stayed exactly the same.

I’d expected to need the script someday. What I hadn’t expected was that reading a JSONL file and replaying its edits would involve less guesswork than asking the thing I’d just been talking to for a copy of our conversation.

Update

See https://gist.github.com/softwareengel/61f36843c6f94004467961f700fec8ba