feat: add forge conversation list --all and --since flags to list all and / or recent conversations on the machine#3302
Conversation
Add cross-workspace conversation listing and date range filtering to `forge conversation list` and `forge list conversation` commands. Usage: forge conversation list --all # all workspaces forge conversation list --since 1w # current workspace, last week forge conversation list --all --since 3d # all workspaces, last 3 days forge list conversation --all --porcelain # machine-readable The --all flag queries conversations across all project directories (bypasses workspace_id filter). The --since flag accepts durations like 1h, 30m, 3d, 1w, 1M, 1y and filters by updated_at/created_at. Implementation: - Add get_all_workspaces_conversations() to ConversationRepository trait, threaded through repo/services/app/API layers - Add SinceDuration value type with FromStr parser - 22 new tests covering both flags and duration parsing - All CI checks pass: clippy -D warnings, string safety lints, fmt
|
|
|
Action required: PR inactive for 5 days. |
|
Just following up to see if there is interest in this I can update the merge if needed. |
|
Action required: PR inactive for 5 days. |
|
This is still actually useful and I'd appreciate if it got a look |
|
Action required: PR inactive for 5 days. |
rajpratham1
left a comment
There was a problem hiding this comment.
This is a well-scoped feature that consistently adds --all and --since support across the CLI, service, repository, and UI layers. The implementation appears complete, includes comprehensive parsing tests, and preserves existing behavior for users who don't use the new flags.
Adds ability to list conversations across workspaces and filter by date ranges
forge conversation listandforge list conversationcommands.Motivation
forge conversation listis scoped to the current workspace by design. There is no way to see conversations from all project directories, which makes it impossible to answer "what was I working on recently?" withoutcd-ing into every project. This PR adds that capability with minimal, backward-compatible changes.Usage
The --all flag queries conversations across all project directories (bypasses workspace_id filter). The --since flag accepts durations like 1h, 30m, 3d, 1w, 1M, 1y and filters by updated_at/created_at.
Implementation:
Design Notes
--porcelainflag--sincefiltering is client-side — the repo layer returns conversations ordered byupdated_at DESCwith the existingmax_conversationslimit, then--sincefilters in the UI layer. This keeps the repo API simple and the filtering logic co-located with display logic.PR Checklist
upstream/maincargo +nightly fmt --allpassescargo +nightly clippy -- -D warningspassesstring_slice,indexing_slicing,disallowed_methods)