Description
When the user types text into the prompt box, then invokes /skill (e.g. to select a skill after the input is already partly composed), selecting a skill from the picker discards all previously typed text. The input box is replaced entirely with /skill-name and the prior text is lost with no way to recover it.
This is especially frustrating because /skill is only recognized when typed as the very first characters of the prompt. So if you've typed a multi-line prompt and realize you need a skill, you must:
- Move the cursor to line 1, column 1
- Type
/skill → Enter to open the picker
- Select the skill → all your text is gone
Steps to reproduce
- Type a multi-line prompt (e.g. "Please refactor the auth module to use JWT tokens")
- Place cursor at position 1,1
- Type
/skill and press Enter
- Select any skill from the picker
- Observe: the previously typed text is wiped; only
/skill-name remains in the input box
Expected behavior
The selected skill name should be prepended to the existing input text, not replace it. E.g. after selecting context7-mcp, the input should read:
/context7-mcp Please refactor the auth module to use JWT tokens
Alternatively, /skill should be recognized anywhere in the input (not just at the start), or the existing text should be preserved in undo history / clipboard so the user can paste it back.
Plugins
Using standard plugins: magic-context, opencode-queue, superpowers, etc.
OpenCode version
Latest (via opencode.dev install)
Operating System
linux x64 (Arch)
Description
When the user types text into the prompt box, then invokes
/skill(e.g. to select a skill after the input is already partly composed), selecting a skill from the picker discards all previously typed text. The input box is replaced entirely with/skill-nameand the prior text is lost with no way to recover it.This is especially frustrating because
/skillis only recognized when typed as the very first characters of the prompt. So if you've typed a multi-line prompt and realize you need a skill, you must:/skill→ Enter to open the pickerSteps to reproduce
/skilland press Enter/skill-nameremains in the input boxExpected behavior
The selected skill name should be prepended to the existing input text, not replace it. E.g. after selecting
context7-mcp, the input should read:Alternatively,
/skillshould be recognized anywhere in the input (not just at the start), or the existing text should be preserved in undo history / clipboard so the user can paste it back.Plugins
Using standard plugins: magic-context, opencode-queue, superpowers, etc.
OpenCode version
Latest (via opencode.dev install)
Operating System
linux x64 (Arch)