[Feature Request] Mod API: fire prompt.autocomplete in ! bash mode with mode field
Status Open
Reported on v2.1.300
Maintainer reply None cached
Activity 0 comments · opened Oct 15, 2026
Bug Description
Mod API: fire prompt.autocomplete in ! bash mode
▎
▎ I'm building a mod that supplies shell completions (subcommands, flags, git branches) from a CLI completion engine. It works through prompt.autocomplete, but only behind a custom /tab <cmd> slash command. The hook never fires in ! bash mode, which is where it would be useful. prompt.edit does fire there, so the draft is available.
▎
▎ Requests:
▎ 1. Fire prompt.autocomplete in bash mode, and add the prompt mode to the event (e.g. mode: 'prompt' | 'bash').
▎ 2. Fire it on an empty token after a space (git checkout → list branches). Today it only fires once the token is non-empty.
▎
▎ Tested on 2.1.300 with a probe mod.
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 2.1.300
- Feedback ID: 6df9a91c-f0b6-47a5-984b-fc9ffaa91ba8