From 6781ae4e2d08631e32f33ec7d6b4de2dd6ac2172 Mon Sep 17 00:00:00 2001
From: Mike Sawka
Date: Mon, 20 Oct 2025 23:27:16 -0700
Subject: [PATCH] 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.
---
docs/docs/waveai.mdx | 2 +-
frontend/app/aipanel/aipanelinput.tsx | 3 ++-
frontend/app/aipanel/telemetryrequired.tsx | 3 ++-
package-lock.json | 4 ++--
pkg/aiusechat/usechat.go | 4 ++++
5 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/docs/docs/waveai.mdx b/docs/docs/waveai.mdx
index 8d2da28b1..65ffade29 100644
--- a/docs/docs/waveai.mdx
+++ b/docs/docs/waveai.mdx
@@ -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
diff --git a/frontend/app/aipanel/aipanelinput.tsx b/frontend/app/aipanel/aipanelinput.tsx
index 10ad616b6..8660d2d5f 100644
--- a/frontend/app/aipanel/aipanelinput.tsx
+++ b/frontend/app/aipanel/aipanelinput.tsx
@@ -52,7 +52,8 @@ export const AIPanelInput = memo(({ onSubmit, status, model }: AIPanelInputProps
}, [model, resizeTextarea]);
const handleKeyDown = (e: React.KeyboardEvent) => {
- 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);
}
diff --git a/frontend/app/aipanel/telemetryrequired.tsx b/frontend/app/aipanel/telemetryrequired.tsx
index 8124a621c..b0043c3ad 100644
--- a/frontend/app/aipanel/telemetryrequired.tsx
+++ b/frontend/app/aipanel/telemetryrequired.tsx
@@ -57,7 +57,8 @@ const TelemetryRequiredMessage = ({ className }: TelemetryRequiredMessageProps)
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.