Skip to content

feat(tui): load unlimited history and expose retention settings - #26

Merged
wendaining merged 5 commits into
masterfrom
feat/issue-25-history-retention
Sep 13, 2026
Merged

wendaining merged 5 commits into
masterfrom
feat/issue-25-history-retention

Conversation

@wendaining

Copy link
Copy Markdown
Owner

Changes

The history TUI previously truncated browsing and search results at 2,000 blocks. Load all matching records, following the issue's follow-up comment, while preserving explicit limits for other query callers.

Add a Retention category to recall config with editable output retention days (0 keeps output forever) and an Auto prune toggle. Changes use the existing atomic configuration store; cleanup runs when history opens and retains command records. Also prevent timestamp overflow for very large retention windows and document the controls in English and Chinese.

Validation

  • Linux: cargo test passed (111 unit tests and 5 integration tests).
  • Regression coverage includes more than 2,000 results across browsing, command/output searches, and short-term searches; retention input validation and persistence; large retention windows; and PTY editing, toggling, and alternate-screen restoration.
  • cargo fmt, cargo clippy --all-targets, and git diff --check passed.
  • macOS and Windows runtime validation remains for CI; the Linux run does not execute Windows ConPTY tests.

Closes #25

@wendaining
wendaining merged commit 296e6b3 into master Sep 13, 2026
@wendaining
wendaining deleted the feat/issue-25-history-retention branch September 13, 2026 05:59
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.

feat(tui): 提高或支持配置历史记录加载上限,并在 recall config 中增加自动清理配置项

1 participant