Skip to content

Prevent double-clicking a tab from escaping an active drafting session #11

Description

@yo4e

Context

Found during real use.

While a DRAFTED session is active and the quota has not yet been completed, double-clicking a browser tab can release/bypass the drafting lock and allow the user to escape the session.

Problem

The active-session constraint is intended to keep the writer on the manuscript until the required quota is reached. A simple double-click on a tab should not provide an accidental escape hatch.

Reproduction

  1. Start a DRAFTED session.
  2. Leave the quota incomplete.
  3. Double-click a browser tab while the session is active.
  4. The session can be escaped / the enforced manuscript state is released.

Exact tab/focus mechanics can be confirmed during implementation if browser behavior differs by platform or Chrome version.

Expected behavior

  • Double-clicking a tab must not dismiss or bypass an active DRAFTED session.
  • Until the quota is satisfied, tab interactions should preserve the same enforcement behavior as a normal single click / attempted navigation.
  • Existing intentional safety or recovery paths, if any, should remain available.
  • Completing the quota should still discharge the session normally.

Acceptance criteria

  • Reproduction above no longer allows leaving the active drafting session.
  • No regression in normal tab switching interception / manuscript refocusing.
  • No duplicate tabs or focus loops are introduced by the fix.
  • TEST DRAFT NOW follows the same corrected behavior.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions