You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/discord-backup-field-notes.sh
+54-21Lines changed: 54 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -58,36 +58,64 @@ write_fallback_notes() {
58
58
)
59
59
60
60
fallback_query "$recent_human_cte
61
-
select channel, count(*) as matches
62
-
from recent
63
-
where $body_love_terms
61
+
select topic, count(*) as matches
62
+
from (
63
+
select case
64
+
when lower(body) like '%thank%' or lower(body) like '%helpful%' or lower(body) like '%useful%' then 'Helpful answers and practical fixes'
65
+
when lower(body) like '%fast%' or lower(body) like '%speed%' or lower(body) like '%quick%' then 'Speed and responsiveness'
66
+
when lower(body) like '%agent%' or lower(body) like '%workflow%' or lower(body) like '%automatic%' then 'Agent workflows and automation'
67
+
when lower(body) like '%skill%' or lower(body) like '%tool%' or lower(body) like '%mcp%' then 'Skills, tools, and MCP integrations'
68
+
else 'General positive feedback'
69
+
end as topic
70
+
from recent
71
+
where $body_love_terms
72
+
)
64
73
group by 1
65
74
order by matches desc
66
75
limit 4;
67
76
"| jq -r '
68
-
if type == "array" then .[] else (.rows // [])[] | {channel: .[0], matches: .[1]} end |
69
-
"- " + .channel + ": " + (.matches | tostring) + " positive mentions in the recent sample."
77
+
if type == "array" then .[] else (.rows // [])[] | {topic: .[0], matches: .[1]} end |
78
+
"- " + .topic + ": " + (.matches | tostring) + " positive mentions in the recent sample."
70
79
'>"$TMP_DIR/fallback-love.md"
71
80
72
81
fallback_query "$recent_human_cte
73
-
select channel, count(*) as matches
74
-
from recent
75
-
where $body_complaint_terms
82
+
select topic, count(*) as matches
83
+
from (
84
+
select case
85
+
when lower(body) like '%overload%' or lower(body) like '%fallback%' or lower(body) like '%provider%' or lower(body) like '%model%' then 'Provider reliability and model fallback'
86
+
when lower(body) like '%token%' or lower(body) like '%secret%' or lower(body) like '%auth%' or lower(body) like '%config%' or lower(body) like '%install%' then 'Setup, auth, and configuration'
87
+
when lower(body) like '%github%' or lower(body) like '%repo%' or lower(body) like '%pr%' or lower(body) like '%issue%' then 'GitHub and repository workflow'
88
+
when lower(body) like '%skill%' or lower(body) like '%tool%' or lower(body) like '%mcp%' then 'Skills, tools, and runtime bridges'
89
+
when lower(body) like '%encoding%' or lower(body) like '%character%' or lower(body) like '%message%' then 'Message quality, editing, and encoding'
90
+
else 'General bugs, failures, and confusing behavior'
91
+
end as topic
92
+
from recent
93
+
where $body_complaint_terms
94
+
)
76
95
group by 1
77
96
order by matches desc
78
97
limit 4;
79
98
"| jq -r '
80
-
if type == "array" then .[] else (.rows // [])[] | {channel: .[0], matches: .[1]} end |
81
-
"- " + .channel + ": " + (.matches | tostring) + " complaint-flavored mentions in the recent sample; compare this with the issue/PR cluster below."
99
+
if type == "array" then .[] else (.rows // [])[] | {topic: .[0], matches: .[1]} end |
100
+
"- " + .topic + ": " + (.matches | tostring) + " complaint-flavored mentions in the recent sample; compare with the issue/PR cluster below."
--limit 8 | jq -r 'map(select(.state == "open"))[0] // .[0] // empty | "- PR #" + (.number | tostring) + ": [" + .title + "](" + .url + ") looks like the highest-leverage recent PR because it is active in the same window as the complaint cluster."'>"$TMP_DIR/fallback-pr.md"||:
0 commit comments