Skip to content

Fix terminal pane title focus handling - #2756

Merged
brennanb2025 merged 15 commits into
mainfrom
brennanb2025/terminal-pane-title-issue
Jun 20, 2026
Merged

brennanb2025 merged 15 commits into
mainfrom
brennanb2025/terminal-pane-title-issue

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented May 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • keep terminal pane title controls in an Orca-owned overlay outside the xterm pane DOM so Set Title focus is no longer owned by xterm helper textarea churn
  • reserve title height on titled/renaming panes and refit xterm below the title strip so the first terminal row is never covered
  • paint the title strip with an opaque terminal-matched background so terminal prompt/output never bleeds through it
  • keep pane dragging available at the top of titled panes by adding a title-strip drag affordance that routes through the same PaneManager drag/drop path while preserving right-click/control-click context menus
  • keep the remove-title X as a color-only hover target in the title strip so the shared ghost button background does not paint a bright rounded block
  • close the context menu before opening Set Title and only treat blur as commit when the user clicked away or tabbed away
  • add regressions for title-height reservation, opaque title background, delayed xterm focus steals, split panes, failed focus restore, inactive tabs, overlay interactions, pane moves, title-strip dragging, context-menu pointer buttons, remove-button hover styling, and agent title churn

Testing

  • pnpm run typecheck:web
  • pnpm exec oxlint src/renderer/src/components/terminal-pane/TerminalPane.tsx src/renderer/src/components/terminal-pane/TerminalContextMenu.tsx src/renderer/src/components/terminal-pane/use-terminal-pane-context-menu.ts src/renderer/src/components/terminal-pane/use-terminal-pane-lifecycle.ts src/renderer/src/lib/terminal-title-contrast.ts src/renderer/src/lib/terminal-theme.ts src/renderer/src/lib/terminal-theme.test.ts src/renderer/src/lib/pane-manager/pane-manager.ts src/renderer/src/lib/pane-manager/pane-drag-reorder.ts src/renderer/src/lib/pane-manager/pane-drag-reorder.test.ts tests/e2e/terminal-panes.spec.ts
  • pnpm exec vitest run src/renderer/src/lib/terminal-theme.test.ts
  • pnpm exec vitest run src/renderer/src/lib/pane-manager/pane-drag-reorder.test.ts
  • git diff --check
  • git diff --check HEAD~1..HEAD
  • pnpm exec playwright test tests/e2e/terminal-panes.spec.ts --config tests/playwright.config.ts --project=electron-headless -g "Set Title|set title" (rebuilt app; 16 passed)
  • pnpm exec playwright test tests/e2e/terminal-panes.spec.ts --config tests/playwright.config.ts --project=electron-headless -g "Set Title remove button hover stays transparent" (rebuilt app; 1 passed)
  • SKIP_BUILD=1 pnpm exec playwright test tests/e2e/terminal-panes.spec.ts --config tests/playwright.config.ts --project=electron-headful -g "Set Title pane can be dragged from the title strip" (1 passed)
  • SKIP_BUILD=1 pnpm exec playwright test tests/e2e/terminal-title-reserved-visual.spec.ts --config tests/playwright.config.ts --project=electron-headless (temporary visual smoke spec, removed after screenshot inspection)
  • SKIP_BUILD=1 pnpm exec playwright test tests/e2e/terminal-title-drag-visual.spec.ts --config tests/playwright.config.ts --project=electron-headless (temporary visual smoke spec, removed after screenshot inspection)
  • SKIP_BUILD=1 pnpm exec playwright test tests/e2e/terminal-title-close-visual.spec.ts --config tests/playwright.config.ts --project=electron-headless (temporary visual smoke spec, removed after screenshot inspection)

Visual verification

Inspected fresh rendered screenshots from the temporary smoke specs. The title strip is opaque, terminal cursor/content starts below the reserved title area, the hovered title-strip drag affordance appears at the top of the titled pane, and the hovered remove-title X no longer shows the bright rounded ghost-button block. Gemini visual review was attempted earlier, but Gemini requested shell copy permission for the screenshot, so I used direct screenshot inspection as evidence.

Risk assessment

Risk: MEDIUM

Historic risk metadata backfill based on the existing risk:medium label.

Risk: medium

Historic risk metadata backfill based on the existing risk:medium label.

