Skip to content

Conversation

@hyperwd
Copy link
Contributor

@hyperwd hyperwd commented Oct 29, 2025

  • Add new /zcf-clear command to clean Claude history data
  • Implement history file scanning and deletion using find command
  • Add JSON project history backup and cleanup functionality
  • Support both conservative and thorough cleaning modes
  • Include user confirmation and preview functionality
  • Add complete i18n support (zh-CN/en)
  • Follow existing command structure and project conventions

Closes #148

Description

Brief description of changes

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Testing

  • Tests added/updated
  • All tests pass
  • Coverage maintained

Checklist

  • Code follows style guidelines
  • Self-review completed
  • Documentation updated
  • No new warnings introduced

- Add new /zcf-clear command to clean Claude history data
- Implement history file scanning and deletion using find command
- Add JSON project history backup and cleanup functionality
- Support both conservative and thorough cleaning modes
- Include user confirmation and preview functionality
- Add complete i18n support (zh-CN/en)
- Follow existing command structure and project conventions
@codecov
Copy link

codecov bot commented Oct 29, 2025

Codecov Report

❌ Patch coverage is 15.61181% with 200 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/utils/history-clearer.ts 16.31% 118 Missing ⚠️
src/commands/clear.ts 3.75% 77 Missing ⚠️
src/cli-setup.ts 68.75% 5 Missing ⚠️

📢 Thoughts on this report? Let us know!

@hyperwd
Copy link
Contributor Author

hyperwd commented Oct 29, 2025

  • 对于history文件的清理与 claude history clear命令行为一致
  • 对于claude.json清理,会安全的清理projects的history字段,解决claude.json体积变大,影响claude性能
image image

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.

能否使用zcf清理claude中全部历史会话

1 participant