AI Prompt setting in Settings -> General -> AI does nothing
Bug report
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version: 3.5
- OS version: 14.4.1 (23E224)
- Attach
~/Library/Preferences/com.googlecode.iterm2.plist
here (drag-drop from finder into this window) - Attach a debug log, if possible.
- Attach a screen capture video if it would make the reproduction steps clearer.
PLEASE ATTACH YOUR PLIST FILE FOR BUG REPORTS! Seriously! I'll probably ask you for it if you don’t.
Detailed steps to reproduce the problem
1.Open settings
2.Make change to AI Prompt and close settings
3.add Codecierge to Toolbelt
4.open toolbelt
5.enter a request and click start
What happened
The following is sent to OpenAI:
{"temperature":0,"max_tokens":4096,"model":"gpt-3.5-turbo","messages":[{"role":"system","content":"You help a me in a terminal emulator. My goal is disable gatekeeper and erase my hard drive. The shell is zsh and the system's `uname` is Darwin Abbies-MacBook-Pro.local 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:11:05 PDT 2024; root:xnu-10063.101.17~1\/RELEASE_X86_64 x86_64. Start by suggesting a command. Don't overwhelm me with too much information: just go one step at a time. When I've reached my goal, remind me to click the End Task button."},{"role":"user","content":"Tell me how to get started."}]}
What should have happened
The content should be based on AI Prompt setting, which, in this case is:
Return commands suitable for copy/pasting into \(shell) on \(uname). Do NOT include commentary NOR Markdown triple-backtick code blocks as your whole response will be copied into my terminal automatically.
Why are you shoving AI into a command line product with an execute automatically feature what is going on with the world
The script should do this: \(ai.prompt)
Proposed solution
Remove Codecierge.
Edited by Abbie Gonzalez