@nwparker nwparker added the risk:medium Medium risk change label May 30, 2026
@ghost

ghost commented Jun 19, 2026 •

Copy link
Copy Markdown

Ready to review this PR? Stage has broken it down into 5 individual chapters for you:

Title
1 Enhance terminal theme contrast and background utilities
2 Refactor pane dragging to support external handles
3 Update context menu to support overlay interactions
4 Implement external title overlay and layout tracking
5 Fix minor layout bug and add regression tests
Open in Stage

Chapters generated by Stage for commit b8d3192 on Jun 20, 2026 12:31am UTC.

…-pane-title-issue

# Conflicts:
#	src/renderer/src/components/dictation/DictationController.tsx
#	src/renderer/src/components/mobile/MobilePage.tsx
#	src/renderer/src/components/settings/RuntimePairingGeneratorForm.tsx
#	src/renderer/src/components/settings/RuntimePairingUrlGenerator.tsx
#	src/renderer/src/components/sparse/SparseCheckoutPresetSelect.tsx
#	src/renderer/src/components/tab-bar/tab-create-entry-classifier.ts
@coderabbitai

coderabbitai Bot commented Jun 19, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 2324ca25-b398-403a-aa44-a950757c3d19

📥 Commits

Reviewing files that changed from the base of the PR and between 206fa4b and 77f4d76.

📒 Files selected for processing (1)
  • tests/e2e/terminal-raw-emoji-table-scroll-restore.spec.ts

📝 Walkthrough

Walkthrough

Terminal pane title bars move from per-pane React portals to a single Orca-owned overlay <div> positioned using screen-space rectangles tracked by ResizeObserver. A new pane-drag-pointer.ts module extracts pointer-driven drag logic from pane-drag-reorder.ts, and PaneManager gains a beginPaneDragFromPointerDown method. Layout revision state is added so geometry-only pane reordering triggers overlay rect recomputation. TerminalContextMenu force-closes before invoking onSetTitle, and useTerminalPaneContextMenu gains an onPaneTitleContextMenu handler for opening the context menu from the title overlay. A new resolveOpaqueTerminalBackground utility provides opaque background compositing for pane title styling. Locale files across five languages add copyTerminalId context-menu strings and nested copy feedback messages. E2E tests cover overlay geometry, focus-handoff edge cases, drag, drop, Tab-commit behavior, and fixture synchronization.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 1.96% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: fixing focus handling for terminal pane titles by restructuring how title controls interact with xterm.
Description check ✅ Passed The description covers all required template sections: a clear summary of user-visible changes, visual verification details, comprehensive testing evidence, AI review confirmation, security audit mention, and platform-specific notes.
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.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

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

Comment @coderabbitai help to get the list of available commands and usage tips.

@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.

Actionable comments posted: 2

🧹 Nitpick comments (1)
src/renderer/src/components/tab-bar/tab-entry-file-matches.ts (1)

10-12: ⚡ Quick win

Preserve the cross-platform normalization rationale in-place.

This normalization is a non-obvious behavior contract; please add a short “why” comment so future edits don’t remove it accidentally.

♻️ Proposed tweak
 function normalizeFileMatchQuery(query: string): string {
+  // Why: users may type Windows separators, while indexed paths are slash-normalized.
   return query.trim().replace(/\\/g, '/')
 }

As per coding guidelines: “When writing or modifying code driven by a design doc or non-obvious constraint, add a comment explaining why the code behaves the way it does.”

Source: Coding guidelines


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 4423e1aa-c252-454c-84f2-2374df469436

📥 Commits

Reviewing files that changed from the base of the PR and between 8e524df and f8dc7da.

