Commit 06c2afa
fix: break circular dependency causing TUI worker crash
Installation imported Telemetry at the top level, creating a cycle:
Installation → Telemetry → Config → ModelsDev → Installation
When ModelsDev.refresh() ran at module load time, Installation was
still undefined, crashing the TUI worker with:
TypeError: undefined is not an object (evaluating 'Installation.USER_AGENT')
Fix: use a dynamic import inside upgrade() so Telemetry is only loaded
after all modules have fully initialized.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 53625bc commit 06c2afa
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
175 | 174 | | |
176 | 175 | | |
177 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
178 | 180 | | |
179 | 181 | | |
180 | 182 | | |
| |||
0 commit comments