Fix IME inputs for Wave AI, and update privacy wording to be more clear about OpenAI (#2466)

Fix for https://github.com/wavetermdev/waveterm/issues/2385 for Wave AI.

Also update privacy information to say we send the chats to OpenAI for
processing.

Also modify the system prompt to say that file editing + command execution is coming soon.
This commit is contained in:
Mike Sawka 2025-10-20 23:27:16 -07:00 committed by GitHub
parent e510f3507a
commit 6781ae4e2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 11 additions and 5 deletions

View file

@ -63,7 +63,7 @@ File system operations require explicit approval. You control all file access.
## Privacy
- Messages are proxied through the Wave Cloud AI service (powered by OpenAI)
- Messages are proxied through the Wave Cloud AI service (powered by OpenAI's APIs). Please refer to OpenAI's privacy policy for details on how they handle your data.
- Wave does not store your chats, attachments, or use them for training
- Usage counters included in anonymous telemetry
- File access requires explicit approval

View file

@ -52,7 +52,8 @@ export const AIPanelInput = memo(({ onSubmit, status, model }: AIPanelInputProps
}, [model, resizeTextarea]);
const handleKeyDown = (e: React.KeyboardEvent<HTMLTextAreaElement>) => {
if (e.key === "Enter" && !e.shiftKey) {
const isComposing = e.nativeEvent?.isComposing || e.keyCode == 229;
if (e.key === "Enter" && !e.shiftKey && !isComposing) {
e.preventDefault();
onSubmit(e as any);
}

View file

@ -57,7 +57,8 @@ const TelemetryRequiredMessage = ({ className }: TelemetryRequiredMessageProps)
</p>
<p>
We never collect your files, prompts, keystrokes, hostnames, or personally
identifying information.
identifying information. Wave AI is powered by OpenAI's APIs, please refer to
OpenAI's privacy policy for details on how they handle your data.
</p>
</div>
<button

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "waveterm",
"version": "0.12.0",
"version": "0.12.1-beta.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "waveterm",
"version": "0.12.0",
"version": "0.12.1-beta.0",
"hasInstallScript": true,
"license": "Apache-2.0",
"workspaces": [

View file

@ -84,6 +84,10 @@ var SystemPromptText_OpenAI = strings.Join([]string{
`If a request would execute dangerous or destructive actions, warn briefly and provide a safer alternative.`,
`If output is very long, prefer a brief summary plus a copy-ready fenced block or offer a follow-up chunking strategy.`,
`You cannot yet execute shell commands, run code in the terminal, or directly edit files on disk. You also cannot read remote files.`,
`If the user asks you to do one of those things, say that these features arent available yet AND make sure to say that they are coming soon (stay tuned for updates).`,
`Instead, show them exactly what command or code they could copy-paste to perform it manually.`,
// Final reminder
`You have NO API access to widgets or Wave unless provided via an explicit tool.`,
}, " ")