feat: add sessions read command to show full session history#20
Open
zerone0x wants to merge 1 commit intoopenclaw:mainfrom
Open
feat: add sessions read command to show full session history#20zerone0x wants to merge 1 commit intoopenclaw:mainfrom
zerone0x wants to merge 1 commit intoopenclaw:mainfrom
Conversation
Closes openclaw#16 Adds `acpx <agent> sessions read` as a user-friendly command to read all session history entries without resuming interactively. Complements the existing `sessions history` command (which defaults to last 20 entries) by defaulting to showing all entries. Supports `--tail <N>` to restrict output to the last N entries. Updates `printSessionHistoryByFormat` to treat limit === 0 as "show all entries". Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #16
Adds
acpx <agent> sessions readas a user-friendly command to read the full session history without resuming the agent interactively.Problem
Users asked for a way to see what the agent already did (
sessions readorsessions history --tail). Whilesessions historyexists, it defaults to the last 20 entries and has a less intuitive name for the "read my session" use case.Changes
sessions read [name]subcommand that shows all history entries by default--tail <N>flag to restrict output to the last N entries (mirrors thetailUX from the issue)printSessionHistoryByFormatto treatlimit === 0as "show all entries"handleSessionsHistoryhandler — no logic duplicationUsage
🤖 Generated with Claude Code