Sign-out: reach other tabs when storage refuses the sign-out's writes even after the wipe
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 15/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- frontend
Hướng nghiên cứu
Start with the API explorer section of DESIGN.md and the sign-out code that writes Studio:ExplorerAuthEpoch and Studio:AppSignOut to localStorage, as described in #1956. Before any change, decide whether a BroadcastChannel fallback is worth its partial coverage, since the issue itself calls that a design call. Done means that decision is recorded and, if approved, the live-tab path is specified and tested.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What happens
A sign-out reaches other tabs through localStorage. It bumps the API explorer's sign-out generation (Studio:ExplorerAuthEpoch) and writes the Studio:AppSignOut announcement. #1956 makes both survive the sign-out's own storage wipe, and retries each once after the wipe has made room. Two cases are left for a store that refuses even that retry:
- Generation refused twice. If both the collapse and its retry are refused, the old generation stays current. A tab that missed the live event and reloads keeps an explorer credential stamped before the sign-out. This tab writes the owed collapse on its next entity sign-out, but a reload forgets that it is owed.
- Announcement refused twice. It is never sent. #1956 does this on purpose: an announcement sent late could end a session the user has signed back into in another tab (see the API explorer section of
DESIGN.md).
Both need a store that refuses writes right after it has been emptied, such as a broken quota, a storage policy, or a private-mode quirk. Neither happens on a normal sign-out.
- A sign-in marker refused twice (from #1969). If storage refuses both removing and blanking a signed-out entity's marker, #1969 retries the removal later. If another tab signed in again at the same URL in the meantime, the retry can delete that new marker, because the stored value is the same either way. When the refused value couldn't be read, the retry deletes whatever is stored. Either way the entity just looks signed out on the next load.
Possible fix
Add a second cross-tab channel for when storage refuses every write, for example a BroadcastChannel the sign-out posts to. It reaches tabs that are running, not tabs that are reloading, so it covers the live path only. A durable fix for a store that won't take writes may not exist. Whether a new channel is worth that partial coverage is a design call.
Review-Deferral: 22601929e2fc387e severity=nit category=security
Review-Deferral: 6f2a8235a818a050 severity=nit category=reliability
Review-Deferral: a09380796d04a58f severity=nit category=data-integrity
Raised by the cross-model review of #1956 (#1946).
🤖 Generated by Anthropic Claude Code (Claude Opus 5.5); posted via @dawsontoth.
- Ngôn ngữ chính
- TypeScript
- Star
- 5
- Fork
- 4
- Merge trung bình
- 1 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 144
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của HarperFast/studio
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
HarperFast/studio#2070 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
HarperFast/studio#2067 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
HarperFast/studio#2053 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
HarperFast/studio#2026 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
HarperFast/studio#2021 ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của HarperFast/studio
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
mcp: create_app refuses the Assistant Inbox spec as 'looks like an API key' (nesting deeper than 8)Đang mởagent:claude agent:ready dogfood type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
opennextjs/opennextjs-cloudflare#1485 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement lane: fast tier: should-stable
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
unicef/adt-studio#1078 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
WenyuChiou/agent-board#1283 ·
Maintainer thường phản hồi trong vòng 1 ngày