Console keeps offering "Return to configured kiosk" for devices already running it (bulk / Run command kiosk.enter)
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 48/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- android, kotlin, react, typescript
调研方向
Start in web/src/data/kiosk.ts at configuredKioskState and trace how kiosk.enter payloads, configuredKioskIds(), and server-side kiosk generations determine the displayed action. Then inspect the server REST API and bulk command paths named in the report to find where configured kiosk state can be recorded and shared across browsers. Done means devices entering their configured kiosk through bulk or Run command show the correct remote action across browsers; the two additional device failures may need separate investigation.
由索引模型根据 Issue 内容生成。
描述
Component
Server / REST API
What happened?
Version: server 0.5.0, agents 0.5.0 (also older agents), Docker install.
Steps:
- Select all devices in Devices → Run command → Exit kiosk. Devices leave kiosk.
- Select all again → Enter kiosk (bulk), same kiosk as the configuration.
- 27 commands finish DONE; 24 of those devices report kioskActive=true.
- Open any of these devices: Remote actions still shows "Return to configured kiosk"
as the primary action, as if the device were not in its configured kiosk.
Cause (web/src/data/kiosk.ts, configuredKioskState): a kiosk.enter counts as the
configured kiosk only if its id is in configuredKioskIds(), which lives in the
browser's localStorage and is written only by DeviceDetailPage
(rememberConfiguredKiosk). Bulk sends (BulkModals returnToConfiguredKiosk, Run
command) never record their ids, and another browser never sees them. The
server-side generations (kioskGeneration / kioskReturnGeneration) are only set by
the on-device return, so kioskReturnGeneration stays null for every device.
Expected: the "in configured kiosk" state should come from the server (e.g. mark
kiosk.enter as configured when its payload matches the configuration, or record it
server-side for bulk sends), not from one browser's localStorage.
Related, same rollout:
- One device rebooted, and 4 s after boot kiosk.enter returned DONE, but its state
still reports kioskActive=false (no kioskExit event after the command). - A second device now fails every command with "Unable to parse preferences proto."
(same as the earlier report: corrupted Preferences DataStore, no corruptionHandler).
Steps to reproduce
0
MDMesh version / commit
0.5.0
Environment
No response
Relevant logs
Before submitting
- I searched existing issues and this isn't a duplicate.
- I'm not reporting a security vulnerability here (those go via private disclosure, not a public issue).
- 主要语言
- Java
- 星标
- 44
- 派生
- 25
- 平均合并
- 1 天 13 小时
- 30 天内合并 PR
- 80
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
MDMesh-app/MDMesh 的其他 Issue
-
enhancement
难度 1/5 1-3 小时 新手友好度 88/100
MDMesh-app/MDMesh#252 ·
维护者通常 2 天内回复
-
enhancement
难度 3/5 1-2 天 新手友好度 45/100
MDMesh-app/MDMesh#253 ·
维护者通常 2 天内回复
-
enhancement
难度 3/5 半天 新手友好度 45/100
MDMesh-app/MDMesh#205 ·
维护者通常 2 天内回复
-
难度 5/5 一周以上 新手友好度 12/100
MDMesh-app/MDMesh#204 · 2 条评论 ·
维护者通常 2 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 15/100
MDMesh-app/MDMesh#199 · 1 条评论 · 1 个 reaction ·
维护者通常 2 天内回复
查看 MDMesh-app/MDMesh 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
-
bug devops low
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
-
难度 1/5 1 小时以内 新手友好度 80/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
aphtech/brailleblaster#209 ·
维护者通常 1 天内回复