Commit 4291acf
committed
fixup: upsert notification_mode in add_notify_sub
INSERT OR IGNORE silently dropped notification_mode (and origin_*) on
duplicate (task_id, platform, chat_id, thread_id) keys, so a tool-driven
'synthesize' subscribe arriving after a slash-command 'direct' subscribe
left the original mode in place. Switch to ON CONFLICT DO UPDATE; preserve
existing user_id / origin_* via COALESCE so a partial re-subscribe never
clears context fields the first call established.
Add regression test in tests/tools/test_kanban_tools.py.1 parent 55bc6d5 commit 4291acf
2 files changed
Lines changed: 57 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4227 | 4227 | | |
4228 | 4228 | | |
4229 | 4229 | | |
4230 | | - | |
| 4230 | + | |
4231 | 4231 | | |
4232 | 4232 | | |
4233 | 4233 | | |
4234 | 4234 | | |
| 4235 | + | |
| 4236 | + | |
| 4237 | + | |
| 4238 | + | |
| 4239 | + | |
| 4240 | + | |
4235 | 4241 | | |
4236 | 4242 | | |
4237 | 4243 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
795 | 795 | | |
796 | 796 | | |
797 | 797 | | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
798 | 848 | | |
799 | 849 | | |
800 | 850 | | |
| |||
0 commit comments