Skip to content

feat: add --start-time / --end-time to vchat history command#4

Open
aviky-2 wants to merge 1 commit into
xiangruiai:mainfrom
aviky-2:feat/history-date-filter
Open

feat: add --start-time / --end-time to vchat history command#4
aviky-2 wants to merge 1 commit into
xiangruiai:mainfrom
aviky-2:feat/history-date-filter

Conversation

@aviky-2

@aviky-2 aviky-2 commented May 18, 2026

Copy link
Copy Markdown

Summary

The underlying get_chat_history() function in vchat_core already supports start_time and end_time parameters, but the CLI never exposed them. For chats with 10k+ messages, --asc -n 5000 returns only the oldest 5000 messages, cutting off recent data.

Changes

  1. Added --start-time and --end-time CLI arguments to vchat history (format: YYYY-MM-DD or YYYY-MM-DD HH:MM)
  2. Pass them through to get_chat_history() in cmd_history

Usage

# Get today's messages in chronological order
vchat history "群名" -n 5000 --asc --start-time "2026-05-18"

# Get a specific date range
vchat history "群名" --asc --start-time "2026-05-15" --end-time "2026-05-18"

Closes #1

The underlying get_chat_history() already supports date filtering, but
the CLI never exposed it. For chats with 10k+ messages, `--asc -n 5000`
would return only the oldest messages — users couldn't scope to a single
day without pulling all messages.

Now users can:
  vchat history "群名" -n 5000 --asc --start-time "2026-05-18"

Closes xiangruiai#1

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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.

vchat history: CLI 缺少 --start-time / --end-time 参数,大群拉不到最新消息

1 participant