Repository navigation
Conversation
|
Will we always be able to see all conversations, perhaps as an option? |
|
@J3m5 added an |
Add directory filtering to the resume picker - by default, conversations are filtered to only show those from the current working directory. Add --all flag to 'codex resume' to show all conversations across all directories (restores previous behavior). Changes: - Add cwd_filter parameter to list_conversations() and get_conversations() - Add matches_cwd_filter() to check conversation working directory - Add --all flag to ResumeCommand to control filtering behavior - Update TUI to conditionally filter based on flag This makes it easier to work with multiple projects without seeing unrelated conversation history from other directories. Signed-off-by: Lachlan Donald <[email protected]>
|
Great work on this PR! 🎉 I noticed that while the picker now filters by directory, Issue: This doesn't fully address the use case described in #4545 - users working across multiple projects often want Suggested change: // In lib.rs, around line 399-407
let cwd_filter = if cli.resume_all {
None
} else {
Some(config.cwd.as_path())
};
match codex_core::RolloutRecorder::list_conversations(
&config.codex_home,
1,
None,
INTERACTIVE_SESSION_SOURCES,
cwd_filter, // Apply directory filter
)New behavior:
This would make the PR fully resolve both #4342 and #4545. Happy to submit this as a follow-up PR if you prefer, or you can include it here! |
|
Happy to include it, will add shortly @Wangnov. |
|
Thanks for the contribution, and apologies for the slow response. We've received many PRs, and we don't have the bandwidth on the codex team to review all of them. We've updated our contribution guidelines to clarify that we're currently accepting contributions for bugs and security fixes, but we're not generally accepting new features at this time. We need to make sure that all new features compose well with both existing and upcoming features and fit into our roadmap. If you would like to propose a new feature, please file or upvote an enhancement request in the issue tracker. We will generally prioritize new features based on community feedback. |
Addresses #4342. This changes the default behavior of
codex resumeto what users typically expect - showing only conversations from the current directory rather than all conversations system-wide.Summary
Filter the resume picker to show only conversations from the current working directory by default, with an
--allflag to restore the previous behavior of showing all conversations.Motivation
When working on multiple projects,
codex resumecurrently shows all conversations from all directories, making it difficult to find relevant sessions. This change makes the resume picker context-aware, showing only conversations from the current project directory by default.Changes
cwd_filterparameter tolist_conversations()andget_conversations()to filter by working directorymatches_cwd_filter()function that checks the SessionMeta cwd field against the filter path--allflag tocodex resumecommand to show all conversations across all directories (restores previous behavior)Nonefor backward compatibilityUsage
Breaking Change
This changes the default behavior of codex resume - it now filters to the current directory by default. Users who want to see all conversations can use the new --all flag.
I have read the CLA Document and I hereby sign the CLA.