The open source coding agent.
TypeScript
fix(app): enable Safari autocorrect in normal mode, disable in shell mode (#15563)
Alexandre Reyes Martins95385eb65249
diff --git a/packages/app/src/components/prompt-input.tsx b/packages/app/src/components/prompt-input.tsxindex 40104bceb9e..532edd3bcdc 100644--- a/packages/app/src/components/prompt-input.tsx+++ b/packages/app/src/components/prompt-input.tsx@@ -1203,9 +1203,9 @@ export const PromptInput: Component<PromptInputProps> = (props) => {aria-multiline="true"aria-label={placeholder()}contenteditable="true"- autocapitalize="off"- autocorrect="off"- spellcheck={false}+ autocapitalize={store.mode === "normal" ? "sentences" : "off"}+ autocorrect={store.mode === "normal" ? "on" : "off"}+ spellcheck={store.mode === "normal"}onInput={handleInput}onPaste={handlePaste}onCompositionStart={() => setComposing(true)}