Skip to content

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

Closed

Description

@bernoussama

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

Activity

  1. thdxr commented on Jun 29, 2025

    @thdxr
    Member

    if you type reset and hit enter does that fix?

  2. bernoussama commented on Jun 29, 2025

    @bernoussama
    Author

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

  3. self-assigned this
    on Jun 30, 2025
  4. 2asoft commented on Aug 18, 2025

    @2asoft
    Contributor

    This should be resolved by upgrading to Zellij 0.43.1.

  5. jayair commented on Aug 18, 2025

    @jayair
    Contributor

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

  6. YaroSpace commented on Aug 27, 2025

    @YaroSpace

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions