Skip to content

fix: remove selectorJustUsed gate that blocked input after command selection#1216

Merged
lewis617 merged 1 commit into
mainfrom
worktree-kind-tame-bear
Jun 11, 2026
Merged

fix: remove selectorJustUsed gate that blocked input after command selection#1216
lewis617 merged 1 commit into
mainfrom
worktree-kind-tame-bear

Conversation

@lewis617

Copy link
Copy Markdown
Collaborator

The selectorJustUsed flag blocked ALL HANDLE_KEY dispatches after closing
selectors/views, causing Enter to not send after command selection or view
dismissal. The flag was reset via setTimeout(0) which was unreliable.

Removed the gate from inputReducer and inputHandlers since specific key
handlers already prevent double processing:

  • Escape: early returns when selectors are active
  • Enter: swallowed when showCommandSelector/showFileSelector is active

Also added internal command routing: when /help, /tasks, etc. are typed
directly or Tab-inserted and Enter pressed, they now route to EXECUTE_COMMAND
instead of SEND_MESSAGE. Agent commands and unknown /commands still go to
SEND_MESSAGE so the full content reaches the agent.

…lection

The selectorJustUsed flag blocked ALL HANDLE_KEY dispatches after closing
selectors/views, causing Enter to not send after command selection or view
dismissal. The flag was reset via setTimeout(0) which was unreliable.

Removed the gate from inputReducer and inputHandlers since specific key
handlers already prevent double processing:
- Escape: early returns when selectors are active
- Enter: swallowed when showCommandSelector/showFileSelector is active

Also added internal command routing: when /help, /tasks, etc. are typed
directly or Tab-inserted and Enter pressed, they now route to EXECUTE_COMMAND
instead of SEND_MESSAGE. Agent commands and unknown /commands still go to
SEND_MESSAGE so the full content reaches the agent.
@lewis617 lewis617 merged commit fe5e245 into main Jun 11, 2026
1 check passed
@lewis617 lewis617 deleted the worktree-kind-tame-bear branch June 11, 2026 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant