Files
ai-passport/docs/profile-upload.md
T
hex2077 6a7f4e010b chore: 新增大量静态资源、测试桩文件与配置文件,清理旧无用资源
本次提交新增了多种字体、UI图片、音频剪辑等静态资源,添加了测试桩文件与项目配置文件,同时清理了部分已废弃的旧图片与测试桩代码文件。
2026-09-22 00:42:26 +08:00

1.4 KiB

简体中文 · English

Profile upload recovery — 2.6.24

Profile uploads use an inactive flash bank. After commit, the navigation task must refresh all UI references before the former bank can be reused. Previously, screen sleep skipped that refresh indefinitely, leaving subsequent uploads rejected with ESP_ERR_INVALID_STATE, including otherwise valid QR uploads.

The navigation task now requests a wake when a committed revision is awaiting display acknowledgement. Configuration writes also request activity through the existing power owner; protocol tasks never invoke LVGL directly. The flash reuse barrier remains enforced.

Protocol errors distinguish display_pending, profile_changed, and upload_busy. USB and hotspot clients preserve these reasons. The configuration page retries only display_pending, up to 15 times at 250 ms intervals. It does not replace a stale base revision or retry another client's upload. Failed preparation preserves the browser draft; an abort is sent only after this client successfully began an upload. info additionally reports profileReady and refreshPending for diagnostics.

Regression tests: tests/test_profile_upload.cjs, tests/test_badges_ui.cjs, and tests/test_profile_store.c. Device testing must include upload after display idle, QR readback, an immediately following upload, and preservation of other profile data.