cotabby icon indicating copy to clipboard operation
cotabby copied to clipboard

Terminal completion mode

Open Jam-Cai opened this issue 7 months ago • 1 comments

Terminal emulators expose the entire scrollback as the text surface. We need prompt detection so only the post-prompt text is sent as prefix. Add a dedicated mode with per-emulator attribute handlers (iTerm2, Terminal.app, Ghostty, Warp, Alacritty, WezTerm).

Acceptance

  • [ ] Bundle-ID match for the listed emulators.
  • [ ] Prompt detection is heuristic (shell-aware regex) and user-configurable.
  • [ ] Request prefixText contains only post-prompt text; pre-prompt scrollback is never sent to the model.
  • [ ] Tests on representative scrollback samples for at least bash, zsh, and fish.

Parent: #16

Jam-Cai avatar Apr 22 '26 17:04 Jam-Cai

Closing — PR #127 takes the opposite product direction: Tabby now blocks itself entirely in terminal emulators (Terminal, iTerm2, Kitty, Alacritty, Ghostty, Warp, WezTerm, Hyper, Rio). Terminals have their own completion and shell integrations that conflict with ghost-text autocomplete.

Building a dedicated terminal completion mode with prompt detection is a fundamentally different product bet. If that direction is revisited later, it should be a new issue with updated scope.

FuJacob avatar May 21 '26 06:05 FuJacob