Skip to content

Conversation

jonathanKingston
Copy link
Contributor

@jonathanKingston jonathanKingston commented Sep 17, 2025

Asana Task/Github Issue: https://app.asana.com/1/137249556945/project/1199237043598868/task/1211383639881299?focus=true

Description

Schedules a re-check of the content after a period of time.

Testing Steps

Checklist

Please tick all that apply:

  • I have tested this change locally
  • I have tested this change locally in all supported browsers
  • This change will be visible to users
  • I have added automated tests that cover this change
  • I have ensured the change is gated by config
  • This change was covered by a ship review
  • This change was covered by a tech design
  • Any dependent config has been merged

Note

Introduces a delayed recheck of page content after mutations with configurable delay and capped retries, plus timer cleanup and minor logging updates.

  • Page context collection (injected/src/features/page-context.js):
    • Delayed recheck: Schedule content re-collection after DOM mutations via scheduleDelayedRecheck() using navigationRecheckDelayMs (default 1500ms).
      • Adds #delayedRecheckTimer, recheckCount, recheckLimit (from recheckLimit setting; default 5), and clearTimers().
      • MutationObserver now invalidates cache and schedules a delayed recheck.
      • handleContentCollectionRequest(resetRecheckCount = true) resets recheckCount by default; delayed rechecks pass false.
    • Cache/observer flow: On delayed recheck, cache invalidated before collecting and sending content.
    • Logging: Additional logs for scheduling/recheck and content markdown generation.

Written by Cursor Bugbot for commit bbad703. This will update automatically on new commits. Configure here.

Copy link

netlify bot commented Sep 17, 2025

Deploy Preview for content-scope-scripts ready!

Name Link
🔨 Latest commit bbad703
🔍 Latest deploy log https://app.netlify.com/projects/content-scope-scripts/deploys/68e696f8c4daa7000704e211
😎 Deploy Preview https://deploy-preview-1970--content-scope-scripts.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

github-actions bot commented Sep 17, 2025

Temporary Branch Update

The temporary branch has been updated with the latest changes. Below are the details:

Please use the above install command to update to the latest version.

Copy link

github-actions bot commented Sep 17, 2025

[Beta] Generated file diff

Time updated: Wed, 08 Oct 2025 16:53:55 GMT

Apple
    - apple/contentScope.js

File has changed

Integration
    - integration/contentScope.js

File has changed

Windows
    - windows/contentScope.js

File has changed

@jonathanKingston jonathanKingston force-pushed the jkt/delayed-content-collect branch from f2374f8 to 88209f9 Compare October 8, 2025 15:11
@jonathanKingston jonathanKingston marked this pull request as ready for review October 8, 2025 15:11
@jonathanKingston jonathanKingston requested a review from a team as a code owner October 8, 2025 15:11
cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

@jonathanKingston jonathanKingston force-pushed the jkt/delayed-content-collect branch from 7322e4c to db5aec0 Compare October 8, 2025 16:16
cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

@jonathanKingston jonathanKingston added this pull request to the merge queue Oct 8, 2025
Merged via the queue into main with commit c788a98 Oct 8, 2025
21 checks passed
@jonathanKingston jonathanKingston deleted the jkt/delayed-content-collect branch October 8, 2025 18:05
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.

2 participants