Skip to content

Harden Sentry crash and noise guards for 0.61.0 - #486

Merged
lawrencecchen merged 2 commits into
mainfrom
task-sentry-0-61-0-issues
Feb 25, 2026
Merged

lawrencecchen merged 2 commits into
mainfrom
task-sentry-0-61-0-issues

Conversation

@lawrencecchen

Copy link
Copy Markdown
Contributor

Summary

  • Remove unsafe NSTextView.delegate inspection from NSWindow.cmux_makeFirstResponder webview ownership resolution to prevent unowned reference crashes in responder teardown paths.
  • Reduce Sentry noise by disabling failed-request capture recursion and increasing app-hang timeout from 2s to 8s.
  • Gate scroll-lag Sentry events on sustained lag plus cooldown, and add regression tests for both the first-responder guard and lag-capture decision logic.

Testing

  • xcodebuild -project GhosttyTabs.xcodeproj -scheme cmux-unit -configuration Debug -destination 'platform=macOS' -only-testing:cmuxTests/CmuxWebViewKeyEquivalentTests/testWindowFirstResponderGuardAvoidsTextViewDelegateLookupForWebViewResolution -only-testing:cmuxTests/GhosttyConfigTests/testScrollLagCaptureRequiresSustainedLag -only-testing:cmuxTests/GhosttyConfigTests/testScrollLagCaptureRespectsCooldownWindow test (passed)
  • xcodebuild -project GhosttyTabs.xcodeproj -scheme cmux -configuration Debug -destination 'platform=macOS' build (passed)
  • ./scripts/reload.sh --tag sentry-0-61-guard (passed)

Issues

@vercel

vercel Bot commented Feb 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cmux Ready Ready Preview, Comment Feb 25, 2026 9:40pm

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0164c870f1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Sources/AppDelegate.swift
@lawrencecchen lawrencecchen added the bug Something isn't working label Feb 25, 2026
@lawrencecchen
lawrencecchen merged commit ca2e975 into main Feb 25, 2026
6 checks passed
@lawrencecchen
lawrencecchen deleted the task-sentry-0-61-0-issues branch February 25, 2026 21:42
bn-l pushed a commit to bn-l/cmux that referenced this pull request Apr 3, 2026
…0-issues

Harden Sentry crash and noise guards for 0.61.0

This branch was successfully deployed

1 active deployment
Preview — 575b5352 Deployed Feb 25, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant