Skip to content

fix(terminal): log pane recovery at warn, not error - #10796

Merged
brennanb2025 merged 3 commits into
mainfrom
brennanb2025/terminal-recovery-log-level
Jul 30, 2026
Merged

brennanb2025 merged 3 commits into
mainfrom
brennanb2025/terminal-recovery-log-level

Conversation

@brennanb2025

Copy link
Copy Markdown
Contributor

Follow-up from live QA of #10065.

requestTerminalPaneRecovery logs at console.error when a remount is requested — but that message reports recovery succeeding, and the recordRendererCrashBreadcrumb call immediately below is what diagnostics actually consume.

STA-2373 (#10065) made this path routine: every daemon death now remounts each live pane, so each incident emits one error line per pane into logs and crash telemetry. Two showed up in a single QA run.

Dropped to console.warn, which is also the convention in these files (10 warn vs this single error). Message and breadcrumb unchanged.

No test asserted on this level. terminal-pane-recovery + pty-connection suites: 500 passed.

STA-2373 made this path routine: every daemon death now remounts each live
pane, so error level floods logs and crash telemetry with a message that
reports recovery *succeeding*. The breadcrumb right below is what
diagnostics actually consume.
@coderabbitai

coderabbitai Bot commented Jul 26, 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 Plus

Run ID: 13a326d5-51a7-4cc7-b573-c05536660a8c

📥 Commits

Reviewing files that changed from the base of the PR and between 0628bd1 and 6ec60cd.

📒 Files selected for processing (2)
  • src/renderer/src/components/terminal-pane/terminal-pane-recovery.test.ts
  • src/renderer/src/components/terminal-pane/terminal-pane-recovery.ts
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/renderer/src/components/terminal-pane/terminal-pane-recovery.ts

📝 Walkthrough

Walkthrough

Updated terminal pane recovery diagnostics to emit a warning instead of an error on successful recovery. Added comments identifying the path as routine and noting that detailed diagnostics remain available through breadcrumb recording. Updated the test setup to stub console.warn.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description covers the change and testing, but it is missing the required template sections and headings. Reformat the PR body to include Summary, Screenshots, Testing, AI Review Report, Security Audit, and Notes with the required details.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely summarizes the main change: downgrading terminal recovery logging from error to warn.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
✨ 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.

The comment claimed error level floods telemetry; nothing forwards renderer
console into telemetry, and the breadcrumb below is untouched, so this change
alters telemetry volume by zero. The test's console.error spy silenced the
old call site and now stubs nothing, leaking 26 stderr lines under verbose.
#10811 landed the input quarantine and arms it immediately above the log call
this branch changes. Kept both: the arming block from main, and the warn level
plus its comment from this branch.
@brennanb2025
brennanb2025 merged commit f37b9f6 into main Jul 30, 2026
24 checks passed
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
* fix(terminal): log pane recovery at warn, not error

STA-2373 made this path routine: every daemon death now remounts each live
pane, so error level floods logs and crash telemetry with a message that
reports recovery *succeeding*. The breadcrumb right below is what
diagnostics actually consume.

* fix(terminal): correct recovery log comment and test console spy

The comment claimed error level floods telemetry; nothing forwards renderer
console into telemetry, and the breadcrumb below is untouched, so this change
alters telemetry volume by zero. The test's console.error spy silenced the
old call site and now stubs nothing, leaking 26 stderr lines under verbose.
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