Removes the '(shift+tab to cycle)' text from the prompt footer hint

hooks/register.tsx 17 lines1import type { Register } from 'claude-code'
2
3const CYCLE = /\s*\(shift\+tab to cycle\)/gi
4const DANGLING = /^[\s·•・]+|[\s·•・]+$/g
5
6export const register: Register = on => {
7 on('ui.render', { component: 'PromptHint' }, ($, e, next) => {
8 const hint = e.props.hint.replace(CYCLE, '').replace(DANGLING, '')
9
10 if (hint === e.props.hint) {
11 return next(e)
12 }
13
14 return next({ ...e, props: { ...e.props, hint } })
15 })
16}
17