picoclaw/pkg/channels/discord
美電球 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
..
discord.go Fix 1886 media cleanup policy (#1887) 2026-03-23 12:13:59 +08:00
discord_resolve_test.go fix(discord): prevent duplicate link expansion and add regex tests 2026-03-04 15:11:30 +08:00
discord_test.go Merge remote-tracking branch 'origin/main' into feat_discord_proxy 2026-03-03 18:38:57 +08:00
init.go refactor(channels): add channel subpackages and update gateway imports 2026-02-20 23:25:44 +08:00