Repository navigation
feat: add notifications for MacOS using Applescript - #160
Conversation
|
All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
|
recheck |
|
Contribution looks great, but there seems to be an issue with the CLA signature
Could you check? |
|
recheck |
|
Hm, I've added my email to this account, but I can't seem to retrigger the bot |
|
recheck |
|
very nice, ty for the contribution! |
|
two requests
not everyone will want to get notified |
Just out of curiosity, are you using it with auto? I like that I can run it with multiple terminal sessions, but I'm bottlenecking every session with the suggestion mode. |
|
Yes, I run with |
|
I see you've made some changes, let me know when it's ready for review. |
|
ok, ready! tested on my machine with |
|
lgtm, ty! merging |
|
Could you fix the CI failure, see |
|
Still some issues please ping me when these are all resolved (you can run them locally with |
|
ok, should be passing now |
|
rebased to latest |
|
looking good now, merging, ty!! |
|
|
||
| // Notify desktop with a preview when an assistant response arrives | ||
| const prevLoadingRef = useRef<boolean>(false); | ||
| useEffect(() => { |
There was a problem hiding this comment.
First, we should carve out a general notification abstraction rather than duping this logic into the middle of a UI component.
| const safePreview = preview.replace(/"/g, '\\"'); | ||
| const title = "Codex CLI"; | ||
| const cwd = PWD; | ||
| exec( |
There was a problem hiding this comment.
Second, we should absolutely not be using exec() with a single string arg that appears to be subject to injection risks. At a minimum, we should be using spawn() with a list of strings.
|
Incidentally, I did look at implementing this feature using Does not work. It is likely due to some combination of app notification settings, focus mode, etc. I didn't have enough time to debug my system and I felt that if I couldn't put something in the public docs that would help someone debug their own issues with this feature, then adding a feature like |
yolo'ed it with codex. Let me know if this looks good to you.
#148
tested with: