You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor(runtime-host): fold the desktop E2E candidate main into the real entrypoint #3085
packages/runtime-host/src/desktop-e2e-execution-candidate-main.ts is a second copy of the real candidate startup (execution-candidate-main.ts), forked only for Desktop E2E. It re-implements startup with a FakeBackend subclass, hardcoded OAuth stubs, bootstrapRuntimePolicy: false, and idleGraceMs: 500, and is selected by module name at apps/desktop/src/main/runtime-host-boot.ts:501 under MAKA_E2E=1.
It is a fork of a lifecycle authority that must be hand-synced and has already drifted (it lacks the real main's startup-failure classification and policy bootstrap). The real main already accepts composition overrides, so the fork is avoidable.
Desired outcome
One candidate entrypoint with an E2E composition/flag override. Desktop E2E keeps its deterministic backend; production startup is unchanged.
Alternatives or workarounds
Keep the fork and continue hand-syncing two copies of the same startup path.
Acceptance
desktop-e2e-execution-candidate-main.ts and its package subpath export are removed
runtime-host-boot.ts selects the single candidate main with an E2E override (flag or composition), not a separate module
Desktop E2E still gets its deterministic FakeBackend backend
Desktop E2E fixtures pass; runtime-host and desktop build/typecheck pass
I'm working on this. I'll remove desktop-e2e-execution-candidate-main.ts and select the single candidate entrypoint from Desktop boot with an E2E composition/flag override, so Desktop E2E still gets the deterministic FakeBackend without a forked startup path.
Grok is assisting with the implementation; I will review the change and remain the human contributor of record.
Activity
1625567290 commentedon Aug 16, 2026
I'm working on this. I'll remove
desktop-e2e-execution-candidate-main.tsand select the single candidate entrypoint from Desktop boot with an E2E composition/flag override, so Desktop E2E still gets the deterministic FakeBackend without a forked startup path.Grok is assisting with the implementation; I will review the change and remain the human contributor of record.
简体中文对照
我来处理。删除
desktop-e2e-execution-candidate-main.ts,让 Desktop boot 用组合/flag 覆盖选中同一条 candidate 入口,Desktop E2E 仍使用确定性 FakeBackend,不再分叉一份启动路径。Grok 协助实现;我会审阅改动,并作为 human contributor of record。
refactor(runtime-host): fold the desktop E2E candidate into the real …