fix(extension): clear currentTabId in storage on TabsController.init

Reset currentTabId via updateCurrentTabId(null) so the storage projection
stays consistent with isAgentRunning. Prevents the previous run's tab from
briefly flashing the mask when a new run starts within the heartbeat window.

Closes #550
This commit is contained in:
Simon
2026-06-11 20:37:19 +08:00
parent 73810b3ed8
commit d3797109bf

View File

@@ -42,7 +42,7 @@ export class TabsController {
throw new Error('TabsController already disposed')
}
this.currentTabId = null
await this.updateCurrentTabId(null)
this.disposed = false
this.port = undefined
this.portRetries = 0