Skip to content

How to exit subagent view? #63

Description

@violog

OpenCode version

1.18.25

vimcode version

0.16.0

OS

macOS 26.6.2 (25G83)

Terminal

macOS default Terminal

What happened?

This issue is like famous "how to quit Vim" riddle. Vim users will probably figure it out, but for me it took several minutes.

Steps to reproduce

  1. Delegate subagents
  2. Press Ctrl-X, arrow_down to enter subagent view
  3. Enter NORMAL mode with Esc
  4. Now pressing arrow_up doesn't work, thus a user is confused how to close the view without closing Opencode with :q. This plays on nerves especially when an agent is running and prompted for permission, but you can't even see it, figuring out how to quit.
  5. Hack: enter INSERT by pressing i, then press arrow_up -- congrats, you did it!

Expected behavior

When I press arrow_up in subagent view, it exits and brings me back to prompt view

Actual behavior

I must first enter INSERT to exit, in NORMAL mode I can't do that

Proposals

IDK if there is a fix, didn't look into design. If not, maybe makes sense to add some notice.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions