Skip to content

refactor(renderer): group file and document feature owners - #40745

Merged
nwparker merged 3 commits into
mainfrom
module-layout-v2/renderer-file-document-9a08
Nov 10, 2026
Merged

nwparker merged 3 commits into
mainfrom
module-layout-v2/renderer-file-document-9a08

Conversation

@nwparker

@nwparker nwparker commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Keep renderer file and document behavior with the feature that owns it, so callers can find and import the implementation directly.

What Changed

  • Move 42 modules into file access, drag/drop, search, OS opening, document preview, markdown, text search and path-display owners. Update callers, mocks, lazy imports and active metadata directly.
  • Move the complete file explorer tree result contract into its existing type owner; all runtime hook bodies and eager imports remain unchanged.
  • Import UUID and keyboard matching definitions from their concrete owners; remove redundant forwarding surfaces without compatibility aliases.
  • Retire complete prohibited cases in touched consumers and 17 whole suites/registration helpers, including the orphaned editor recovery registrar whose caller was removed with its suite. Preserve the remaining complete registrations and fixture initialization. No replacement tests or assertion surgery.

Why

The renderer library root mixes unrelated features. These cohesive folders put implementation and callers under concrete domains without barrels or forwarding wrappers.

Linked Issue

Internal module-layout cleanup; no new issue.

Visual Proof

N/A — file placement and imports change without a rendered layout or interaction change.

Testing

  • Affected suites: 41 files, 141 tests passed, with three existing skips.
  • Renderer and Node typechecks passed; the final changed check also covers all three desktop TypeScript projects.
  • File explorer contract consumers: 3 suites, 4 tests passed.
  • Normal commit hooks passed. All 40 formatter changes preserve their complete source ASTs.
  • Earlier changed checks exposed an orphaned registration helper and a formatter-expanded 303-line hook. The helper was retired whole with its meaningful lost alarms recorded; the complete hook result contract moved to its existing defining type owner. Both obsolete runs were stopped and carry no related-unit pass credit.
  • Final ORCA_BACKGROUND_LAUNCH=1 pnpm check:changed: all 39 checks passed (517.9s), including related unit tests and all three desktop TypeScript projects. Full hosted CI passed, including all 12 unit shards, changed E2E specs and both SSH Docker lanes. Mobile, Headless E2E and WSL workflows passed.

Risk

Level: Medium. File-owner routing, eager module initialization, dynamic imports and fixture isolation are the main risks. Existing implementations, state identities and initialization order are preserved. A plain revert restores the prior organization.

Whole mixed cases lose meaningful alarms alongside prohibited checks, including paired-host editor restart/provenance recovery, file routing/drop refusals and lifecycle races. These losses are documented; the remaining tests are not claimed as equivalent replacements.

Cross-platform path behavior, remote host routing and folder-workspace support stay with the same implementations. No agent/provider protocol, credential policy, allocation or polling logic changes. Local validation runs on macOS; conditional hosted platform lanes retain their actual passed or skipped status.

Review

Two independent prospective source/boundary audits accepted the full candidate. Actual application, whole formatter ASTs, retained cases, owner contacts and orphan-helper retirement were accepted by independent reviewers. The rebase preserves the complete reviewed source trees; actual-parent and final type-owner receipts are accepted, with immutable root replays passed. Planning and detailed evidence remain local and ignored.

Agent skill upstream boundary

  • Not applicable: no upstream skill-installer material is copied or translated.

Checklist

  • Cohesive renderer file/document ownership scope
  • Changes, purpose and risk explained
  • No visual change
  • Cross-platform, remote and folder-workspace impact considered
  • Final local gates and required hosted CI passed

Latest-main integration preserves 55 incoming entries: plugin typography owners, terminal startup/env and oracle visibility changes, and SSH fixtures. Both independent latest-main supplements accepted the exact combined tree; all three desktop typechecks passed on that tree. Hosted CI remains attached to its recorded earlier source tree; no new-tree CI pass is inferred. Inherited forwarding exports and a stale test mock are recorded for subsequent cleanup.

@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Walkthrough

This pull request mostly updates renderer imports to new nested library paths under lib/files, lib/text-search, lib/path-display, lib/browser/documents, and lib/workspace/paths. It also moves one empty open-in constant and one file-explorer tree result type to shared modules. Many test files or test cases were removed. CI reliability-gate selectors, shard timing records, and baseline files were updated to match the new paths and removed tests.

Merge Risk: Low · up to 97d09

Core behavior appears unchanged, but the removed tests leave important file, editor, and draft-recovery regressions harder to detect. Restore or replace the relevant coverage before merging, and complete hosted CI.

Pre-merge checks: Passed 5

Check name Status Explanation
Title check Passed The title clearly summarizes the main change: grouping renderer file and document features under their owning domains.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description covers the change, purpose, visual impact, testing, risk, review, and checklist. It states that no new issue was created, but does not provide a linked issue number.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 50 files. (193 skipped: 4 unsupported, 189 over the file limit.)

Finishing Touches

Generate docstrings

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

LanguageTool

config/react-compiler-bailout-baseline.txt

LanguageTool could not check every text chunk; analysis is incomplete

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.

Share

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick comments: 4

src/renderer/src/components/editor/document-images/useLocalImageSrc.test.ts: 1

18-18: Trivial · Maintainability & Code Quality · Quick win

Restore the retired useLocalImageSrc regression tests, or replace them.

This change removes the tests for prewarm adoption, failed-read retry, and stale invalidated reads. It also removes the whole runtime-owner suite, which checked that an SSH-generation or worktree change triggers a fresh image read and a new preview URL. The hook is unchanged in this PR, so these removals only reduce coverage. Nothing in the supplied context shows other tests for these cache and owner-change paths.

A stale image after an owner change is a user-visible bug. Keep these tests. Update only their import paths.

src/renderer/src/components/terminal-pane/input/file-drop/terminal-drop-runtime-catalog-owner.test.ts: 1

142-142: Trivial · Maintainability & Code Quality · Quick win

Restore the success-path cases for runtime terminal drops.

The removed it.each(['worktree', 'folder', 'ssh']) test was the only test of successful, owner-matched drops. It checked that handleTerminalFileDrop and handleInternalTerminalFileDrop resolve the runtime owner's worktree root and do not choose a local duplicate. A search for both handlers in test files found only this file.

The surviving it.each covers refusals only. If the owner lookup or host matching is later changed to be too strict, nothing fails. If it is changed to pick a local duplicate, only the refusal cases are checked.

Keep the success cases. Update only the import path.

src/renderer/src/hooks/editor-external-watch-overflow.test.ts: 1

18-18: Trivial · Maintainability & Code Quality · Quick win

Restore the overflow-handling tests for editor-external-watch-overflow.

This change removes every behavioral test in this file for the overflow handler. The removed tests covered:

  • normal-overflow probing and tombstone clearing;
  • storm-overflow reloads of clean tabs;
  • runtime-owner filtering;
  • the 128-path probe batch boundary.

The handler is unchanged in this PR. Without these tests, an off-by-one in batching or a wrong deleted/reload decision would go undetected. Both can mark a live file as deleted or leave stale editor content. Keep the tests. Update only the mock path, as done on this line.

src/renderer/src/lib/workspace/creation/worktree-creation-structured-session-lifecycle.test.ts: 1

8-8: Trivial · Maintainability & Code Quality · Quick win

Retain coverage for the executeWorktreeCreation draft handoff and retry paths.

This change removes four lifecycle tests:

  • the slow, refused, and background live-draft handoff cases;
  • the rich-message retry after layout refusal;
  • the unresolved-host pending-composer case;
  • the late legacy preparation error case.

PendingNativeChatCreation.test.tsx still covers the slow and refused draft write. It does so through moveNativeChatComposerDraft. It does not call executeWorktreeCreation and has no background (activeView: 'tasks') variant. Nothing visible covers user-input loss when creation completes in the background or the layout is refused. These paths guard against losing unsent text and attachments.

Restore the removed tests, or move them to a surviving suite. Update only the import paths.

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 893b9e10-5004-429a-b3ef-20c685980e58
Commits

Reviewing files that changed from the base of the PR and between fedb28b and 97d096e.

