-
-
Notifications
You must be signed in to change notification settings - Fork 136
Missing feature: restore conversation history from transcript is not supported #449
Description
When resuming an existing session (either via M-x agent-shell + session picker, or M-x agent-shell-resume-session), the buffer starts empty. The agent correctly retains its context server-side, but there's no way to see what was discussed in the previous session.
This makes the resume UX difficult in practice, even though the session picker shows titles and timestamps, once you're in the resumed buffer you have no way to review what was previously said or verify you're continuing from the right point.
I quickly looked into the code and found:
- I suspect that ACP has no mechanism to fetch previous messages (
session/resumedoes not return them) - agent-shell already saves transcripts to
.agent-shell/transcripts/as Markdown — but the file name is just a timestamp, and the header contains no session ID, so there is no way to match a transcript to a session on resume - Claude Code also stores full conversation history locally as JSONL at
~/.claude/projects/<project>/<session-id>.jsonl, keyed by session ID, which could serve as an alternative source
A possible approach: include the session ID in the transcript header (a YAML front matter block would be idiomatic, but adding it to the existing Markdown header is fine too). With that link in place, restoring on resume becomes straightforward: look up the transcript by session ID and load it into the buffer — possibly with older exchanges collapsed by default to keep things clean.
The code already has a comment acknowledging this gap (agent-shell does not support restoring sessions from transcript).
Do you already have plans / ideas how you would like to have it implemented in the future? Do you welcome PR on this or do you prefer to first set the first architecture yourself?
Checklist
- I agree to communicate with the author myself (not AI-generated).
- I've read the README's Filing issues section.
- I'm running the latest versions (fill in below).
- agent-shell version: v0.50.1
- acp.el version: 0.11.2
- ACP package (e.g. claude-agent-acp) version: 0.22.2
- Agent CLI (e.g. claude, gemini) version: n/a
- [n/a] For requesting new agent support, I'm including a link to the ACP-capable agent or related ACP package.
- [n/a] For issues, I'm including ACP traffic (as per README).