Skip to content

Commit 1f2f867

Browse files
smurfy92claude
andauthored
fix: type text fallback and category suppression (#460)
- Overlay color-based fallback now maps red to "APPROVAL NEEDED" and yellow to "STANDING BY" instead of "LIMIT REACHED" for both. - When a category is disabled in config, both sound AND notification are now suppressed. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 08b6909 commit 1f2f867

4 files changed

Lines changed: 8 additions & 3 deletions

File tree

peon.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4002,6 +4002,8 @@ elif category:
40024002
if category and not cat_enabled.get(category, True):
40034003
log('route', category=category, suppressed=True, reason='category_disabled')
40044004
category = ''
4005+
notify = ''
4006+
notify_color = ''
40054007
40064008
# --- Log route decision ---
40074009
if category:

scripts/mac-overlay-glass.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ function run(argv) {
3232
default:
3333
// Fallback for relay.sh and other callers that don't set notifType
3434
if (color === 'blue') typeText = 'TASK COMPLETE';
35-
else if (color === 'red' || color === 'yellow') typeText = 'LIMIT REACHED';
35+
else if (color === 'red') typeText = 'APPROVAL NEEDED';
36+
else if (color === 'yellow') typeText = 'STANDING BY';
3637
else typeText = 'INPUT REQUIRED';
3738
}
3839

scripts/mac-overlay-jarvis.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ function run(argv) {
3939
default:
4040
// Fallback for relay.sh and other callers that don't set notifType
4141
if (color === 'blue') typeText = 'TASK COMPLETE';
42-
else if (color === 'red' || color === 'yellow') typeText = 'LIMIT REACHED';
42+
else if (color === 'red') typeText = 'APPROVAL NEEDED';
43+
else if (color === 'yellow') typeText = 'STANDING BY';
4344
else typeText = 'INPUT REQUIRED';
4445
}
4546

scripts/mac-overlay-sakura.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ function run(argv) {
3434
default:
3535
// Fallback for relay.sh and other callers that don't set notifType
3636
if (color === 'blue') typeText = 'TASK COMPLETE';
37-
else if (color === 'red' || color === 'yellow') typeText = 'LIMIT REACHED';
37+
else if (color === 'red') typeText = 'APPROVAL NEEDED';
38+
else if (color === 'yellow') typeText = 'STANDING BY';
3839
else typeText = 'INPUT REQUIRED';
3940
}
4041

0 commit comments

Comments
 (0)