GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — User input is discarded when permission or question prompt is triggered · Issue #22479 · anomalyco/opencode

User input is discarded when permission or question prompt is triggered #22479

New issue
Copy link
New issue
Copy link
Closed
Closed
User input is discarded when permission or question prompt is triggered#22479
Copy link
Assignees
kommander
Labels
coreAnything pertaining to core functionality of the application (opencode server stuff)opentuiThis relates to changes in v1.0, now that opencode uses opentui

Description

@pedropombeiro
pedropombeiro
opened on Apr 14, 2026
Issue body actions

Description

When typing text in the input field that has not yet been submitted, any permission prompt or question dialog triggered by OpenCode causes the typed text to be discarded/lost. The user must retype their input after responding to the prompt.

This affects all types of interruptions:

  • Permission prompts (e.g. ask-gated bash commands, edit permissions)
  • Question prompts from the model

Steps to reproduce

  1. Start an OpenCode session
  2. While the model is responding and triggers a permission prompt (e.g. for a bash command with "ask" permission), begin typing your next message in the input field
  3. Observe that after the permission dialog appears, the typed-but-not-submitted text is gone

Expected behavior

Typed-but-not-submitted input should be preserved across permission/question prompts.

Environment

  • OpenCode version: v1.4.3
  • OS: macOS (darwin)
  • Verified this is not caused by:
    • Any installed plugins (tested with all plugins disabled)
    • tmux (tested outside tmux)
    • Hammerspoon keybindings (tested with Hammerspoon quit)
    • Custom tui.json keybindings

Additional context

This started occurring approximately 2-3 weeks ago (late March / early April 2026).

Activity

  1. github-actions
    assigned
    kommander
    on Apr 14, 2026
  2. github-actions
    added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Apr 14, 2026
  3. github-actions commented on Apr 14, 2026

    @github-actions
    github-actionsBot
    on Apr 14, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue might be a duplicate of existing issues. Please check:

    • Draft input is lost when a permission prompt, questions, etc interrupts typing.. #21614: Draft input is lost when a permission prompt, questions, etc interrupts typing
    • [BUG] Input text typed during a pending permission prompt is lost after accepting/rejecting #21320: [BUG] Input text typed during a pending permission prompt is lost after accepting/rejecting
    • Prompt input is cleared when a permission or question dock appears #22301: Prompt input is cleared when a permission or question dock appears
    • [Bug] Input text is cleared when permission prompt appears while typing #22052: [Bug] Input text is cleared when permission prompt appears while typing (closed)
  4. pedropombeiro commented on Apr 14, 2026

    @pedropombeiro
    pedropombeiro
    on Apr 14, 2026
    Author
    More actions

    Bisection result

    v1.3.13: works correctly (input preserved)
    v1.3.14: broken (input discarded)

    The likely culprit is PR #20753 (dialog aware prompt cursor), which was described in the v1.3.14 release notes as:

    Kept the prompt cursor with dialogs instead of refocusing the background prompt.

    This change appears to have introduced a regression where the input content is lost even though the cursor handling was the intended target.

    Also ruled out environment-specific causes:

    • All plugins disabled: still broken
    • Outside tmux: still broken
    • Hammerspoon quit: still broken
    • Custom tui.json removed: still broken
  5. OverHash commented on Apr 14, 2026

    @OverHash
    OverHash
    on Apr 14, 2026
    More actions

    Duplicate of #21120

  6. pedropombeiro
    closed this as completedon Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @kommander
    kommander

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)opentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.