- Home
- Skills
- Testing & Debugging
- Repair Multi-Tab Session Synchronization & State Bugs
More screenshots
Works with the AI tools you already use
Repair Multi-Tab Session Synchronization & State Bugs
The problem Users get logged out of one tab while remaining logged in on another, or concurrent token refreshes trigger race conditions that invalidate sessions.
$8.99
Repair Multi-Tab Session Synchronization & State Bugs
Example session with this skill installed
Users open our SPA in several tabs. One tab logs out, another wakes from sleep and writes an older refresh token back to storage, and a third starts a refresh request. Repair multi-tab session synchronization without forcing users to close other tabs.
- Read your context and instructions
- Compiled the repair multi-tab session
The likely issue is a contract mismatch around multi-tab browser sessions, login/logout propagation, token refresh, storage events, BroadcastChannel, stale tabs, race conditions, session generation, offline tabs, redirect loops, and cross-tab state ownership. I would first define the invariant: All tabs for one browser session must converge on the same authenticated session generation; an older tab may not restore revoked credentials or overwrite newer login/logout state. Then I would trace the smallest owning boundary, apply or propose a bounded repair/review step, and add deterministic normal, boundary, failure and replay tests. The workflow preserves existing authorization, privacy, security policy, public interfaces, user-visible behavior, and documented operational ownership. If repository/workspace files are available, findings can be mapped to exact paths and focused local validation; with partial evidence, the result stays an explicit diagnosis/evidence map with assumptions and no invented execution claims.
Connects securely to your tools. The creator never sees your data.
What you get
About this skill
The problem
Users get logged out of one tab while remaining logged in on another, or concurrent token refreshes trigger race conditions that invalidate sessions. These synchronization bugs are notoriously difficult to reproduce and often lead to security vulnerabilities or broken user experiences.
What it does
- Identifies race conditions in concurrent token refresh logic across multiple browser tabs.
- Audits
storageevents andBroadcastChannelimplementations for state propagation gaps. - Maps session generation ownership to prevent stale tabs from overwriting newer authentication states.
- Diagnoses redirect loops caused by inconsistent local storage or cookie states.
- Proposes deterministic fixes using localized mocks and boundary checks instead of flaky timing sleeps.
Why this beats prompting it yourself
General LLMs often suggest "hacks" like setTimeout to fix race conditions, which fail in production. This skill enforces a canonical invariant for session convergence and systematically checks edge cases like offline tab resumption and storage event delivery that are easily overlooked in manual prompts.
Use cases
- Fixing "ghost" sessions where a logged-out user can still perform actions in an old tab.
- Resolving infinite redirect loops on login pages during multi-tab usage.
- Implementing robust cross-tab logout propagation in React or Vue applications.
- Debugging failed JWT refreshes when multiple tabs hit the refresh endpoint simultaneously.
Known limitations
Requires access to session management code or detailed traces of storage events. Cannot verify fixes on production environments without local reproduction steps.
How to install
Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.
- 1
Download the ZIP
Free skills download straight away. Paid skills unlock right after purchase.
- 2
Unzip into your skills folder
Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.
- 3
Ask your agent to use it
Restart the agent if it was already running. It picks the skill up automatically - no config needed.
Skills folder by agent
Click the path to copy it. Create the folder if it does not exist yet.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
30-day refund
Not a fit? Get your money back
Trust & safety
Security scanned
Verified clean 13 days ago
- Passed all security checks, Safe to install