picoclaw/pkg/channels/wecom
美電球 75270c4777
Fix 1886 media cleanup policy (#1887)
* fix(media): track cleanup ownership per path

Add explicit cleanup policy handling to MediaStore and count refs by path before deleting the underlying file. This prevents cleanup from removing shared files until the final ref is gone.

Refs #1886

* fix(tools): keep send_file refs forget-only

Mark send_file media registrations as forget-only so cleanup drops the ref without deleting the original workspace file.

Refs #1886

* fix(channels): declare managed media cleanup policy

Explicitly mark downloaded and managed channel media as delete-on-cleanup so media ownership is visible at each registration site.

Refs #1886
2026-03-23 12:13:59 +08:00
..
aibot.go Feat/wecom aibot processing message config (#1785) 2026-03-20 00:23:40 +08:00
aibot_test.go Feat/wecom aibot processing message config (#1785) 2026-03-20 00:23:40 +08:00
aibot_ws.go Fix 1886 media cleanup policy (#1887) 2026-03-23 12:13:59 +08:00
aibot_ws_test.go Implement the latest long-connection mode for the WeCom AI Bot. (#1295) 2026-03-19 20:06:51 +08:00
app.go fix: resolve merge conflicts in wecom error handling 2026-03-05 22:01:32 +09:00
app_test.go fix(security): harden unauthenticated tool-exec paths (#1360) 2026-03-11 19:22:20 +08:00
bot.go fix: resolve merge conflicts in wecom error handling 2026-03-05 22:01:32 +09:00
bot_test.go fix(security): harden unauthenticated tool-exec paths (#1360) 2026-03-11 19:22:20 +08:00
common.go fix(security): harden unauthenticated tool-exec paths (#1360) 2026-03-11 19:22:20 +08:00
dedupe.go fix(wecom): replace dedupe map rotation with circular queue 2026-03-02 18:50:51 +03:00
dedupe_test.go fix(wecom): resolve upstream rebase conflicts after channel refactor 2026-03-02 18:54:11 +03:00
init.go Add WeCom AIBot channel implementation and tests 2026-03-02 17:42:42 +08:00