You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Annotation and Inbox cards now read their objects live (#4332), but caching works differently for each provider:
Core keeps a card cache in packages/junior/src/api/objects/resolve.ts. It has one entry per viewer and URL, with a 60s TTL (OBJECT_LINK_TTL_MS) and staleIfError. The Google, Notion, and Sentry link types use it, so each viewer's card refetches about once a minute.
GitHub opts out of it (cacheCards: false) and reads its own shared object cache in packages/junior-github/src/object-cache.ts. Pull requests live for 1h and issues for 60s, and webhooks keep them fresh. ETag-conditional responses are saved for 6h (packages/junior-github/src/conditional-requests.ts).
Move GitHub's conditional-request cache into core as one HTTP cache under plugin egress:
Key each entry by URL and credential scope.
Let each link type or plugin set its TTL.
Revalidate with If-None-Match/If-Modified-Since, and serve the stale entry on error.
GitHub moves onto this cache and keeps only its webhook-driven invalidation.
Have each card carry fetchedAt, the time its cache entry was stored. Show "Last fetched …" on the full card again when the card is older than its link type's TTL.
Activity
feat(objects): Share one HTTP cache for live object cards (#4393)