mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-08 03:01:47 +00:00
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:
parent
432772dbdf
commit
9556fef5a1
31 changed files with 1303 additions and 100 deletions
|
|
@ -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}`)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue