fix(tui): improve macOS paste and shortcut parity

- support Cmd-as-super and readline-style fallback shortcuts on macOS
- add layered clipboard/OSC52 paste handling and immediate image-path attach
- add IDE terminal setup helpers, terminal parity hints, and aligned docs
This commit is contained in:
kshitijk4poor 2026-04-21 14:27:28 +05:30 committed by kshitij
parent 432772dbdf
commit 9556fef5a1
31 changed files with 1303 additions and 100 deletions

View file

@ -1,6 +1,6 @@
import { type MutableRefObject, useCallback, useRef } from 'react'
import { imageTokenMeta } from '../domain/messages.js'
import { attachedImageNotice } from '../domain/messages.js'
import { looksLikeSlashCommand } from '../domain/slash.js'
import type { GatewayClient } from '../gatewayClient.js'
import type { InputDetectDropResponse, PromptSubmitResponse, ShellExecResponse } from '../gatewayTypes.js'
@ -83,9 +83,7 @@ export function useSubmission(opts: UseSubmissionOptions) {
}
if (r.is_image) {
const meta = imageTokenMeta(r)
turnController.pushActivity(`attached image: ${r.name}${meta ? ` · ${meta}` : ''}`)
turnController.pushActivity(attachedImageNotice(r))
} else {
turnController.pushActivity(`detected file: ${r.name}`)
}