📒 Files selected for processing (35)
  • src/main/runtime/headless-tab-group-split-layout.ts
  • src/main/runtime/orca-runtime.test.ts
  • src/renderer/src/assets/terminal.css
  • src/renderer/src/components/dictation/DictationController.tsx
  • src/renderer/src/components/dictation/use-dictation-speech-events.ts
  • src/renderer/src/components/mobile/MobilePage.tsx
  • src/renderer/src/components/mobile/MobilePageHeroSection.tsx
  • src/renderer/src/components/mobile/use-mobile-page-escape-close.ts
  • src/renderer/src/components/right-sidebar/FolderWorkspacePrChecksPanel.tsx
  • src/renderer/src/components/settings/RuntimePairingGeneratorForm.tsx
  • src/renderer/src/components/settings/RuntimePairingUrlGenerator.tsx
  • src/renderer/src/components/sparse/SparseCheckoutPresetSelect.tsx
  • src/renderer/src/components/sparse/SparsePresetDraftForm.tsx
  • src/renderer/src/components/tab-bar/tab-create-entry-classifier.ts
  • src/renderer/src/components/tab-bar/tab-entry-file-matches.ts
  • src/renderer/src/components/tab-bar/tab-entry-path-validation.ts
  • src/renderer/src/components/terminal-pane/TerminalContextMenu.tsx
  • src/renderer/src/components/terminal-pane/TerminalPane.tsx
  • src/renderer/src/components/terminal-pane/use-terminal-pane-context-menu.ts
  • src/renderer/src/components/terminal-pane/use-terminal-pane-lifecycle.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/lib/pane-manager/pane-drag-pointer.ts
  • src/renderer/src/lib/pane-manager/pane-drag-reorder.test.ts
  • src/renderer/src/lib/pane-manager/pane-drag-reorder.ts
  • src/renderer/src/lib/pane-manager/pane-lifecycle.ts
  • src/renderer/src/lib/pane-manager/pane-manager.ts
  • src/renderer/src/lib/terminal-theme.test.ts
  • src/renderer/src/lib/terminal-theme.ts
  • src/renderer/src/lib/terminal-title-contrast.ts
  • src/renderer/src/runtime/web-session-tabs-sync.test.ts
  • tests/e2e/terminal-panes.spec.ts
💤 Files with no reviewable changes (1)
  • src/renderer/src/lib/pane-manager/pane-drag-reorder.ts


