# Global layout restore is delayed at startup by a slow autostart app

**URL:** <https://community.interop.io/t/global-layout-restore-is-delayed-at-startup-by-a-slow-autostart-app/795>\
**Category:** io.Connect Desktop\
**Tags:** FAQs, iocd-10\
**Created:** [November 25, 2026, 11:22am UTC](https://community.interop.io/t/global-layout-restore-is-delayed-at-startup-by-a-slow-autostart-app/795 "2026-11-25T11:22:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BShopov](https://yyz2.discourse-cdn.com/flex028/user_avatar/community.interop.io/bshopov/32/384_2.png) [@BShopov](https://community.interop.io/u/BShopov)\
**Post date:** [November 25, 2026, 11:22am UTC](https://community.interop.io/t/global-layout-restore-is-delayed-at-startup-by-a-slow-autostart-app/795/1 "2026-11-25T11:22:47Z")

</div>

**Applies to:** io.Connect Desktop 10 before 10.4.2 **Fixed in:** io.Connect Desktop 10.4.2

On io.Connect Desktop 10 before 10.4.2, one slow auto-start app can hold up the global layout restore at startup, even with `"waitForInitialization": false`. Upgrade to 10.4.2 or later; the slow app’s configuration doesn’t need to change unless it has `"critical": true`.

**Symptoms**

- The toolbar or launcher appears at startup, but the global layout opens only after a delay that can exceed a minute.
- One of your auto-start apps is remote: its definition has an `asset` that the platform downloads and unzips, such as a zipped Node.js server.

**Confirm that you’re affected**

You’re affected if, in `application.log` (by default in `%LocalAppData%\interop.io\io.Connect Desktop\UserData\<env>-<region>\logs`), the group containing the slow app finishes only when that app’s unzip is done, and the layout restore follows it:

```auto
[2026-01-15T09:00:05.000] [INFO] auto-start-apps - starting 4 auto-started apps for stage: "user" with priority: 0 - toolbar,app-a,app-b,remote-server
[2026-01-15T09:00:09.000] [INFO] remote-apps-manager/remote-server - will unzip "server.zip" in "...\remoteApps\remote-server"...
[2026-01-15T09:00:59.000] [INFO] remote-apps-manager/remote-server - unzipped "server.zip" in "...\remoteApps\remote-server".
[2026-01-15T09:00:59.050] [INFO] auto-start-apps - finished starting 4 auto-started apps for stage: "user" with priority: 0 in 54050ms
[2026-01-15T09:00:59.052] [INFO] layouts/manager - [token] restoring layout name: "My Layout", type: "Global", options: {...}

```

If a group takes that long but no remote app in it is unzipping, look at the group’s other apps. From 10.4.2 the platform waits only for those that are `"critical": true` or set `waitForInitialization` to `"appSignal"`, `"interopReady"` or `true`.

**Cause**

On these versions, the platform waits for every auto-start app in a group to start, and restores the global layout only after the last user-stage group. Starting a remote app includes downloading and unzipping its package, and `"waitForInitialization": false` skips only the readiness wait that comes after. The docs describe `"no"` as not waiting for the start at all, which is how 10.4.2 and later behave.

The package is requested and unzipped again on every start. Moving the app to another stage or priority doesn’t help, because every stage and group finishes before the restore.

**Fix: upgrade to 10.4.2 or later**

From 10.4.2, an auto-start app with `waitForInitialization` set to `"no"`, `false`, or not set starts in the background. Each group’s closing line shows how many of its apps the platform waited for, and the restore starts right after the last group:

```auto
[2026-01-15T09:00:05.016] [INFO] auto-start-apps - finished starting 0 of 4 auto-started apps for stage: "user" with priority: 0 in 6ms
[2026-01-15T09:00:05.150] [INFO] layouts/manager - [token] restoring layout name: "My Layout", type: "Global", options: {...}

```

Apps the platform still waits for are logged as `blocking`.

**Before you upgrade**

- **Other apps need a service from an auto-start app at startup.** Set that app’s `runPriority.waitForInitialization` to `"appSignal"`, start the apps that need it in a lower-priority group or a later stage (`priority` alone doesn’t make the platform wait), and have that app signal once the service is ready:

```js
await io.interop.invoke("T42.GD.Execute", { command: "signal-app-ready" });

```

- \*\*An app has \*\*`"critical": true`. The platform still waits for it to start, so a slow critical remote app keeps delaying the restore. If the platform can run without that app, remove `"critical": true`.
- **An auto-start app imports other auto-start apps at runtime.** Give it `"appSignal"` and signal after the import, or the stage can end first and the imported apps won’t auto-start.
- \*\*You handle \*\*`T42.AppManager.AutoStart.Stage`. On `"stageCompleted"`, read the new `awaited` list; `apps` now includes apps the platform didn’t wait for.

**If you can’t upgrade yet**

Take the slow app out of auto-start and start it from an app that’s already running, such as a toolbar you build. Add to the slow app’s definition:

```json
{
    "name": "<your-app-name>",
    "autoStart": false,
    "ignoreFromLayouts": true
}

```

Start it from that app without awaiting it on its startup path, since the promise settles only when the package is ready:

```js
const app = io.appManager.application("<your-app-name>");
app?.start().catch((err) => console.error("could not start <your-app-name>", err));

```

`"ignoreFromLayouts": true` is required. Without it, the next layout save captures the app, and a later restore that closes running instances stops it.

With the workaround, the slow app comes up only after the layout restore, so apps that need it at startup must handle it not being there yet.

The workaround doesn’t work for apps with `"service": true`, which turns auto-start back on.

## Related

- [io.Connect Desktop 10.4.2 changelog](https://docs.interop.io/desktop/getting-started/changelog/platform/10-4-2/index.html)
- [Application configuration: Waiting for app initialization](https://docs.interop.io/desktop/developers/configuration/application/index.html#boot_sequence-waiting_for_app_initialization)
- [Boot sequence: Signaling the platform](https://docs.interop.io/desktop/capabilities/more/features/index.html#boot_sequence-signaling_the_platform)