Files selected for processing: 271

  • config/react-compiler-bailout-baseline.txt
  • config/reliability-gates.jsonc
  • config/scripts/ci/sharding/ci-shard-timings.json
  • config/workspace-record-read-baseline.txt
  • src/renderer/src/app-shell/use-global-keybindings.ts
  • src/renderer/src/components/QuickOpen.selection.test.tsx
  • src/renderer/src/components/QuickOpen.tsx
  • src/renderer/src/components/TerminalSearch.tsx
  • src/renderer/src/components/agent/launch-settings/AgentChatChoiceControls.tsx
  • src/renderer/src/components/browser-pane/assemble-chrome/BrowserFind.tsx
  • src/renderer/src/components/browser-pane/describe-page/browser-artifact-upload.ts
  • src/renderer/src/components/browser-pane/navigate/browser-file-editor-open.test.ts
  • src/renderer/src/components/browser-pane/navigate/browser-file-editor-open.ts
  • src/renderer/src/components/browser-pane/navigate/navigate-browser-page-url.ts
  • src/renderer/src/components/browser-pane/navigate/use-browser-page-navigation-downloads.ts
  • src/renderer/src/components/browser-pane/navigate/workspace-doc-address-submission.ts
  • src/renderer/src/components/browser-pane/workspace-doc/HtmlDocPreview.tsx
  • src/renderer/src/components/browser-pane/workspace-doc/doc-preview-address-edit.tsx
  • src/renderer/src/components/browser-pane/workspace-doc/doc-preview-artifact-share.tsx
  • src/renderer/src/components/browser-pane/workspace-doc/doc-preview-document-actions.test.ts
  • src/renderer/src/components/editor/EditorFileLocationMenuItems.tsx
  • src/renderer/src/components/editor/EditorPanel.tsx
  • src/renderer/src/components/editor/EditorPanelHeaderPath.test.tsx
  • src/renderer/src/components/editor/MonacoGutterContextMenu.tsx
  • src/renderer/src/components/editor/PdfFind.tsx
  • src/renderer/src/components/editor/absolute-tab-placement.test.ts
  • src/renderer/src/components/editor/absolute-tab-placement.ts
  • src/renderer/src/components/editor/combined-diff/browse-files/combined-diff-file-tree-row.tsx
  • src/renderer/src/components/editor/document-images/useLocalImageSrc.test.ts
  • src/renderer/src/components/editor/document-images/useLocalImageSrc.ts
  • src/renderer/src/components/editor/editor-artifact-upload.ts
  • src/renderer/src/components/editor/editor-dropped-file-open.test.ts
  • src/renderer/src/components/editor/editor-dropped-file-open.ts
  • src/renderer/src/components/editor/editor-header-file-rename.test.ts
  • src/renderer/src/components/editor/editor-header-file-rename.ts
  • src/renderer/src/components/editor/editor-panel-host-content-recovery.spec.ts
  • src/renderer/src/components/editor/external-changes/ExternalFileChangeBanner.tsx
  • src/renderer/src/components/editor/external-changes/ExternalFileChangeCompareDialog.tsx
  • src/renderer/src/components/editor/external-changes/editor-restored-tab-conflict-scan.recheck.test.ts
  • src/renderer/src/components/editor/external-changes/editor-restored-tab-conflict-scan.ts
  • src/renderer/src/components/editor/markdown-preview/document-worker/markdown-preview-document-engine.ts
  • src/renderer/src/components/editor/markdown-preview/links/markdown-preview-link-actions.ts
  • src/renderer/src/components/editor/markdown-preview/links/markdown-preview-local-images.ts
  • src/renderer/src/components/editor/markdown-preview/links/markdown-preview-system-link-action.ts
  • src/renderer/src/components/editor/markdown-preview/render-tree/markdown-preview-plugins.ts
  • src/renderer/src/components/editor/markdown-preview/render-tree/use-markdown-preview-components.tsx
  • src/renderer/src/components/editor/markdown-preview/search/markdown-preview-search-offsets.test.ts
  • src/renderer/src/components/editor/markdown-preview/search/markdown-preview-search-word-boundaries.test.ts
  • src/renderer/src/components/editor/markdown-preview/search/markdown-preview-search.test.ts
  • src/renderer/src/components/editor/markdown-preview/search/markdown-preview-search.ts
  • src/renderer/src/components/editor/markdown-preview/surface/MarkdownPreview.link-routing.interaction.test.tsx
  • src/renderer/src/components/editor/markdown/documents/useMarkdownDocuments.navigation.test.ts
  • src/renderer/src/components/editor/markdown/documents/useMarkdownDocuments.ts
  • src/renderer/src/components/editor/markdown/documents/useMarkdownDocuments.watch.test.ts
  • src/renderer/src/components/editor/migrate-restored-editor-file-owner.ts
  • src/renderer/src/components/editor/model-lifetime/buffer-text/editor-buffer-sharing.test.ts
  • src/renderer/src/components/editor/monaco-codebase-search.ts
  • src/renderer/src/components/editor/restored-editor-workspace-runtime-owner.ts
  • src/renderer/src/components/editor/rich-markdown/images/rich-markdown-image-insert.ts
  • src/renderer/src/components/editor/rich-markdown/images/rich-markdown-paste-image.ts
  • src/renderer/src/components/editor/rich-markdown/links/rich-markdown-editor-click-routing.ts
  • src/renderer/src/components/editor/rich-markdown/schema/rich-markdown-extensions.ts
  • src/renderer/src/components/editor/rich-markdown/search/rich-markdown-search-matches-cache.ts
  • src/renderer/src/components/editor/rich-markdown/search/rich-markdown-search.ts
  • src/renderer/src/components/editor/rich-markdown/search/useRichMarkdownSearch.ts
  • src/renderer/src/components/editor/save/bytes/editor-bytes-documents.ts
  • src/renderer/src/components/editor/save/queue/editor-save-disk-precondition.races.test.ts
  • src/renderer/src/components/editor/save/queue/editor-save-disk-precondition.test.ts
  • src/renderer/src/components/editor/save/queue/editor-save-shared-model-dirty.test.ts
  • src/renderer/src/components/editor/save/queue/editor-save-writer-view.ts
  • src/renderer/src/components/editor/save/transforms/editor-final-newline-save.test.ts
  • src/renderer/src/components/editor/use-custom-editor-outside-merge.ts
  • src/renderer/src/components/editor/use-editor-group-file-drop-owner.ts
  • src/renderer/src/components/editor/use-monaco-editor-mount.ts
  • src/renderer/src/components/editor/use-quick-open-history-visit.ts
  • src/renderer/src/components/editor/useEditorPanelContentState.test.tsx
  • src/renderer/src/components/editor/useEditorPanelFileContentLoader.ts
  • src/renderer/src/components/editor/useEditorPanelFloatingTabContentState.test.tsx
  • src/renderer/src/components/editor/useEditorPanelHostUnresolvedContentState.test.tsx
  • src/renderer/src/components/editor/useEditorPanelVisibilityContentState.test.tsx
  • src/renderer/src/components/file-actions/OpenInContextSubmenu.tsx
  • src/renderer/src/components/native-chat/attachments/chips/NativeChatImageAttachmentPreview.tsx
  • src/renderer/src/components/native-chat/attachments/intake/NativeChatPaneFileDropSurface.tsx
  • src/renderer/src/components/native-chat/attachments/intake/native-chat-composer-drop-scope.test.tsx
  • src/renderer/src/components/native-chat/attachments/intake/native-chat-composer-workspace-file-drop.test.tsx
  • src/renderer/src/components/native-chat/attachments/intake/native-chat-external-attachments-destination.test.tsx
  • src/renderer/src/components/native-chat/attachments/intake/native-chat-local-attachment-drop.ts
  • src/renderer/src/components/native-chat/attachments/intake/native-chat-pane-file-drop.ts
  • src/renderer/src/components/native-chat/attachments/intake/native-chat-session-attachment-drop.ts
  • src/renderer/src/components/native-chat/attachments/intake/use-native-chat-external-attachments.test.tsx
  • src/renderer/src/components/native-chat/attachments/intake/use-native-chat-external-attachments.ts
  • src/renderer/src/components/native-chat/attachments/intake/use-native-chat-workspace-file-drop.ts
  • src/renderer/src/components/native-chat/composer/pickers/native-chat-skill-discovery-context.ts
  • src/renderer/src/components/native-chat/composer/pickers/use-native-chat-mention-files.ts
  • src/renderer/src/components/native-chat/drafts/native-chat-composer-draft-image-check.ts
  • src/renderer/src/components/native-chat/drafts/native-chat-draft-attachment-staging.ts
  • src/renderer/src/components/native-chat/links/actions/native-chat-link-target-actions.ts
  • src/renderer/src/components/native-chat/media/images/NativeChatImageAttachments.tsx
  • src/renderer/src/components/native-chat/media/images/NativeChatMarkdownImage.tsx
  • src/renderer/src/components/native-chat/media/visuals/NativeChatInlineVisual.tsx
  • src/renderer/src/components/native-chat/media/visuals/use-native-chat-visual-document.ts
  • src/renderer/src/components/native-chat/pane/routing/native-chat-tab-directory.ts
  • src/renderer/src/components/native-chat/paste/use-native-chat-pasted-text-file.ts
  • src/renderer/src/components/native-chat/viewport/find/use-native-chat-find-matches.ts
  • src/renderer/src/components/new-workspace/ProjectComboboxRow.tsx
  • src/renderer/src/components/new-workspace/use-composer-file-drag-over.ts
  • src/renderer/src/components/new-workspace/use-new-workspace-composer-file-drop.ts
  • src/renderer/src/components/quick-open-file-history.test.ts
  • src/renderer/src/components/quick-open-file-navigation.ts
  • src/renderer/src/components/quick-open-selection-owner.react.test.tsx
  • src/renderer/src/components/right-sidebar/ai-vault/session-actions/ai-vault-session-path-actions.ts
  • src/renderer/src/components/right-sidebar/file-explorer/content-search/search-match-open.ts
  • src/renderer/src/components/right-sidebar/file-explorer/content-search/useFileSearchRunner.ts
  • src/renderer/src/components/right-sidebar/file-explorer/content-search/useFileSearchScope.ts
  • src/renderer/src/components/right-sidebar/file-explorer/mutations/use-file-explorer-node-commands.ts
  • src/renderer/src/components/right-sidebar/file-explorer/mutations/useFileExplorerDragDrop.ts
  • src/renderer/src/components/right-sidebar/file-explorer/mutations/useFileExplorerImport.remote.test.tsx
  • src/renderer/src/components/right-sidebar/file-explorer/mutations/useFileExplorerImport.ts
  • src/renderer/src/components/right-sidebar/file-explorer/mutations/useFileExplorerInlineInput.ts
  • src/renderer/src/components/right-sidebar/file-explorer/mutations/useFileExplorerRowDrag.ts
  • src/renderer/src/components/right-sidebar/file-explorer/panel/FileExplorer.tsx
  • src/renderer/src/components/right-sidebar/file-explorer/panel/FileExplorerRow.tsx
  • src/renderer/src/components/right-sidebar/file-explorer/panel/FileExplorerVirtualRows.tsx
  • src/renderer/src/components/right-sidebar/file-explorer/panel/file-explorer-row-context-menu.tsx
  • src/renderer/src/components/right-sidebar/file-explorer/selection/file-explorer-selection.ts
  • src/renderer/src/components/right-sidebar/file-explorer/selection/useFileExplorerKeys.ts
  • src/renderer/src/components/right-sidebar/file-explorer/selection/useFileExplorerSelection.ts
  • src/renderer/src/components/right-sidebar/file-explorer/tree/file-explorer-directory-listing.ts
  • src/renderer/src/components/right-sidebar/file-explorer/tree/file-explorer-types.ts
  • src/renderer/src/components/right-sidebar/file-explorer/tree/use-file-explorer-tree-pane-state.ts
  • src/renderer/src/components/right-sidebar/file-explorer/tree/useFileExplorerTree.ts
  • src/renderer/src/components/right-sidebar/source-control/listing/branch-entry-row.tsx
  • src/renderer/src/components/right-sidebar/source-control/listing/entry-context-menu.tsx
  • src/renderer/src/components/right-sidebar/source-control/listing/uncommitted-entry-row.tsx
  • src/renderer/src/components/right-sidebar/source-control/sync/use-status-refresh.ts
  • src/renderer/src/components/settings/appearance/fonts/installed-font-list.ts
  • src/renderer/src/components/settings/general/OpenInMenuSetting.tsx
  • src/renderer/src/components/settings/repository/worktrees/WorktreeSymlinksSection.tsx
  • src/renderer/src/components/settings/terminal/appearance/TerminalAdvancedTypographyControls.tsx
  • src/renderer/src/components/sidebar/CommentMarkdown.tsx
  • src/renderer/src/components/sidebar/project-admission/dialog/useAddRepoServerPathFlow.ts
  • src/renderer/src/components/sidebar/project-admission/drop/sidebar-project-drop.ts
  • src/renderer/src/components/sidebar/project-admission/drop/useSidebarProjectDrop.ts
  • src/renderer/src/components/sidebar/project-admission/host-selection/use-add-repo-windows-drive-refusal.test.tsx
  • src/renderer/src/components/sidebar/project-admission/host-selection/use-add-repo-windows-drive-refusal.tsx
  • src/renderer/src/components/sidebar/project-admission/host-selection/use-add-repo-wsl-host-paths.ts
  • src/renderer/src/components/sidebar/sidebar-feedback/use-feedback-image-drop.test.tsx
  • src/renderer/src/components/sidebar/workspace-actions/open/WorktreeOpenInMenu.tsx
  • src/renderer/src/components/sidebar/workspace-board/projection/use-workspace-board-task-status-sync.ts
  • src/renderer/src/components/sidebar/worktree-list/controls/use-projects-collapse-shortcut.ts
  • src/renderer/src/components/sidebar/worktree-list/navigation/use-keyboard.ts
  • src/renderer/src/components/sidebar/wsl-host-offer.ts
  • src/renderer/src/components/sparse/SparseCheckoutPresetDraftForm.tsx
  • src/renderer/src/components/sparse/SparseDirectoryPicker.tsx
  • src/renderer/src/components/sparse/sparse-directory-entry-input.ts
  • src/renderer/src/components/sparse/sparse-preset-draft.ts
  • src/renderer/src/components/status-bar/workspace-space-breakdown-list.tsx
  • src/renderer/src/components/status-bar/workspace-space-worktree-actions.tsx
  • src/renderer/src/components/tab-bar/EditorFileTab.tsx
  • src/renderer/src/components/tab-bar/EditorFileTabContextMenu.tsx
  • src/renderer/src/components/tab-bar/tab-create-entry-absolute-file.ts
  • src/renderer/src/components/tab-bar/tab-create-entry-action.ts
  • src/renderer/src/components/tab-bar/tab-create-entry-local-path.ts
  • src/renderer/src/components/tab-bar/tab-create-entry-preview.test.ts
  • src/renderer/src/components/tab-group/split-pane-landing-files.tsx
  • src/renderer/src/components/terminal-pane/appearance/windows-terminal-font-weight-notice.tsx
  • src/renderer/src/components/terminal-pane/clipboard/terminal-clipboard-copied-files.ts
  • src/renderer/src/components/terminal-pane/controller/TerminalPaneSurface.tsx
  • src/renderer/src/components/terminal-pane/host-files/terminal-file-editor-target.ts
  • src/renderer/src/components/terminal-pane/host-files/terminal-file-path-mapping.ts
  • src/renderer/src/components/terminal-pane/host-files/terminal-host-workspace-file.ts
  • src/renderer/src/components/terminal-pane/input/file-drop/TerminalPaneHeaderDropSurface.tsx
  • src/renderer/src/components/terminal-pane/input/file-drop/terminal-drop-handler.ts
  • src/renderer/src/components/terminal-pane/input/file-drop/terminal-drop-internal-handler.test.ts
  • src/renderer/src/components/terminal-pane/input/file-drop/terminal-drop-runtime-catalog-owner.test.ts
  • src/renderer/src/components/terminal-pane/input/file-drop/terminal-drop-source-owner.test.ts
  • src/renderer/src/components/terminal-pane/input/file-drop/terminal-drop-upload-report.ts
  • src/renderer/src/components/terminal-pane/input/file-drop/use-terminal-pane-file-drop-owner.ts
  • src/renderer/src/components/terminal-pane/input/keyboard/terminal-keyboard-event-handlers.ts
  • src/renderer/src/components/terminal-pane/input/keyboard/terminal-keyboard-shortcut-matching.ts
  • src/renderer/src/components/terminal-pane/links/files/terminal-file-link-actions.ts
  • src/renderer/src/components/terminal-pane/links/files/terminal-file-open-routing.ts
  • src/renderer/src/components/terminal-pane/links/files/terminal-link-file-open-routing.test.ts
  • src/renderer/src/components/terminal-pane/links/files/terminal-link-handlers.ts
  • src/renderer/src/components/terminal-pane/links/terminal-link-open-beside-source.test.ts
  • src/renderer/src/components/terminal-pane/titles/TerminalPaneHeaderOverlay.test.tsx
  • src/renderer/src/components/worktree-jump/worktree-jump-palette-primitives.tsx
  • src/renderer/src/hooks/composer-drop-failure-toast.ts
  • src/renderer/src/hooks/composer-state/attachment-drop-state.ts
  • src/renderer/src/hooks/composer-state/derived-composer-state.ts
  • src/renderer/src/hooks/editor-external-watch-overflow.test.ts
  • src/renderer/src/hooks/editor-external-watch-overflow.ts
  • src/renderer/src/hooks/use-os-file-drop-owner.ts
  • src/renderer/src/lib/browser/documents/file-preview.ts
  • src/renderer/src/lib/browser/documents/open-html-file-preview.ts
  • src/renderer/src/lib/browser/documents/workspace-doc-address-input.ts
  • src/renderer/src/lib/browser/documents/workspace-file-browser-open-target.ts
  • src/renderer/src/lib/clipboard/clipboard-file-path.ts
  • src/renderer/src/lib/directory-input/directory-path-suggestion-filter.ts
  • src/renderer/src/lib/directory-input/sparse-paths.ts
  • src/renderer/src/lib/directory-path-suggestion-filter.scan-budget.test.ts
  • src/renderer/src/lib/directory-path-suggestion-filter.test.ts
  • src/renderer/src/lib/editor/file-operations/editor-file-operation-owner.ts
  • src/renderer/src/lib/editor/file-operations/execute-open-editor-path-move.ts
  • src/renderer/src/lib/editor/file-operations/rename-file.ts
  • src/renderer/src/lib/files/access/file-owner-runtime-target.ts
  • src/renderer/src/lib/files/access/local-file-access.ts
  • src/renderer/src/lib/files/access/runtime-workspace-file-route.ts
  • src/renderer/src/lib/files/access/user-opened-local-path.ts
  • src/renderer/src/lib/files/artifacts/file-artifact-source-key.ts
  • src/renderer/src/lib/files/drop/browser-attachment-files.ts
  • src/renderer/src/lib/files/drop/drop-skip-reason-copy.ts
  • src/renderer/src/lib/files/drop/drop-temp-copy-failure-copy.ts
  • src/renderer/src/lib/files/drop/native-file-drop-rejection-message.ts
  • src/renderer/src/lib/files/drop/os-file-drop-cancellation-guard.test.ts
  • src/renderer/src/lib/files/drop/os-file-drop-cancellation-guard.ts
  • src/renderer/src/lib/files/drop/os-file-drop-preparation.ts
  • src/renderer/src/lib/files/drop/remote-workspace-drop-test-fixtures.ts
  • src/renderer/src/lib/files/drop/workspace-file-drag-source.ts
  • src/renderer/src/lib/files/drop/workspace-file-drag.ts
  • src/renderer/src/lib/files/open/file-link-open-failure-toast.ts
  • src/renderer/src/lib/files/os-open/external-editor-open-capability.ts
  • src/renderer/src/lib/files/os-open/local-file-manager-label.ts
  • src/renderer/src/lib/files/os-open/local-path-open-guard.ts
  • src/renderer/src/lib/files/os-open/open-in-app-catalog.tsx
  • src/renderer/src/lib/files/os-open/open-in-application-selection.ts
  • src/renderer/src/lib/files/os-open/reveal-in-file-manager.ts
  • src/renderer/src/lib/files/os-open/windows-path-access.ts
  • src/renderer/src/lib/files/search/file-search-result-owner.ts
  • src/renderer/src/lib/files/search/file-search-selection.test.ts
  • src/renderer/src/lib/files/search/file-search-selection.ts
  • src/renderer/src/lib/files/search/quick-open-file-history.ts
  • src/renderer/src/lib/find-query-bounds.test.ts
  • src/renderer/src/lib/keyboard/text-field-shortcut-policy.ts
  • src/renderer/src/lib/link-source-local-open-owner.test.ts
  • src/renderer/src/lib/markdown/remark-autolink-literal-prose-boundary.ts
  • src/renderer/src/lib/markdown/remark-github-callouts.ts
  • src/renderer/src/lib/open-in-application-selection.ts
  • src/renderer/src/lib/os-file-drop-preload-integration.test.tsx
  • src/renderer/src/lib/path-display/path-head-elision.test.ts
  • src/renderer/src/lib/path-display/path-head-elision.ts
  • src/renderer/src/lib/plugin-command-keybindings.ts
  • src/renderer/src/lib/rename-user-named-tab-access.test.ts
  • src/renderer/src/lib/text-search/dom-text-search-highlights.ts
  • src/renderer/src/lib/text-search/find-query-bounds.ts
  • src/renderer/src/lib/text-search/text-match-ranges.ts
  • src/renderer/src/lib/user-opened-local-path.test.ts
  • src/renderer/src/lib/workspace-doc-address-input.test.ts
  • src/renderer/src/lib/workspace-file-drag.test.ts
  • src/renderer/src/lib/workspace/creation/worktree-creation-structured-session-lifecycle.test.ts
  • src/renderer/src/lib/workspace/ownership/worktree-row-open-in-owner.ts
  • src/renderer/src/lib/workspace/paths/workspace-directory.ts
  • src/renderer/src/lib/workspace/persistence/wsl-drive-unc-renderer-store-rewrites.ts
  • src/renderer/src/lib/workspace/persistence/wsl-move-renderer-store-rewrites.ts
  • src/renderer/src/main.tsx
  • src/renderer/src/popout.tsx
  • src/renderer/src/runtime/files/mutations/file-explorer-delete-owner-provenance.test.ts
  • src/renderer/src/runtime/files/workspace-file-host-routing.ts
  • src/renderer/src/runtime/provider-accounts/ownership/use-active-account-owner.ts
  • src/renderer/src/runtime/rpc/targets/use-worktree-runtime-target.ts
  • src/renderer/src/store/index.ts
  • src/renderer/src/store/slices/editor/markdown/markdown-link-action.ts
  • src/renderer/src/store/slices/editor/types/file-search-worktree-state.ts
  • src/renderer/src/store/slices/worktrees/listing/detected-worktree-meta.test.ts
  • src/renderer/src/web/main.tsx
  • src/renderer/src/web/preload-api/web-agent-session-attachment-upload.test.ts
  • src/renderer/src/web/preload-api/web-agent-session-attachment-upload.ts
  • src/renderer/src/web/preload-api/web-clipboard-api.ts
  • src/renderer/src/web/preload-api/web-pasted-text-upload.ts
  • src/renderer/src/web/preload-api/web-shell-api.ts
  • src/shared/wsl-move/wsl-move-storage-dispositions.ts
