Files
deepseek-harness/packages/client/shortcuts/src/config.ts
T
Xinyu Yang 91423ea1b4 revert: restore configurable Web and desktop shortcuts
Restore the feature removed by #4886 on current master. Preserve the current settings entry point, moving-menu behavior, and desktop update UI.
2026-09-22 21:02:32 +08:00

14 lines
516 B
TypeScript

/** Window-local timing accepted by the Host and browser keyboard service. */
import z from '@deepseek-ai/schemastery'
/** Fixed shortcut sequence settings. */
export interface Config {
/** Maximum interval between independent Escape presses for stopping a reply, in milliseconds. */
stopSequenceMs: number
}
/** Validated deployment settings for fixed keyboard sequences. */
export const Config: z<Partial<Config>, Config> = z.object({
stopSequenceMs: z.natural().min(1).max(2_147_483_646).default(500),
})