Skip to content

fix: the app launches again — promise-view attach deferred to runtime-ready (goal 0256 P0) - #535

Merged
alicoding merged 1 commit into
mainfrom
fix/promise-attach-launch-crash
Aug 31, 2026
Merged

fix: the app launches again — promise-view attach deferred to runtime-ready (goal 0256 P0)#535
alicoding merged 1 commit into
mainfrom
fix/promise-attach-launch-crash

Conversation

@alicoding

Copy link
Copy Markdown
Owner

P0: the beta carrying #534 crashed at launch, reproduced locally and pinned — AttachFilePromiseReceiver ran InvokeSync from main.go's wiring before app.Run(), and the toolkit's main-thread dispatcher doesn't exist yet (nil deref in dispatchOnMainThread, SIGSEGV in under a second).

The native attach now waits for the window's first RuntimeReady event, which by construction fires only once the run loop is live. Verified: the rebuilt desktop binary launches and survives where the previous one died instantly.

🤖 Generated with Claude Code

https://claude.ai/code/session_012im1JxQQV2ahnXzZDdVmZq

…-ready (goal 0256 P0)

The beta carrying #534 crashed at launch: AttachFilePromiseReceiver
ran InvokeSync from main.go's wiring, BEFORE app.Run() -- and the
toolkit's main-thread dispatcher doesn't exist yet, so the dispatch
dereferenced nil (SIGSEGV, reproduced on a local desktop launch and
pinned to the exact frame). The native attach now waits for the
window's first RuntimeReady event, which by construction fires only
once the run loop is live; the callback registration itself stays
immediate. Verified: the rebuilt desktop binary launches and survives
where the previous one died in under a second.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012im1JxQQV2ahnXzZDdVmZq
@alicoding
alicoding enabled auto-merge (squash) August 31, 2026 01:30
@alicoding
alicoding merged commit 541906a into main Aug 31, 2026
30 checks passed
@alicoding
alicoding deleted the fix/promise-attach-launch-crash branch August 31, 2026 01:42
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