-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
type: featureBrand new functionality, features, pages, workflows, endpoints, etc.Brand new functionality, features, pages, workflows, endpoints, etc.
Description
Problem
A quick in-terminal recap of a given context can be useful for various workflows.
Currently there is no built-in way to print conversation history inline:
/conversationfocuses a session but does not display prior messages/dumpexports to JSON/HTML, which requires leaving the CLI to review.
Proposal
Introduce new command which prints last N messages for the given conversation:
/history [UUID] [N|full] [--role user|assistant|tool|system]
Usage examples
/history # default number of messages for current conversation
/history full # all messages
/history UUID 42 # up to 42 messages for conversation ID
/history --role user # default number of messages posted by user
Output example
[assistant] Summarized prior step...
---
[user] Please refactor X and add tests for Y.
---
[assistant] Plan: 1) Modify foo.ts... 2) Add jest tests...
Options / configuration
history.defaultCount(default20)history.maxCounthard cap (default200) to protect latencyhistory.includeToolByDefault(defaultfalse)
Behavior details
- Works with any conversation ID (defaults to current).
- Warning displayed if none is focused (“No active conversation. Use
/conversationto select one.”) - If
N>totalmessages, print all available (bounded bymaxCount?) Roledefaults toall(colorized role headers?)- When the history is compacted via
/compact,/historyprints the post-compaction content - Never execute tools or replays messages: read-only rendering
Limits & truncation
- Truncate single message body if greater
history.truncateCharswith[...] - Tool payloads default to stubs
Security & privacy
- Do not include secrets from env masking or provider keys (same masking rules as
/info)
Complementary with #1557
/historyprovides on-demand inline review at any time for various UUID- Handy for quickly comparing different work sessions
- Usable in scripts and CI logs
Metadata
Metadata
Assignees
Labels
type: featureBrand new functionality, features, pages, workflows, endpoints, etc.Brand new functionality, features, pages, workflows, endpoints, etc.