Roadmap item 1.3.1 introduces the golden-path tab-decoration provider seam.
When adding or changing provider behaviour:
- Register providers through renderer plugin hooks
(
getTabDecorationProviders) rather than ad hoc tab polling logic. - Keep provider ordering deterministic by sorting with this precedence:
prioritydescending, then provideridlexicographically, then stable registration index. - Keep list-slot output bounded and deterministic:
badgesmax 3 entries andwidgetsmax 2 entries after deduplication. - Trigger tab-decoration refreshes from explicit events (
subscribecallbacks or provider registration lifecycle), never fromsetIntervalpolling loops. - Add or update focused coverage in
test/unit/tab-decoration-providers.test.tsandtest/unit/tabs-decoration-updates.test.tswhenever merge or update logic changes.