[Feature Request] Support Stateful / Multi-turn Conversational Code Review & Incremental Reviews #318
Replies: 1 comment
-
|
Hi @lwintermelon, thank you for this thoughtful and well-structured proposal! 🙏 You've captured the iterative nature of real-world code review very well, and these are exactly the kinds of scenarios we think a lot about. To share some context on our current design philosophy: That said, we completely agree with the value you're pointing to. As OpenCodeReview grows, we do believe we'll want to offer these capabilities — cross-session context, stateful/incremental reviews, and even collaborative Web views — provided in an elegant architecture within OCR itself, without compromising the purity of the core. So thank you for the proposal — I believe this feature is on its way. Stay tuned! 🚀 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem / Motivation
Currently,
open-code-reviewprovides high-precision, deterministic line-level code reviews. However, the current review workflow is primarily stateless.In real-world software engineering, code review is inherently an iterative and conversational process:
Similar functionality is already implemented in other ecosystem plugins. For instance, amarula/reviewai-gerrit-plugin maintains session state and review history for multi-turn discussions on Gerrit changes (though it relies on LangChain).
Feature Proposal
We propose adding Stateful Session & Multi-turn Conversation Support to
open-code-review.Key Architectural Considerations:
While tools like
reviewai-gerrit-pluginuse LangChain to manage context,open-code-reviewdoes not need to adopt LangChain. A lightweight, Go-native session store (e.g., local file/sqlite-based history caching or PR/MR comment history parser) would align much better withopen-code-review's high performance and deterministic engineering design.Ability to append follow-up discussions and track conversation history bound to specific PRs/MRs or Commit ranges.
Combine the existing AST/Diff analysis with historical session memory to review only new/changed code while maintaining global awareness of previous review comments.
Use Case Example
ocr reviewgenerates inline comments on PR.commit v2.ocrreviews the delta, checks if Round 1 comments were addressed, and resolves fixed threads automatically.Proposed Implementation Ideas
LocalFile,GitNote, or platform-native metadata) to savesession_idand message history.ocr chat --session <id>or bot mentions in PR comments to trigger follow-up replies.Beta Was this translation helpful? Give feedback.
All reactions