Skip to content

Let you save a chat transcript without losing the live session#192

Merged
dnouri merged 1 commit intomasterfrom
write-file
Apr 17, 2026
Merged

Let you save a chat transcript without losing the live session#192
dnouri merged 1 commit intomasterfrom
write-file

Conversation

@dnouri
Copy link
Copy Markdown
Owner

@dnouri dnouri commented Apr 17, 2026

Saving a chat buffer with C-x C-w or C-x C-s ought to do the obvious thing: write a Markdown transcript to disk. It should not silently retarget the live pi session, confuse toggle or resume, or make Emacs forget which chat buffer belongs to which conversation.

This change makes transcript saving behave that way. A saved chat buffer keeps its chat mode and read-only contract, and the live session continues to belong to its original project or named session. Session lookup now uses stable session identity rather than whatever file the buffer happens to be visiting, so project session discovery, toggle, and related commands keep finding the same conversation after a manual save.

The documentation now explains the manual transcript workflow in those user terms, and the tests exercise the behavior directly, including named sessions, project-root sessions saved from subdirectories, and the ordinary write-file and save-buffer flows.

Addresses #185 in part.

Saving a chat buffer with C-x C-w or C-x C-s ought to do the obvious thing: write a Markdown transcript to disk.  It should not silently retarget the live pi session, confuse toggle or resume, or make Emacs forget which chat buffer belongs to which conversation.

This change makes transcript saving behave that way.  A saved chat buffer keeps its chat mode and read-only contract, and the live session continues to belong to its original project or named session.  Session lookup now uses stable session identity rather than whatever file the buffer happens to be visiting, so project session discovery, toggle, and related commands keep finding the same conversation after a manual save.

The documentation now explains the manual transcript workflow in those user terms, and the tests exercise the behavior directly, including named sessions, project-root sessions saved from subdirectories, and the ordinary write-file and save-buffer flows.
@dnouri dnouri merged commit 002d0e0 into master Apr 17, 2026
11 checks passed
@dnouri dnouri deleted the write-file branch April 17, 2026 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant