/hotkeys: ctrl+x (app.message.copy) description omits selection and /tree fallbacks
What happened?
/hotkeys describes ctrl+x (app.message.copy) as "Copy last assistant message", but that's only the last fallback. Actual behavior of handleCopyCommand() is:
- in
/tree: copies the selected message - fullscreen with
fullscreenCopyOnSelect: falseand an active selection: copies the selection - otherwise: copies the last assistant message
docs/keybindings.md already describes the full chain, and the action description in keybindings.ts says a third variant ("Copy message to clipboard"), so three strings disagree.
Steps to reproduce
- Set
"fullscreenCopyOnSelect": false - Select text in the fullscreen TUI, press
ctrl+x - The selection is copied, not the last assistant message —
/hotkeysnever mentions this
Expected behavior
/hotkeys and the keybindings.ts description should match the actual chain, e.g. "Copy selection or last assistant message (in /tree: selected message)".
Docs-only change, no behavior touched. Proposed diff: https://github.com/earendil-works/pi/compare/main...shihaonan369:pi:fix/hotkeys-copy-description — happy to open the PR if approved.
Version
0.85.1
AI assistance: this issue was drafted with AI assistance; I verified the source locations and behavior locally.
Source: earendil-works/pi