Field notes · XCODE / CHATGPT

A Mac App Freezes at Launch: What a BuildRoom Repair with Relayard Taught Us

A recorded BuildRoom repair connected chat to a local Xcode project, narrowed startup changes and exposed a second problem in GUI test isolation. Here is what passed, what failed and what to reuse.

The useful outcome was a smaller, reviewable repair with a clear evidence boundary. The October 10 record shows that the initial patch passed first-launch and repeated empty-workspace navigation checks. The final revision built successfully, but full GUI acceptance remained incomplete. This is a repair journal, including the unresolved part.

1. The task began with an app that would not respond

BuildRoom is a Mac utility for reviewing development storage. A launch failure is especially frustrating in this setting: before a user can inspect anything, the app must show its state and respond to navigation. The task was to investigate the startup hang in the existing project, while preserving the cleanup engine and its authorization checks.

The retained session record used Xcode 26.3 on arm64. Its baseline first-launch UI test failed because the application had not loaded accessibility. That was a reproducible startup symptom. It was not a main-thread sample and did not establish one unique cause.

Relayard supplied the connection between the chat workflow and the selected Xcode project on the Mac. The record contains an applied source change and native build/test receipts. It also contains failures. Keeping those together makes the experience useful to another developer.

2. Make the next change smaller than the problem

The saved repair addressed three paths: menu-bar state updates, monitoring reconfiguration and disk-capacity reads. Menu-bar updates were deferred and deduplicated, with stale callbacks cancelled. Monitoring was rebuilt only after a meaningful configuration change. Disk capacity became a background-read, serial snapshot instead of a synchronous disk query from a SwiftUI getter.

The important distinction is between the observed code changes and a proven runtime cause. The record establishes that these changes were applied; without a main-thread trace, it does not establish which path was solely responsible for the original hang.

Repair scope from the saved record
PathChangeWhy inspect this boundary
Menu-bar stateDefer, deduplicate and cancel stale callbacksRepeated scene updates can outlive the state they describe.
MonitoringRebuild only for effective configuration changesA redraw should not automatically recreate background work.
Disk-capacity displayRead in the background and publish a serial snapshotA display getter should not synchronously wait for a disk query.

The cleanup authorization, identity, content and logging checks were preserved. A responsiveness task did not become a rewrite of the destructive operations.

3. Use the connection to shorten the feedback loop

A pasted code fragment can help explain an API. This task needed a tighter loop: identify the selected project, read the current implementation, apply a limited change, then inspect what the native build and tests actually returned. The saved record confirms an applied change set and subsequent native results; this article does not reconstruct an exact transcript of every tool call.

For a similar task, begin by confirming project readiness and the capabilities the current client exposes. Read the relevant startup and model files before suggesting edits. Preserve the working state, review the planned diff, then execute the authorized change against that same project. If a build or test is asynchronous, retain its operation reference and read its terminal native result.

A relay request finishing does not by itself mean an Xcode test passed. Record the native result, tested revision and environment together. Current tool names and permissions may differ from the historical session; follow the capabilities actually available in your setup. See the build and preview guide for the same distinction.

4. Read the results by revision, not by the greenest line

What the October 10 record actually establishes
StageRecorded resultConclusion
Before the repairFirst-launch UI test failed; accessibility did not loadA startup regression was observed.
Initial repairFirst-launch test and 30 empty-workspace page changes passedThese scenarios improved on this revision.
Broader initial GUI run2 passed, 6 failed out of 8; sample readiness was not reachedThe full GUI suite did not pass.
Final isolation revisionNative build passed; one UI check stopped before navigation because the session marker was missingBuild is verified; GUI isolation and acceptance are incomplete.
Matching portable core140 Debug and 140 Release tests passed on Linux, with no failuresCore tests passed in both modes; this is not macOS GUI coverage.

These are historical results, not a fresh test of the current BuildRoom release. The core counts are the same set of 140 tests in two configurations, not 280 distinct behaviors. First-launch success on the initial patch cannot be silently attributed to the final revision.

5. The second problem was knowing which app the test was driving

The six GUI failures shared a sample-readiness timeout. Follow-up diagnostics observed a development-directory scan rather than the expected isolated sample. That observation weakened the interpretation of those runs; it did not prove the sole cause of the instance mismatch.

The next change made the test bind to the built product path, refuse a fallback launch, check for another instance and require a session marker before navigation. The final check did not find that marker and stopped before interacting. That is useful diagnostic behavior, but it is still a failed check.

The reusable lesson is to establish the identity of the running product before trusting a GUI result. A build artifact, an installed copy and an already-running app can look alike. Record which one was launched, which fixture it loaded and which revision it represents.

6. A brief you can adapt for your own startup hang

The following is a new reusable brief, not a verbatim transcript of the BuildRoom session. Fill in your project and symptom. Start with evidence collection; an authorized repair should stay within the diagnosed scope.

TRY THIS IN CHATGPT
My Mac app becomes unresponsive at launch.
Project/workspace: [path]. Scheme and destination: [values].
Reproduction: [first launch / existing workspace / monitoring enabled].
First confirm the selected project, actual source and available Relayard capabilities.
Inspect startup, menu-bar updates, monitoring and disk reads.
Separate observations from hypotheses; do not infer a unique cause without evidence.
Before an authorized edit, preserve current changes and propose a focused diff.
Keep cleanup operations, authorization and signing outside this repair.
After the change, build and read the native result for that revision.
Verify app identity and fixture before first-launch and repeated-navigation checks.
Report passes, failures and unverified scenarios separately.
If runtime tools are unavailable, give the exact manual check; do not invent a result.

Apple’s responsiveness guidance explains why scheduling work asynchronously does not guarantee that it leaves the main actor. Instruments can distinguish a busy main thread from one blocked waiting for something else. Use a trace when available before choosing a concurrency change; a Task wrapper alone is not a demonstrated fix. [2] [3]

7. Finish with a handoff that another person can verify

The next acceptance step in this record was a manual check on the actual user workspace: save ongoing work, finish current operations, exit the old instance and run the updated app from the intended Xcode project. Check launch, repeated navigation and monitoring toggles. Do not delete the database, reset authorization or erase caches just to make the symptom disappear.

No real user-file cleanup or Simulator deletion was performed in the recorded session. No inspectable native screenshot or main-thread sample was obtained. An existing Quick Look actor-isolation warning remained. Those are concrete remaining limits, not reasons to discard the successful checks.

For your own task, leave four things: the applied diff and revision, the exact native outcomes, the scenarios still unverified, and the next reproduction step. Relayard is useful when it brings that evidence back into the same conversation where the change was discussed.

Common questions

Was the startup problem fully resolved?

The initial repair passed two startup-related checks, and the final revision built. The record does not establish full GUI acceptance or verification on the real user workspace.

Does this mean Relayard automatically profiles every hang?

No. This session did not obtain a main-thread sample. A connected workflow still depends on available tools, permissions, runtime evidence and an appropriate acceptance check.

Sources and next steps

Published October 17, 2026, from the retained October 10 BuildRoom verification bundle: its README, structured receipt summary and original portable-core logs. The public case record below is a redacted editorial summary, not the raw connector receipts or an independent reproduction. It omits local paths and session identifiers. Historical results and new workflow advice are distinguished in the text. Apple references were checked on publication day.

  1. BuildRoom case record: redacted historical evidence summary
  2. Apple: Improving app responsiveness
  3. Apple: Analyze hangs with Instruments