Files with no reviewable changes: 19

  • src/renderer/src/components/editor/useEditorPanelContentState.test.tsx
  • src/renderer/src/lib/directory-path-suggestion-filter.test.ts
  • src/renderer/src/components/terminal-pane/titles/TerminalPaneHeaderOverlay.test.tsx
  • src/renderer/src/components/terminal-pane/input/file-drop/terminal-drop-internal-handler.test.ts
  • src/renderer/src/lib/files/search/file-search-selection.test.ts
  • src/renderer/src/lib/open-in-application-selection.ts
  • src/renderer/src/components/terminal-pane/links/files/terminal-link-file-open-routing.test.ts
  • src/renderer/src/lib/directory-path-suggestion-filter.scan-budget.test.ts
  • src/renderer/src/lib/workspace-file-drag.test.ts
  • src/renderer/src/components/editor/editor-panel-host-content-recovery.spec.ts
  • src/renderer/src/components/editor/useEditorPanelVisibilityContentState.test.tsx
  • src/renderer/src/lib/find-query-bounds.test.ts
  • src/renderer/src/components/QuickOpen.selection.test.tsx
  • src/renderer/src/components/right-sidebar/file-explorer/mutations/useFileExplorerImport.remote.test.tsx
  • src/renderer/src/lib/os-file-drop-preload-integration.test.tsx
  • src/renderer/src/lib/user-opened-local-path.test.ts
  • src/renderer/src/components/tab-bar/tab-create-entry-preview.test.ts
  • src/renderer/src/components/terminal-pane/input/file-drop/terminal-drop-source-owner.test.ts
  • src/renderer/src/lib/workspace-doc-address-input.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

