Skip to content

Commit 6781ae4

Browse files
authored
Fix IME inputs for Wave AI, and update privacy wording to be more clear about OpenAI (#2466)
Fix for #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.
1 parent e510f35 commit 6781ae4

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

docs/docs/waveai.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ File system operations require explicit approval. You control all file access.
6363

6464
## Privacy
6565

66-
- Messages are proxied through the Wave Cloud AI service (powered by OpenAI)
66+
- 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.
6767
- Wave does not store your chats, attachments, or use them for training
6868
- Usage counters included in anonymous telemetry
6969
- File access requires explicit approval

frontend/app/aipanel/aipanelinput.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ export const AIPanelInput = memo(({ onSubmit, status, model }: AIPanelInputProps
5252
}, [model, resizeTextarea]);
5353

5454
const handleKeyDown = (e: React.KeyboardEvent<HTMLTextAreaElement>) => {
55-
if (e.key === "Enter" && !e.shiftKey) {
55+
const isComposing = e.nativeEvent?.isComposing || e.keyCode == 229;
56+
if (e.key === "Enter" && !e.shiftKey && !isComposing) {
5657
e.preventDefault();
5758
onSubmit(e as any);
5859
}

frontend/app/aipanel/telemetryrequired.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ const TelemetryRequiredMessage = ({ className }: TelemetryRequiredMessageProps)
5757
</p>
5858
<p>
5959
We never collect your files, prompts, keystrokes, hostnames, or personally
60-
identifying information.
60+
identifying information. Wave AI is powered by OpenAI's APIs, please refer to
61+
OpenAI's privacy policy for details on how they handle your data.
6162
</p>
6263
</div>
6364
<button

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/aiusechat/usechat.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ var SystemPromptText_OpenAI = strings.Join([]string{
8484
`If a request would execute dangerous or destructive actions, warn briefly and provide a safer alternative.`,
8585
`If output is very long, prefer a brief summary plus a copy-ready fenced block or offer a follow-up chunking strategy.`,
8686

87+
`You cannot yet execute shell commands, run code in the terminal, or directly edit files on disk. You also cannot read remote files.`,
88+
`If the user asks you to do one of those things, say that these features aren’t available yet AND make sure to say that they are coming soon (stay tuned for updates).`,
89+
`Instead, show them exactly what command or code they could copy-paste to perform it manually.`,
90+
8791
// Final reminder
8892
`You have NO API access to widgets or Wave unless provided via an explicit tool.`,
8993
}, " ")

0 commit comments

Comments
 (0)