#3888·forgecode

[Bug]: zsh-plugin: Tab-completion falls back to hardcoded default

Author: bvolkmerCreated Sep 17, 2026Updated Sep 17, 2026
Labelstype: bug

Bug Description

In the following part, the completion falls back to the zsh default of the tab completion. But if the user uses other plugins that modify the tab completion mapping, this will override/break it (probably similar issues for Enter). https://github.com/tailcallhq/forgecode/blob/59d44f52143c339b60b0dccfd1ee18e74c9eef57/shell-plugin/lib/completion.zsh#L47

Forge should better check the binding on setup (bindkey '^I') and then use that as a fallback instead of assuming the zsh-default.

Steps to Reproduce

  1. bindkey '^I' something-else
  2. eval "$(forge zsh plugin)"
  3. cd <TAB> executes expand-or-complete and not something-else

Expected Behavior

Forge should not replace predefined bindings with zsh-defaults

Actual Behavior

Forge uses zsh-defaults and potentially breaks other plugins without need.

Forge Version

2.13.21

Operating System & Version

archlinux

AI Provider

None

Model

No response

Installation Method

Other

Configuration

yaml