Commit b87f1d2
committed
feat(Sky): Signal Mountain lifecycle phases from frontend to skip fallback timers
Add implementation in Mountain.astro to advance the workbench lifecycle phases (Restored at 0ms, Eventually at 2000ms) by invoking the Tauri IPC command `lifecycle:advancePhase` directly from the frontend. This allows Mountain to skip its built-in 8s/23s fallback timers and transition to interactive states as soon as the workbench is ready.
The implementation uses dynamic import for @tauri-apps/api/core since the workbench boots in a plain module context without a pre-resolved bundle. Calls are wrapped in try/catch with performance markers for observability.
This implements the Atom P3 milestone for optimized lifecycle management, enabling the sidebar to refresh live after VSIX install/uninstall without relying on Mountain's fallback timers.1 parent 4517367 commit b87f1d2
2 files changed
Lines changed: 40 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
69 | 108 | | |
70 | 109 | | |
71 | 110 | | |
| |||
0 commit comments