Repository navigation
chore: Avoid duplicate compile result persistence - #1548
Conversation
Capture the current non-force indeterminate response shape and prove duplicate normal-result persistence writes byte-identical JSON before removing the duplicate storage path.
Route compile result shaping and persistence through a single recorder so execution results are stored from the controller timing path and the use case no longer writes the same stored result a second time.
Rename the byte-stability test so it describes the post-change invariant instead of the removed duplicate writer shape.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (3)
📒 Files selected for processing (9)
📝 WalkthroughWalkthroughThis PR centralizes compile result persistence into a new ChangesCompile result session recording refactor
Estimated code review effort: 3 (Moderate) | ~30 minutes Sequence Diagram(s)sequenceDiagram
participant CompileController
participant CompileUseCase
participant CompileResultSessionRecorder
participant CompileResponseFactory
participant CompileSessionResultStore
CompileController->>CompileController: TryCompileAsync detects validation/scene-change failure
CompileController->>CompileResultSessionRecorder: RecordCompileResult(result, requestId, forceRecompile)
CompileResultSessionRecorder->>CompileResponseFactory: CreateResponse(result)
CompileResultSessionRecorder->>CompileSessionResultStore: StoreCompileResult(response)
CompileSessionResultStore-->>CompileResultSessionRecorder: stored
CompileResultSessionRecorder-->>CompileController: CompileResponse
CompileUseCase->>CompileUseCase: CompileAsync invokes _executeCompilationAsync
CompileUseCase->>CompileResultSessionRecorder: RecordCompileResponse(response) via StorePreControllerResponseIfNeeded
CompileResultSessionRecorder->>CompileSessionResultStore: StoreCompileResult(response)
Possibly related PRs
Poem A rabbit hops through session state, 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
User Impact
Changes
Verification