Skip to content

Conversation

@arein
Copy link
Contributor

@arein arein commented Oct 19, 2025

  • Increased test timeout from 10s to 30s in ModalPage.ts to prevent premature failures in slower CI/CD environments
  • Added 20s timeout diagnostic message in InitializeBoundary.tsx to help identify stuck initialization issues
  • Diagnostic message includes timestamp for debugging

This addresses the issue where tests fail with "Initializing..." stuck state, particularly in canary tests.

🤖 Generated with Claude Code

Description

Should improve failing tests like https://reown-inc.slack.com/archives/C09FN4W5CHJ/p1760844979492769?thread_ts=1760800590.498999&cid=C09FN4W5CHJ

Type of change

  • Chore (non-breaking change that addresses non-functional tasks, maintenance, or code quality improvements)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

  • Code in this PR is covered by automated tests (Unit tests, E2E tests)
  • My changes generate no new warnings
  • I have reviewed my own code
  • I have filled out all required sections
  • I have tested my changes on the preview link
  • Approver of this PR confirms that the changes are tested on the preview link

Note

Adds a 20s timeout in InitializeBoundary to display a diagnostic message with timestamp if initialization is slow.

  • Laboratory
    • apps/laboratory/src/components/InitializeBoundary.tsx:
      • Add hasTimedOut state and useEffect timer (20s) to detect prolonged initialization.
      • Show conditional diagnostic message with timestamp when still initializing after 20s.

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

- Increased test timeout from 10s to 30s in ModalPage.ts to prevent premature failures in slower CI/CD environments
- Added 20s timeout diagnostic message in InitializeBoundary.tsx to help identify stuck initialization issues
- Diagnostic message includes timestamp for debugging

This addresses the issue where tests fail with "Initializing..." stuck state, particularly in canary tests.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@arein arein requested a review from magiziz October 19, 2025 03:51
@changeset-bot
Copy link

changeset-bot bot commented Oct 19, 2025

⚠️ No Changeset found

Latest commit: 68ced57

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Oct 19, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
appkit-basic-html Ready Ready Preview Comment Nov 12, 2025 9:22am
appkit-demo Ready Ready Preview Comment Nov 12, 2025 9:22am
appkit-gallery Ready Ready Preview Comment Nov 12, 2025 9:22am
appkit-headless-sample-app Ready Ready Preview Comment Nov 12, 2025 9:22am
appkit-laboratory Ready Ready Preview Nov 12, 2025 9:22am
10 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
appkit-basic-example Ignored Ignored Nov 12, 2025 9:22am
appkit-basic-sign-client-example Ignored Ignored Nov 12, 2025 9:22am
appkit-basic-up-example Ignored Ignored Nov 12, 2025 9:22am
appkit-ethers5-bera Ignored Ignored Nov 12, 2025 9:22am
appkit-nansen-demo Ignored Ignored Nov 12, 2025 9:22am
appkit-vue-solana Ignored Ignored Nov 12, 2025 9:22am
appkit-wagmi-cdn-example Ignored Ignored Nov 12, 2025 9:22am
ethereum-provider-wagmi-example Ignored Ignored Nov 12, 2025 9:22am
next-wagmi-solana-bitcoin-example Ignored Ignored Nov 12, 2025 9:22am
vue-wagmi-example Ignored Ignored Nov 12, 2025 9:22am

@github-actions
Copy link
Contributor

github-actions bot commented Oct 19, 2025

📦 Bundle Size Check

All bundles are within size limits

📊 View detailed bundle sizes

> @reown/[email protected] size /home/runner/work/appkit/appkit


> size-limit

@reown/appkit - Main Entry
Size limit:   80 kB
Size:         73.9 kB with all dependencies, minified and gzipped
Loading time: 1.5 s   on slow 3G
Running time: 924 ms  on Snapdragon 410
Total time:   2.4 s
@reown/appkit/react
Size limit:   230 kB
Size:         224.74 kB with all dependencies, minified and gzipped
Loading time: 4.4 s     on slow 3G
Running time: 1.1 s     on Snapdragon 410
Total time:   5.5 s
@reown/appkit/vue
Size limit:   80 kB
Size:         73.9 kB with all dependencies, minified and gzipped
Loading time: 1.5 s   on slow 3G
Running time: 514 ms  on Snapdragon 410
Total time:   2 s
@reown/appkit-scaffold-ui
Size limit:   220 kB
Size:         206.54 kB with all dependencies, minified and gzipped
Loading time: 4.1 s     on slow 3G
Running time: 796 ms    on Snapdragon 410
Total time:   4.9 s
@reown/appkit-ui
Size limit:   500 kB
Size:         13.15 kB with all dependencies, minified and gzipped
Loading time: 257 ms   on slow 3G
Running time: 69 ms    on Snapdragon 410
Total time:   326 ms

@github-actions
Copy link
Contributor

github-actions bot commented Oct 19, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 79.59% 38067 / 47827
🔵 Statements 79.59% 38067 / 47827
🔵 Functions 77.69% 4113 / 5294
🔵 Branches 86.57% 9252 / 10687
File CoverageNo changed files found.
Generated in workflow #16313 for commit 68ced57 by the Vitest Coverage Report Action

…eBoundary

Inverted condition in useEffect to avoid inconsistent return pattern.
Now the effect either returns a cleanup function or undefined implicitly,
satisfying the ESLint consistent-return rule.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@github-actions
Copy link
Contributor

github-actions bot commented Oct 27, 2025

Visual Regression Test Results ❌ Failed

⚠️ 1 visual change(s) detected

Chromatic Build: https://www.chromatic.com/build?appId=6493191bf4b10fed8ca7353f&number=390
Storybook Preview: https://6493191bf4b10fed8ca7353f-lusklqyeej.chromatic.com/

👉 Please review the visual changes in Chromatic and accept or reject them.

@enesozturk enesozturk enabled auto-merge November 7, 2025 08:48
Initializing...
{hasTimedOut && (
<div style={{ marginTop: '10px', fontSize: '12px', color: '#888' }}>
Still initializing after 20s (started: {new Date().toISOString()})
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Startup timestamp misleads by using current time instead of start time

The timestamp displays the current time when the diagnostic message renders, not when initialization actually started. The label says "started:" but new Date().toISOString() creates a fresh timestamp approximately 20 seconds after initialization began, making it misleading for debugging stuck initialization issues.

Fix in Cursor Fix in Web

}

return undefined
}, [isInitialized])
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Timeout flag leaks across reinitializations

The hasTimedOut state is never reset when isInitialized transitions from false to true or back to false. If initialization completes and later resets (e.g., reconnection), the diagnostic message appears immediately instead of after 20 seconds because hasTimedOut remains true from the previous initialization attempt.

Fix in Cursor Fix in Web

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.

4 participants