Skip to content

Add agent-shell-restore-context defcustom#605

Open
nhojb wants to merge 1 commit into
xenodium:mainfrom
nhojb:f/restore-context
Open

Add agent-shell-restore-context defcustom#605
nhojb wants to merge 1 commit into
xenodium:mainfrom
nhojb:f/restore-context

Conversation

@nhojb
Copy link
Copy Markdown
Contributor

@nhojb nhojb commented May 26, 2026

Currently when restoring a session you can choose a minimal resume or a full load via agent-shell-prefer-session-resume.

This PR adds a summary option via a new agent-shell-restore-context defcustom. The options are:

  • minimal: Equivalent to agent-shell-prefer-session-resume: t
  • full: Equivalent to agent-shell-prefer-session-resume: nil
  • summary: Loads the full session (when available), but renders only the first prompt and last text response.

The idea is that summary gives you enough context about the session, without needing to restore the entire conversation and tool calls.

Here's an example:

8oar1X67TfB

Checklist

  • I agree to communicate (PR description and comments) with the author myself (not AI-generated).
  • I've reviewed all code in PR myself and will vouch for its quality.
  • I've read and followed the Contributing guidelines.
  • I've filed a feature request/discussion for a new feature.
  • I'm making visual changes, so I'm including screenshots so you can view and discuss.
  • I've added tests where applicable.
  • I've updated documentation where necessary.
  • I've run M-x checkdoc and M-x byte-compile-file.

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