Arrow keys print keycodes (e.g., 29A29A29A29C29D) instead of navigating after closing opencode. #390

Closed
opened 2026-02-16 17:26:33 -05:00 by yindo · 5 comments
Owner

Originally created by @bernoussama on GitHub (Jun 29, 2025).

Originally assigned to: @thdxr on GitHub.

When I close opencode and reopen it, the arrow keys no longer navigate as expected. Instead, they print sequences like "29A29A29A29C29D29D29B29B29A29A29A29A" in the interface.

Steps to reproduce:

  1. Open opencode.
  2. Use it.
  3. Close opencode.
  4. Try using arrow keys again (they print keycodes).

Image

Expected behavior: Arrow keys should navigate through the code or interface.
Actual behavior: Arrow keys output keycode sequences.

Environment: arch linux, running in zellij using zsh, opencode version 0.1.162

Originally created by @bernoussama on GitHub (Jun 29, 2025). Originally assigned to: @thdxr on GitHub. When I close opencode and reopen it, the arrow keys no longer navigate as expected. Instead, they print sequences like "29A29A29A29C29D29D29B29B29A29A29A29A" in the interface. Steps to reproduce: 1. Open opencode. 2. Use it. 3. Close opencode. 4. Try using arrow keys again (they print keycodes). ![Image](https://github.com/user-attachments/assets/a145ee12-ac8d-4422-8b80-322d1c28ced0) Expected behavior: Arrow keys should navigate through the code or interface. Actual behavior: Arrow keys output keycode sequences. Environment: arch linux, running in zellij using zsh, opencode version 0.1.162
yindo closed this issue 2026-02-16 17:26:33 -05:00
Author
Owner

@thdxr commented on GitHub (Jun 29, 2025):

if you type reset and hit enter does that fix?

@thdxr commented on GitHub (Jun 29, 2025): if you type `reset` and hit enter does that fix?
Author
Owner

@bernoussama commented on GitHub (Jun 29, 2025):

yes if i run the reset command in the terminal, it fixes it.

@bernoussama commented on GitHub (Jun 29, 2025): yes if i run the `reset` command in the terminal, it fixes it.
Author
Owner

@2asoft commented on GitHub (Aug 17, 2025):

This should be resolved by upgrading to Zellij 0.43.1.

@2asoft commented on GitHub (Aug 17, 2025): This should be resolved by upgrading to Zellij 0.43.1.
Author
Owner

@jayair commented on GitHub (Aug 18, 2025):

Thanks, I'll close for now, feel free to reopen if it's still a problem.

@jayair commented on GitHub (Aug 18, 2025): Thanks, I'll close for now, feel free to reopen if it's still a problem.
Author
Owner

@YaroSpace commented on GitHub (Aug 27, 2025):

I am having the same issue in wezterm, gnome terminal, fedora 42, zsh/bash. Reset does not help.

@YaroSpace commented on GitHub (Aug 27, 2025): I am having the same issue in wezterm, gnome terminal, fedora 42, zsh/bash. Reset does not help.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#390