Repository navigation
Conversation
|
Warning Review limit reached
Next review available in: 19 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📥 CommitsReviewing files that changed from the base of the PR and between 0e01ef63979c239d82ae8da9b8fd4dfe03527f63 and 9e83e6d. 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdds Electron file associations for Markdown formats and captures Markdown paths from operating-system launches, command-line arguments, and macOS open-file events. A main-process bridge queues, authorizes, resolves, deduplicates, and sends documents to the renderer through a new preload IPC subscription. The renderer force-opens the floating terminal and opens each document in the floating workspace. Web APIs expose a no-op equivalent, and tests cover path filtering, queue flushing, authorization failures, and second-instance arguments. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
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.
Actionable comments posted: 5
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: ebae5e65-4a58-45d5-9633-5ca00c8a1e1d
📥 Commits
Reviewing files that changed from the base of the PR and between 8a23618 and 904b3638b759e73f1379ac4a5f1cad69797ce561.
📒 Files selected for processing (14)
config/electron-builder.config.cjssrc/main/index.tssrc/main/startup/os-open-markdown-bridge.test.tssrc/main/startup/os-open-markdown-bridge.tssrc/main/startup/os-open-markdown-paths.test.tssrc/main/startup/os-open-markdown-paths.tssrc/main/startup/single-instance-lock.test.tssrc/main/startup/single-instance-lock.tssrc/preload/api-types.tssrc/preload/index.tssrc/renderer/src/App.tsxsrc/renderer/src/hooks/useIpcEvents.tssrc/renderer/src/lib/floating-terminal.tssrc/renderer/src/web/web-preload-api.ts
Register .md/.mdx/.markdown file associations and route Finder/Explorer "Open With" (cold start argv, second-instance commandLine, and macOS open-file) into a queued main-process bridge that opens the floating workspace and each document via the existing MarkdownDocument open path. Closes stablyai#10138
…y races CodeRabbit: re-check destroyed webContents after await; retry send; re-queue on failure; normalize paths for dedupe; catch renderer async errors.
- Treat unhydrated settings (null) as floating-disabled so cold-start Open With still enables the floating workspace. - Isolate per-document openFile failures so one bad path does not drop the rest of the batch. - Normalize argv paths with platform-specific path APIs and cover dot-segment aliases in tests.
0e01ef6 to
9e83e6d
Compare
|
Superseded by #17906, which shipped this feature — thank you, and sorry this sat for so long. You picked the right target. The floating workspace is what the issue asked for and what shipped, and you found the correct main-process primitives yourself: What changed in the ~6 weeks this was open, for context rather than criticism:
One thing worth knowing for future work here, because it's a genuine trap and not something you could reasonably have predicted: putting Thanks again for the careful work. |
|
Thank you for writing this up, and for the co-author credit on #17906. You are right that the floating workspace was the right target, and the later pull-handler / additive Windows-association notes are useful context I could not have predicted from the July codebase. Closing the fork portfolio mirror as well. |
Summary
.md/.mdx/.markdown(electron-builderfileAssociations).process.argv(Windows/Linux)open-file(early, before ready)commandLinewhen Orca is already runningMarkdownDocument+openFile).Fixes #10138
Test plan
.md→ Orca opens floating workspace with that file.md→ focuses Orca and opens the fileELI5
Orca can be chosen as Open With for .md/.mdx/.markdown files. OS open (cold start, second instance, macOS open-file) opens those files in the floating workspace markdown viewer.