perf(tui): reduce cold-start latency

This commit is contained in:
chengyongru authored and chengyongru committed 2026-08-18 16:28:46 +08:00
1 parent 369a3443eb
commit df14259717
19 files changed
+669 -160

No files matched your search

+8
View File
@@ -112,6 +112,14 @@ export class RuntimeControls {
void this.load().catch(() => {})
}
useApiConnection(apiUrl: string, apiToken: string): void {
this.options.apiUrl = apiUrl
this.options.apiToken = apiToken
this.controlsLoaded = false
this.controlsLoadedAt = 0
this.preload()
}
updateWorkspaceScope(scope: WorkspaceScopePayload): void {
this.scope = scope
this.render()