More screenshots

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Repair Multi-Tab Session Synchronization & State Bugs

    1

    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.

    $1

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Repair Multi-Tab Session Synchronization & State Bugs

    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.

    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 storage events and BroadcastChannel implementations 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.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Testing & Debugging.

    Cannot verify production systems, external services, or facts not present in supplied evidence. With partial context it returns bounded diagnosis/review, explicit assumptions, and a deterministic validation plan rather than claiming successful execution.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 1 month ago

    Permissions

    Terminal / Shell
    Read Files
    Write Files

    Use a clean branch or controlled review workspace. Supply repository/workspace files, logs, traces, configuration, documents, or evidence needed for the task. Review patches/findings before merge or operational action; keep production credentials and destructive production actions out of the workflow.

    Listed1 month ago
    Updated9 days ago

    What's inside

    Frequently Asked Questions

    This skill identifies and repairs race conditions where multiple tabs attempt to refresh tokens simultaneously, and it fixes "ghost sessions" where a logout in one tab fails to propagate to others.

    The skill is designed to work with most leading AI coding agents that have file-system or codebase access, providing them with the specialized logic needed to audit BroadcastChannel and storage event implementations.

    You will receive the specialized agent instructions, a suite of localized mock templates for reproducing race conditions, and a guide on how to provide the agent with the necessary storage event traces.

    While it works best with standard JavaScript/TypeScript environments (like React, Vue, or Angular), it can be adapted to any web framework that relies on LocalStorage, IndexedDB, or Cookies for session persistence.

    No, the skill operates by analyzing your local codebase or provided event traces to propose deterministic architectural fixes; it never requires access to your live production environment or user data.

    New in Testing & Debugging