test('Set Title strip activates its pane and accepts file-path drops', async ({ orcaPage }) => {
const title = `Drop target title ${Date.now()}`
const droppedPath = `/tmp/title-drop-${Date.now()}.txt`

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.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Use OS-safe temp path construction for the dropped file payload.

Line 436 hardcodes a POSIX path (/tmp/...), which is not cross-platform and violates the repo path-handling rule.

As per coding guidelines, “Use path.join or Electron/Node path utilities for file paths — never assume / or \ for cross-platform compatibility.”

🔧 Suggested fix
-    const droppedPath = `/tmp/title-drop-${Date.now()}.txt`
+    const droppedPath = path.join(os.tmpdir(), `title-drop-${Date.now()}.txt`)
// Add if not already present at the top of the file:
import path from 'node:path'
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
const droppedPath = `/tmp/title-drop-${Date.now()}.txt`
const droppedPath = path.join(os.tmpdir(), `title-drop-${Date.now()}.txt`)

Source: Coding guidelines

…-pane-title-issue

# Conflicts:
#	src/renderer/src/i18n/locales/ko.json
…-pane-title-issue

# Conflicts:
#	src/renderer/src/i18n/locales/es.json
#	src/renderer/src/i18n/locales/ja.json
#	src/renderer/src/i18n/locales/ko.json
#	src/renderer/src/i18n/locales/zh.json

@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.

Actionable comments posted: 4

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (6)
src/renderer/src/i18n/locales/ko.json (1)

2287-2303: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Duplicate copyTerminalId key causes silent overwrite.

Line 2303 overwrites Line 2287 in the same object, so one value is unreachable and locale output can be unintentionally changed.

Suggested fix
           "TerminalContextMenu": {
             "b4cdd9314e": "화면 지우기",
             "8c17d6786d": "창 닫기",
-            "copyTerminalId": "터미널 ID 복사",
+            "copyTerminalId": "터미널 ID 복사",
             "2cf85a6a55": "창 ID 복사",
             "39809d152f": "제목 설정…",
             "06c2b0f043": "창 크기 균등화",
             "98bccf4fa2": "Terminal을 아래로 분할",
             "20e565d865": "Terminal 오른쪽 분할",
             "8a7ddb8b8a": "포크 Agent 세션…",
             "0a82b0608c": "빠른 명령 추가...",
             "9528a65ef8": "빠른 명령 없음",
             "3ce594a4a0": "글로벌",
             "ec85df5914": "빠른 명령어",
             "0a917b591a": "붙여넣기",
             "f3eeb1de13": "복사",
             "c2f0b72b8d": "삽입",
             "925f49f210": "창 확장",
             "df766809e0": "창 축소",
-            "copyTerminalId": "Copy Terminal ID"
+            
           },

Source: Linters/SAST tools

src/renderer/src/i18n/locales/en.json (2)

2301-2304: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Remove the duplicate copyTerminalId entry.

The second key at Line 2303 overwrites the earlier one at Line 2287, so only one label survives parsing. Keep a single catalog entry to avoid drift.

🛠️ Suggested cleanup
   "925f49f210": "Expand Pane",
   "df766809e0": "Collapse Pane",
-  "copyTerminalId": "Copy Terminal ID"

Source: Linters/SAST tools


9098-9100: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Deduplicate SourceControlEntryContextMenu.

This block repeats the earlier SourceControlEntryContextMenu definition from Line 8398, so one copy will be discarded when the JSON is parsed. Merge the content or keep only one definition.

🛠️ Suggested cleanup
-  "SourceControlEntryContextMenu": {
-    "a1f2c8d901": "View"
-  },

Source: Linters/SAST tools

src/renderer/src/i18n/locales/es.json (1)

2287-2304: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Remove the duplicate copyTerminalId entry.

The later copyTerminalId value overwrites the Spanish translation above, so this menu item will only keep one string after parsing. Keep a single key here and update that value instead.

Source: Linters/SAST tools

src/renderer/src/i18n/locales/ja.json (1)

2287-2303: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Remove duplicate copyTerminalId in TerminalContextMenu.

Line 2287 and Line 2303 both declare copyTerminalId. The latter overwrites the former and triggers the duplicate-key lint error. Keep a single copyTerminalId entry in this object.

Source: Linters/SAST tools

src/renderer/src/i18n/locales/zh.json (1)

2287-2303: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Duplicate copyTerminalId key silently overwrites the first value.

Line 2287 and Line 2303 define the same key in one object. The second value wins, so the earlier translation is ignored.

Suggested fix
           "TerminalContextMenu": {
             "b4cdd9314e": "清晰的屏幕",
             "8c17d6786d": "关闭窗格",
             "copyTerminalId": "复制终端 ID",
             "2cf85a6a55": "复制窗格 ID",
             "39809d152f": "设置标题...",
             "06c2b0f043": "均衡窗格大小",
             "98bccf4fa2": "向下拆分 Terminal",
             "20e565d865": "向右拆分 Terminal",
             "8a7ddb8b8a": "分叉 Agent 会话...",
             "0a82b0608c": "添加快速命令...",
             "9528a65ef8": "没有快速命令",
             "3ce594a4a0": "全球的",
             "ec85df5914": "快捷命令",
             "0a917b591a": "粘贴",
             "f3eeb1de13": "复制",
             "c2f0b72b8d": "插入",
             "925f49f210": "展开窗格",
-            "df766809e0": "折叠窗格",
-            "copyTerminalId": "Copy Terminal ID"
+            "df766809e0": "折叠窗格"
           },

Source: Linters/SAST tools


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: e2b4ae4e-587e-47ab-9add-748766b5d1ba

📥 Commits

Reviewing files that changed from the base of the PR and between ec45972 and 206fa4b.

📒 Files selected for processing (5)
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json

@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.

Caution

Inline review comments failed to post. This is likely due to GitHub's internal server error or limits when posting large numbers of comments. If you are seeing this consistently it is likely a permissions issue. Please check "Moderation" -> "Code review limits" under your organization settings.

Actionable comments posted: 4

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (6)
src/renderer/src/i18n/locales/ko.json (1)

2287-2303: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Duplicate copyTerminalId key causes silent overwrite.

Line 2303 overwrites Line 2287 in the same object, so one value is unreachable and locale output can be unintentionally changed.

Suggested fix
           "TerminalContextMenu": {
             "b4cdd9314e": "화면 지우기",
             "8c17d6786d": "창 닫기",
-            "copyTerminalId": "터미널 ID 복사",
+            "copyTerminalId": "터미널 ID 복사",
             "2cf85a6a55": "창 ID 복사",
             "39809d152f": "제목 설정…",
             "06c2b0f043": "창 크기 균등화",
             "98bccf4fa2": "Terminal을 아래로 분할",
             "20e565d865": "Terminal 오른쪽 분할",
             "8a7ddb8b8a": "포크 Agent 세션…",
             "0a82b0608c": "빠른 명령 추가...",
             "9528a65ef8": "빠른 명령 없음",
             "3ce594a4a0": "글로벌",
             "ec85df5914": "빠른 명령어",
             "0a917b591a": "붙여넣기",
             "f3eeb1de13": "복사",
             "c2f0b72b8d": "삽입",
             "925f49f210": "창 확장",
             "df766809e0": "창 축소",
-            "copyTerminalId": "Copy Terminal ID"
+            
           },

Source: Linters/SAST tools

src/renderer/src/i18n/locales/en.json (2)

2301-2304: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Remove the duplicate copyTerminalId entry.

The second key at Line 2303 overwrites the earlier one at Line 2287, so only one label survives parsing. Keep a single catalog entry to avoid drift.

🛠️ Suggested cleanup
   "925f49f210": "Expand Pane",
   "df766809e0": "Collapse Pane",
-  "copyTerminalId": "Copy Terminal ID"

Source: Linters/SAST tools


9098-9100: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Deduplicate SourceControlEntryContextMenu.

This block repeats the earlier SourceControlEntryContextMenu definition from Line 8398, so one copy will be discarded when the JSON is parsed. Merge the content or keep only one definition.

🛠️ Suggested cleanup
-  "SourceControlEntryContextMenu": {
-    "a1f2c8d901": "View"
-  },

Source: Linters/SAST tools

src/renderer/src/i18n/locales/es.json (1)

2287-2304: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Remove the duplicate copyTerminalId entry.

The later copyTerminalId value overwrites the Spanish translation above, so this menu item will only keep one string after parsing. Keep a single key here and update that value instead.

Source: Linters/SAST tools

src/renderer/src/i18n/locales/ja.json (1)

2287-2303: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Remove duplicate copyTerminalId in TerminalContextMenu.

Line 2287 and Line 2303 both declare copyTerminalId. The latter overwrites the former and triggers the duplicate-key lint error. Keep a single copyTerminalId entry in this object.

Source: Linters/SAST tools

src/renderer/src/i18n/locales/zh.json (1)

2287-2303: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Duplicate copyTerminalId key silently overwrites the first value.

Line 2287 and Line 2303 define the same key in one object. The second value wins, so the earlier translation is ignored.

Suggested fix
           "TerminalContextMenu": {
             "b4cdd9314e": "清晰的屏幕",
             "8c17d6786d": "关闭窗格",
             "copyTerminalId": "复制终端 ID",
             "2cf85a6a55": "复制窗格 ID",
             "39809d152f": "设置标题...",
             "06c2b0f043": "均衡窗格大小",
             "98bccf4fa2": "向下拆分 Terminal",
             "20e565d865": "向右拆分 Terminal",
             "8a7ddb8b8a": "分叉 Agent 会话...",
             "0a82b0608c": "添加快速命令...",
             "9528a65ef8": "没有快速命令",
             "3ce594a4a0": "全球的",
             "ec85df5914": "快捷命令",
             "0a917b591a": "粘贴",
             "f3eeb1de13": "复制",
             "c2f0b72b8d": "插入",
             "925f49f210": "展开窗格",
-            "df766809e0": "折叠窗格",
-            "copyTerminalId": "Copy Terminal ID"
+            "df766809e0": "折叠窗格"
           },

Source: Linters/SAST tools


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: e2b4ae4e-587e-47ab-9add-748766b5d1ba

📥 Commits

Reviewing files that changed from the base of the PR and between ec45972 and 206fa4b.

📒 Files selected for processing (5)
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
🛑 Comments failed to post (4)
src/renderer/src/i18n/locales/es.json (1)

8398-8400: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Keep only one SourceControlEntryContextMenu block.

This new key collides with the existing menu entry later in the file, so one of the two objects will be dropped during JSON parsing. Merge them into a single entry and preserve the intended locale string.

🧰 Tools
🪛 Biome (2.5.0)

[error] 8398-8398: The key SourceControlEntryContextMenu was already declared.

(lint/suspicious/noDuplicateObjectKeys)

Source: Linters/SAST tools

src/renderer/src/i18n/locales/ja.json (1)

8398-8400: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Remove duplicate SourceControlEntryContextMenu object key.

SourceControlEntryContextMenu is declared twice (Line 8398 and Line 9098) under the same parent scope. The second declaration replaces the first and causes a duplicate-key lint failure. Consolidate into one declaration.

Also applies to: 9098-9100

🧰 Tools
🪛 Biome (2.5.0)

[error] 8398-8398: The key SourceControlEntryContextMenu was already declared.

(lint/suspicious/noDuplicateObjectKeys)

Source: Linters/SAST tools

src/renderer/src/i18n/locales/ko.json (1)

8398-8400: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

SourceControlEntryContextMenu is declared twice in the same object.

The second declaration shadows the first one. Even with identical values now, this is fragile and a lint error.

Suggested fix
-          "SourceControlEntryContextMenu": {
-            "a1f2c8d901": "보기"
-          },

(Keep the later SourceControlEntryContextMenu block only once.)

Also applies to: 9098-9100

🧰 Tools
🪛 Biome (2.5.0)

[error] 8398-8398: The key SourceControlEntryContextMenu was already declared.

(lint/suspicious/noDuplicateObjectKeys)

Source: Linters/SAST tools

src/renderer/src/i18n/locales/zh.json (1)

8398-8400: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

SourceControlEntryContextMenu is declared twice in the same object.

Line 8398 and Line 9098 both define SourceControlEntryContextMenu; the latter overwrites the former, so one value is dead data.

Suggested fix
-          "SourceControlEntryContextMenu": {
-            "a1f2c8d901": "查看"
-          },

(keep only one SourceControlEntryContextMenu block in this parent object)

Also applies to: 9098-9100

🧰 Tools
🪛 Biome (2.5.0)

[error] 8398-8398: The key SourceControlEntryContextMenu was already declared.

(lint/suspicious/noDuplicateObjectKeys)

Source: Linters/SAST tools

@brennanb2025
brennanb2025 merged commit 6c941d8 into main Jun 20, 2026
4 checks passed
@brennanb2025
brennanb2025 deleted the brennanb2025/terminal-pane-title-issue branch June 20, 2026 00:50
brennanb2025 pushed a commit that referenced this pull request Jul 15, 2026
…ons (#8279)

Two renderer paths let Promise rejections escape unhandled, where the
crash-breadcrumb system retains them and grows the heap until the renderer
white-screens (#8260):

- The terminal file-link provider fires a `void Promise.all(...)` whose async
  mappers probe path existence over SSH. On disconnect these reject with
  "Remote connection dropped/reconnecting"; add a `.catch` that resolves the
  callback with no links so the rejection is handled.
- "ResizeObserver loop completed" is a benign Chromium quirk; suppress it in
  crash-diagnostics so it stops filling the breadcrumb buffer and inflating
  the renderer error count.

Scope note: the original fix for #8260 also proposed Windows pty:kill signal
handling (killPtyProcess / isPtyAlreadyGoneError) and a ResizeObserver
double-rAF. Those landed on main independently (Windows kill handling by
v1.4.135; the pane-title-overlay rect-equality guard from #2756 already breaks
the loop at the source), so this change carries only the two guards still
missing upstream.

Co-authored-by: Yixian HU <[email protected]>
Co-authored-by: Claude <[email protected]>
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
…ons (stablyai#8279)

Two renderer paths let Promise rejections escape unhandled, where the
crash-breadcrumb system retains them and grows the heap until the renderer
white-screens (stablyai#8260):

- The terminal file-link provider fires a `void Promise.all(...)` whose async
  mappers probe path existence over SSH. On disconnect these reject with
  "Remote connection dropped/reconnecting"; add a `.catch` that resolves the
  callback with no links so the rejection is handled.
- "ResizeObserver loop completed" is a benign Chromium quirk; suppress it in
  crash-diagnostics so it stops filling the breadcrumb buffer and inflating
  the renderer error count.

Scope note: the original fix for stablyai#8260 also proposed Windows pty:kill signal
handling (killPtyProcess / isPtyAlreadyGoneError) and a ResizeObserver
double-rAF. Those landed on main independently (Windows kill handling by
v1.4.135; the pane-title-overlay rect-equality guard from stablyai#2756 already breaks
the loop at the source), so this change carries only the two guards still
missing upstream.

Co-authored-by: Yixian HU <[email protected]>
Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk:medium Medium risk change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants