I was working on session recovery in Pidex when I hit a gap in the recovery flow. After Pi exits, Pidex keeps the conversation visible in the tab. Resuming or forking needs the original archive and a validated point in its history. If Pi never supplied an archive or that file has gone missing, there can still be enough in the tab to brief a new session.1
I added Copy context and Export to the exited tab. Both produce Markdown from the messages, thinking and tool input and output the window still holds. The file identifies itself as a potentially incomplete snapshot. It leaves the unsent draft in the composer and tells the next session to check tool output and workspace changes before retrying unfinished work.2

Cropped from an Electron test with a simulated Pi session. The saved archive is missing, the clipboard confirms the copy, and the fixture draft remains visible.
The Electron test deletes the exact archive and leaves an unrelated archive available. It compares the clipboard and downloaded Markdown, checks that the draft and unrelated history stay out of both, and verifies that copying and exporting make no session RPCs. An integration test covers the case where Pi never supplies an archive path.3
The window only holds this copy until it closes. If I need the same session and its history, I still need to preview and validate the saved archive. The export gives me a way to keep working from the transcript I can see.