feat: add forge conversation list --all and --since flags to list all and / or recent conversations on the machine#3302
Open
ahundt wants to merge 2 commits intotailcallhq:mainfrom
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
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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)