Skip to content

fix(staged): derive timeline hashtag items reactively to prevent stale badges - #634

Merged
matt2e merged 1 commit into
mainfrom
timeline-showing-old-title
Apr 15, 2026
Merged

fix(staged): derive timeline hashtag items reactively to prevent stale badges#634
matt2e merged 1 commit into
mainfrom
timeline-showing-old-title

Conversation

@matt2e

@matt2e matt2e commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Make timeline-derived hashtag items reactive ($derived) so badges update immediately when the timeline refreshes, fixing stale title badges
  • Split hashtag item computation: timeline items are derived reactively, project notes are loaded async separately
  • Export timelineToHashtagItems for direct use in the component

Test plan

  • Open a branch card and verify hashtag badges render correctly
  • Trigger a timeline refresh and confirm badges update without requiring a full reload
  • Verify project note badges still appear for branches with project notes

🤖 Generated with Claude Code

…e badges

Previously, hashtagItems were loaded via a separate async effect that only
re-ran when branch.id or projectId changed. This meant hashtag badges showed
stale note titles after AI generation updated them. Now timeline-derived
hashtag items use $derived from the already-refreshed timeline state, so
badges always reflect current titles.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@matt2e
matt2e requested review from baxen and wesbillman as code owners April 15, 2026 06:55
@matt2e
matt2e merged commit ad5e92f into main Apr 15, 2026
5 checks passed
@matt2e
matt2e deleted the timeline-showing-old-title branch April 15, 2026 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant