The tab bar was setting its `active` attribute synchronously on click, before TabCache.switchTo() finished fetching and injecting the new pane. This caused a visual desync where the tab highlighted immediately but the content area showed a blank flash or stale content. Now the tab bar dispatches the layer-switch event without changing its own active state. The shell event handler sets active only after switchTo() confirms the pane is ready, eliminating the race condition. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| components | ||
| db | ||
| local-first | ||
| x402 | ||
| module.ts | ||
| tab-cache.ts | ||
| url-helpers.ts | ||