Skip to content

feat: auto-close /open page after 10s with persistent toggle#26

Merged
tupe12334 merged 3 commits into
mainfrom
issue-21
Mar 22, 2026
Merged

feat: auto-close /open page after 10s with persistent toggle#26
tupe12334 merged 3 commits into
mainfrom
issue-21

Conversation

@tupe12334

Copy link
Copy Markdown
Member

Summary

  • Adds a 10-second countdown on the /open page success phase that automatically calls window.close()
  • Displays a live countdown ("Closing in 5…") so the user can see what's happening
  • Adds an "Auto-close tab" checkbox toggle visible during the success phase
  • Toggle state persists in localStorage under worktree:auto-close (default: true)
  • Toggling off cancels the active countdown; toggling back on restarts it from 10 seconds

Test plan

  • Build passes (pnpm build)
  • ESLint passes (0 errors)
  • Visual regression tests pass (27/27)
  • Manually verify countdown displays and window.close() fires after 10s on the /open?... page
  • Manually verify toggling off cancels the countdown, toggling on restarts it
  • Verify localStorage key worktree:auto-close persists across page visits

Closes #21

🤖 Generated with Claude Code

tupe12334 and others added 2 commits March 22, 2026 15:00
Implements a 10-second countdown on the success phase of the /open page
that automatically calls window.close(). A labeled checkbox lets users
disable this behavior; the preference is stored in localStorage under
the key `worktree:auto-close` (default: true). Toggling off cancels the
timer; toggling back on restarts it from 10 seconds.

Closes #21

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Keep closed status from issue-21 branch.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@tupe12334 tupe12334 merged commit 7473f0c into main Mar 22, 2026
@github-actions

Copy link
Copy Markdown

Preview deployment

🚀 https://33482357.worktree-io-landing.pages.dev

@github-actions

Copy link
Copy Markdown

Preview deployment

🚀 https://90cc8107.worktree-io-landing.pages.dev

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.

1 participant