refactor: replace OpenCode server restarts with config reloads for faster updates (#70)

This commit is contained in:
Chris Scott authored and GitHub committed 2026-01-17 12:40:22 -05:00
1 parent 8be0bbd8a0
commit 2bd2b024b8
11 files changed
+183 -107

No files matched your search

@@ -419,19 +419,20 @@ export const PromptInput = forwardRef<PromptInputHandle, PromptInputProps>(funct
const isIOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !(window as { MSStream?: boolean }).MSStream
const isSecureContext = window.isSecureContext || (window.location.protocol === 'http:' && window.location.hostname === 'localhost')
if (isIOS && isSecureContext && navigator.clipboard && navigator.clipboard.read) {
if (isIOS && isSecureContext && navigator.clipboard && navigator.clipboard.read) {
try {
const text = await navigator.clipboard.readText()
if (text && text.trim()) {
return
}
} catch (err) {
} catch {
}
event.preventDefault()
try {
const clipboardItems = await navigator.clipboard.read()
for (const item of clipboardItems) {
for (const type of item.types) {
if (ACCEPTED_FILE_TYPES.includes(type) || type.startsWith('image/')) {