feat: Add ability to view specific history by ID or path#7
feat: Add ability to view specific history by ID or path#7
Conversation
- Refactor `ContextManager::show_history` to extract printing logic - Implement `ContextManager::view_history` to search and display contexts - Update CLI handler to call `view_history` when `ask history` has arguments - Supports partial ID matching, exact path matching, and `.` for current directory
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This PR adds the ability to view detailed history for a specific context using the
ask historycommand.Previously,
ask historyonly listed all available contexts. Now, users can provide an argument to view the messages within a specific context.Supported arguments:
ask history f53b(matches context ID starting withf53b)ask history /path/to/projectask history .(resolves to the current working directory)If multiple contexts match a partial ID, the command lists the matches and asks for more specificity. If no match is found, an error message is displayed.
Technical changes:
src/context/manager.rsto reuse printing logic (print_entry) betweenshow_history(current context) andview_history(any context).src/cli/mod.rsto dispatch toview_historywhenargs.history_subcommandis true andargs.queryis not empty.PR created automatically by Jules for task 4279561644893330610 started by @insign