Repository navigation
fix(agent): show why Maple could not start on macOS - #1501
Merged
Merged
Conversation
When the native quit hook could not install, the startup window stopped the host and then replaced the error with "The Maple host has stopped", so the reason was only in the log file. A user hit this on 0.0.18 and support had nothing to go on. Keep the original error under Details, show the log path with the home folder as ~, and add Copy details (version, OS, error, status, log path) and Show log file. Hook errors now name the delegate's actual class and whether it is a subclass of GPUI's, or the class and library that provide applicationShouldTerminate:. The startup log line names the OS. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
A Mac user on 0.0.18 wrote in with a "Maple could not start" window that said only "The Maple host has stopped. You can close Maple and try starting it again." and offered a Close button.
On macOS that screen has one source.
native_quit::installrefused to install at launch, the guarded startup window stopped the host, andfinish_required_stopthen replaced the original error with the stop status. The reason was written only to~/Library/Application Support/maple-agent-prod/store-v1/logs/maple-agent.log, so support had nothing to go on. The hook has behaved this way since #1215, so 0.0.19 and current master do the same.What changes
~(%USERPROFILE%on Windows), so the path pastes into Go to Folder and copied text does not carry the account name.GPUIApplicationDelegate;applicationShouldTerminate:, naming the class and library that provide it.starting on macOS 26.1 (25B78), aarch64, from a newsystem_infomodule.StorePaths::log_filereplaces the hard-coded file name.just translations-reviewed es. The window's text is now in the accessibility tree.The checks themselves are unchanged. Loosening them waits until the user's report tells us which check failed on their Mac.
The provider lookup compares
class_getInstanceMethodresults rather than reading method lists. objc 0.2'sinstance_methods()builds a misaligned empty slice for a class with no methods of its own, which panics under debug checks.Testing
just cipassed locally on macOS 27.2.NSKVONotifying_…, a subclass of….DYLD_INSERT_LIBRARIES:applicationShouldTerminate:added toNSResponder, the window shows "…already handles termination (from NSResponder in …/inject.dylib)…".🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.