aboutsummaryrefslogtreecommitdiffstats
path: root/pi-ext/reload-hotkey.ts (follow)
Commit message (Collapse)AuthorAge
* reload-hotkey: prefill /reload instead of broken sendUserMessage commanduser2026-08-12
| | | | | | | | | The prior approach couldn't work: shortcut ctx has no reload(), and sendUserMessage() uses prompt({expandPromptTemplates:false}) which skips slash-command handling, so "/reload-runtime" went to the model as literal text. No extension API can invoke reload directly. Best available: F5 drops the built-in /reload into the editor (guarded against clobbering in-progress text); user presses Enter. Documented the source-confirmed blockers.
* Add reload-hotkey.ts: bind a key (F5) to /reloaduser2026-08-12
registerShortcut handlers only get a plain ExtensionContext (no ctx.reload, which is command-context only), and keybindings.json has no reload action. So register a /reload-runtime command that owns ctx.reload() and have the shortcut queue it as a follow-up message — pi's documented reload pattern. Key configurable via RELOAD_KEY.