Repository navigation
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughThe image-insert test passes the editor directly to the insertion call instead of casting it to Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to The changes are limited to editor test setup, with no remaining merge-blocking concern. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 1 system. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
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 |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Current insertion-range callback passed in the outside-project cases — swaps the removed
insertPos: 4forgetInsertionRange: () => ({ from: 4, to: 4, requestOrder: 1 }), matchingRichMarkdownImageInsertionRangeand the shape already used by the other cases in this file. - Unnecessary cast dropped — the
editorWithRunResulthelper already returns anEditor, soeditor as neverbecomeseditoragainst theeditor: Editorparameter.
Test-only fixture correction that restores typechecking after the API migration; no assertions or production code change. The collapsed from === to === 4 range preserves the previous insertion position, so the existing insertContentAt and access assertions still pin real behavior. Verified locally: pnpm test src/renderer/src/components/editor/rich-markdown-image-insert.test.ts (7/7 pass) and pnpm tc:web both pass.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Reviewed the delta since the prior pullfrog review (975c0c5563) — commit bcd6bdc560, which adds the missing openFiles field to three editor store mocks.
openFilesadded to three store mocks —rich-markdown-async-image-paste.test.ts,rich-markdown-async-image-table.test.ts, anduseLocalImagePick.test.tsxnow exposeopenFiles: []from the mockeduseAppStore.getState(), matching the fieldinsertRichMarkdownImageFromPathreads atrich-markdown-image-insert.ts:74.
The three shards failed because the mock omitted openFiles, so state.openFiles.find(...) threw; the field addition is the minimal fixture correction and no assertion is changed or weakened. Verified locally: all four affected files pass (64 tests).
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
|
The two CI repairs are now on main through @Jinwoo-H’s #25351 and #25357. I checked main at |

ELI5
Three editor image test files on main have incomplete store mocks. Image imports fail before running, so 38 tests fail and block other pull requests.
What Changed
Add the existing
openFilesfield to three editor store mocks, so image imports can inspect the active file. Remove an unnecessary editor cast in the outside-project import test.Why
These tests need the same inputs as the editor. Updating the fixtures preserves all existing import, access, insertion, table and cancellation assertions and requires no application change.
Linked Issue
Follows #24489 and @Jinwoo-H’s callback correction in #25351; unblocks #24768 and #25326.
Visual Proof
N/A — only four test fixtures change.
Testing
On macOS, the full web typecheck passes with dependencies matching the lockfile. Reproduced all 38 failures from the three failed CI shards locally: 19 passed before the mock correction, and all 57 pass afterward. The separate seven image-insertion tests also pass. Lint, formatting and all changed-code quality checks pass for the complete four-file change.
Review
Independently reviewed the store access and the exact mock-only correction. No assertions were removed or weakened. The original typecheck failure is already corrected on main by #25351; the local tests qualify the remaining mock changes.
Agent skill upstream boundary
Notes
The existing tests cover local files, project files, and SSH-owned files. This change has no application, platform, or remote protocol impact. CI covers the broader repository checks; no application build is needed for these fixture corrections.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)