@nwparker
nwparker merged commit 811973e into main Nov 10, 2026
64 checks passed
audichuang added a commit to audichuang/orca that referenced this pull request Nov 12, 2026
…40337, stablyai#40562, stablyai#40688, stablyai#40745, stablyai#40761, stablyai#40777, stablyai#40895, stablyai#40911, stablyai#40936)

Rewrites fork import and vi.mock specifiers to the moved modules, moves the three fork tests that sit
beside moved modules (git-graph-tab, lazy-chunk-recovery-reload, folder-repo-launch-chat-route) and
their seam list entries, takes GIT_GRAPH_REFRESH_EVENT from its own module, and drops the fork's
OpenFile type import that upstream's editor-autosave now carries itself.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 13, 2026
…40337, stablyai#40562, stablyai#40688, stablyai#40745, stablyai#40761, stablyai#40777, stablyai#40895, stablyai#40911, stablyai#40936)

Rewrites fork import and vi.mock specifiers to the moved modules, moves the three fork tests that sit
beside moved modules (git-graph-tab, lazy-chunk-recovery-reload, folder-repo-launch-chat-route) and
their seam list entries, takes GIT_GRAPH_REFRESH_EVENT from its own module, and drops the fork's
OpenFile type import that upstream's editor-autosave now carries itself.
OmarHung added a commit to OmarHung/orca that referenced this pull request Nov 13, 2026
Upstream grouped more renderer owners into folders (stablyai#40230, stablyai#40745,
stablyai#40761, stablyai#40777, stablyai#40895, stablyai#40936) and dropped a few aliases. Fork imports
and vi.mock targets follow the moves, and:

- `@/lib/utils` cn → `@/lib/class-names`; `@/lib/language-detect` →
  `shared/editor-language/editor-language-detect`; agent catalog
  helpers come from `@/lib/agent-catalog/agent-catalog`.
- `BrowserTab` → `BrowserWorkspace`; `collectLeafIdsInOrder` →
  `collectLayoutLeafIdsInOrder`; `ORCA_BROWSER_BLANK_URL` lives in
  `shared/browser/browser-blank-page`; `tuiAgentToAgentKind` in
  `shared/agent-kind`.
- process-host no longer re-exports `SpawnedProcess`/`PipedChildProcess`,
  so SFTP and SSH VPN use node's ChildProcess types.
- The Database and Git Log shortcuts move to their own module so
  app-command-handlers.ts stays under the line cap.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
audichuang added a commit to audichuang/orca that referenced this pull request Nov 14, 2026
…40337, stablyai#40562, stablyai#40688, stablyai#40745, stablyai#40761, stablyai#40777, stablyai#40895, stablyai#40911, stablyai#40936)

Rewrites fork import and vi.mock specifiers to the moved modules, moves the three fork tests that sit
beside moved modules (git-graph-tab, lazy-chunk-recovery-reload, folder-repo-launch-chat-route) and
their seam list entries, takes GIT_GRAPH_REFRESH_EVENT from its own module, and drops the fork's
OpenFile type import that upstream's editor-autosave now carries itself.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 16, 2026
…40337, stablyai#40562, stablyai#40688, stablyai#40745, stablyai#40761, stablyai#40777, stablyai#40895, stablyai#40911, stablyai#40936)

Rewrites fork import and vi.mock specifiers to the moved modules, moves the three fork tests that sit
beside moved modules (git-graph-tab, lazy-chunk-recovery-reload, folder-repo-launch-chat-route) and
their seam list entries, takes GIT_GRAPH_REFRESH_EVENT from its own module, and drops the fork's
OpenFile type import that upstream's editor-autosave now carries itself.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 18, 2026
…40337, stablyai#40562, stablyai#40688, stablyai#40745, stablyai#40761, stablyai#40777, stablyai#40895, stablyai#40911, stablyai#40936)

Rewrites fork import and vi.mock specifiers to the moved modules, moves the three fork tests that sit
beside moved modules (git-graph-tab, lazy-chunk-recovery-reload, folder-repo-launch-chat-route) and
their seam list entries, takes GIT_GRAPH_REFRESH_EVENT from its own module, and drops the fork's
OpenFile type import that upstream's editor-autosave now carries itself.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 18, 2026
…40337, stablyai#40562, stablyai#40688, stablyai#40745, stablyai#40761, stablyai#40777, stablyai#40895, stablyai#40911, stablyai#40936)

Rewrites fork import and vi.mock specifiers to the moved modules, moves the three fork tests that sit
beside moved modules (git-graph-tab, lazy-chunk-recovery-reload, folder-repo-launch-chat-route) and
their seam list entries, takes GIT_GRAPH_REFRESH_EVENT from its own module, and drops the fork's
OpenFile type import that upstream's editor-autosave now carries itself.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 19, 2026
…40337, stablyai#40562, stablyai#40688, stablyai#40745, stablyai#40761, stablyai#40777, stablyai#40895, stablyai#40911, stablyai#40936)

Rewrites fork import and vi.mock specifiers to the moved modules, moves the three fork tests that sit
beside moved modules (git-graph-tab, lazy-chunk-recovery-reload, folder-repo-launch-chat-route) and
their seam list entries, takes GIT_GRAPH_REFRESH_EVENT from its own module, and drops the fork's
OpenFile type import that upstream's editor-autosave now carries itself.
OmarHung added a commit to OmarHung/orca that referenced this pull request Nov 19, 2026
Upstream grouped more renderer owners into folders (stablyai#40230, stablyai#40745,
and vi.mock targets follow the moves, and:

- `@/lib/utils` cn → `@/lib/class-names`; `@/lib/language-detect` →
  `shared/editor-language/editor-language-detect`; agent catalog
  helpers come from `@/lib/agent-catalog/agent-catalog`.
- `BrowserTab` → `BrowserWorkspace`; `collectLeafIdsInOrder` →
  `collectLayoutLeafIdsInOrder`; `ORCA_BROWSER_BLANK_URL` lives in
  `shared/browser/browser-blank-page`; `tuiAgentToAgentKind` in
  `shared/agent-kind`.
- process-host no longer re-exports `SpawnedProcess`/`PipedChildProcess`,
  so SFTP and SSH VPN use node's ChildProcess types.
- The Database and Git Log shortcuts move to their own module so
  app-command-handlers.ts stays under the line cap.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
…40337, stablyai#40562, stablyai#40688, stablyai#40745, stablyai#40761, stablyai#40777, stablyai#40895, stablyai#40911, stablyai#40936)

Rewrites fork import and vi.mock specifiers to the moved modules, moves the three fork tests that sit
beside moved modules (git-graph-tab, lazy-chunk-recovery-reload, folder-repo-launch-chat-route) and
their seam list entries, takes GIT_GRAPH_REFRESH_EVENT from its own module, and drops the fork's
OpenFile type import that upstream's editor-autosave now carries itself.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
…40337, stablyai#40562, stablyai#40688, stablyai#40745, stablyai#40761, stablyai#40777, stablyai#40895, stablyai#40911, stablyai#40936)

Rewrites fork import and vi.mock specifiers to the moved modules, moves the three fork tests that sit
beside moved modules (git-graph-tab, lazy-chunk-recovery-reload, folder-repo-launch-chat-route) and
their seam list entries, takes GIT_GRAPH_REFRESH_EVENT from its own module, and drops the fork's
OpenFile type import that upstream's editor-autosave now carries itself.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
…40337, stablyai#40562, stablyai#40688, stablyai#40745, stablyai#40761, stablyai#40777, stablyai#40895, stablyai#40911, stablyai#40936)

Rewrites fork import and vi.mock specifiers to the moved modules, moves the three fork tests that sit
beside moved modules (git-graph-tab, lazy-chunk-recovery-reload, folder-repo-launch-chat-route) and
their seam list entries, takes GIT_GRAPH_REFRESH_EVENT from its own module, and drops the fork's
OpenFile type import that upstream's editor-autosave now carries itself.
audichuang added a commit to audichuang/orca that referenced this pull request Nov 21, 2026
…40337, stablyai#40562, stablyai#40688, stablyai#40745, stablyai#40761, stablyai#40777, stablyai#40895, stablyai#40911, stablyai#40936)

Rewrites fork import and vi.mock specifiers to the moved modules, moves the three fork tests that sit
beside moved modules (git-graph-tab, lazy-chunk-recovery-reload, folder-repo-launch-chat-route) and
their seam list entries, takes GIT_GRAPH_REFRESH_EVENT from its own module, and drops the fork's
OpenFile type import that upstream's editor-autosave now carries itself.
OmarHung added a commit to OmarHung/orca that referenced this pull request Nov 24, 2026
Upstream grouped more renderer owners into folders (stablyai#40230, stablyai#40745,
and vi.mock targets follow the moves, and:

- `@/lib/utils` cn → `@/lib/class-names`; `@/lib/language-detect` →
  `shared/editor-language/editor-language-detect`; agent catalog
  helpers come from `@/lib/agent-catalog/agent-catalog`.
- `BrowserTab` → `BrowserWorkspace`; `collectLeafIdsInOrder` →
  `collectLayoutLeafIdsInOrder`; `ORCA_BROWSER_BLANK_URL` lives in
  `shared/browser/browser-blank-page`; `tuiAgentToAgentKind` in
  `shared/agent-kind`.
- process-host no longer re-exports `SpawnedProcess`/`PipedChildProcess`,
  so SFTP and SSH VPN use node's ChildProcess types.
- The Database and Git Log shortcuts move to their own module so
  app-command-handlers.ts stays under the line cap.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant