Files
MemRelay/projects/bc51a377-ed2d-4afc-a176-554fce220d45/Checkpoint 2026-11-29 22-02-08 UTC [984f94cbd3].md
T
memrelay 3b40913380 create: Checkpoint 2026-11-29 22:02:08 UTC [984f94cbd3]
MemRelay-Operation: checkpoint-save:sms-impl-20261130-a1
MemRelay-Resource: 6e7a38d9-469c-4d91-85bd-5e3c2eb7792b
2026-11-30 06:02:13 +08:00

1.8 KiB
Raw Blame History

title, type, permalink, stable_id, scope, memory_type, project_id, usage_profile_id, status, revision, request_id, created_at, updated_at, tags
title type permalink stable_id scope memory_type project_id usage_profile_id status revision request_id created_at updated_at tags
Checkpoint 2026-11-29 22:02:08 UTC [984f94cbd3] checkpoint main/projects/bc51a377-ed2d-4afc-a176-554fce220d45/checkpoint-2026-11-29-22-02-08-utc-984f94cbd3 6e7a38d9-469c-4d91-85bd-5e3c2eb7792b project checkpoint bc51a377-ed2d-4afc-a176-554fce220d45 0c9feb46-d06e-43cd-9ef0-c5813c84a998 active 1 sms-impl-20261130-a1 2026-11-29T22:02:08.813264+00:00 2026-11-29T22:02:08.813264+00:00
mifipanel
sms
forward

短信子任务(sms)已实现,未上板。

做了什么:五个转发页发送测试(不落盘);转发失败记入 app.data/forward-log.json(最多 300 条,不存正文和密钥),内存重试 30 秒 / 2 分钟 / 10 分钟,面板重启后不再试;转发记录页、收信箱/已发/暂存/历史的批量删除和清空;自动清理存 sms-clean.json(off / 转发成功后删基带 / 只保留最近 N 条);密钥改密码框加眼睛。

关键约束:accept_live 返回值和 saved_id 去重没改;live.rs 没改;broadcast 签名没改且不写转发记录;main.rs 只加了 mod forward_log 和 mod sms_ops。手动重试会取消该渠道尚未开始的自动重试,避免连发。基带清空一次最多删 200 条。

验证:CARGO_TARGET_DIR=mifipanel/target/agent-sms。cargo check --offline 通过。cargo test --offline --bin mifipanel 全量 60 通过(含 a_reused_sms_number_after_restart_is_still_forwarded)。其后只删了一个未用字段,短信相关测试再跑通过。未上真机。

主代理:把 i18n-parts/sms.json 合并进四个 locale。菜单入口已有。

给下个会话:不要改 live.rs 的监听循环;删基带短信前要对号码和正文,避免编号重用删错;失败原因走 forward_log::sanitize_reason。