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 — TUI can auto-submit whitespace prompt, creating “empty user message” and breaking Claude/OpenAI-compatible proxies · Issue #8679 · anomalyco/opencode

TUI can auto-submit whitespace prompt, creating “empty user message” and breaking Claude/OpenAI-compatible proxies #8679

New issue
Copy link
New issue
Copy link
Closed
Closed
TUI can auto-submit whitespace prompt, creating “empty user message” and breaking Claude/OpenAI-compatible proxies#8679
Copy link
Assignees
rekram1-node
Labels
bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentuiwindows

Description

@breeze0015
breeze0015
opened on Jan 15, 2026
Issue body actions

Description

OpenCode sometimes sends a “user sent an empty message” even when I did not manually submit anything. This can also trigger upstream errors (e.g., Claude/Bedrock: messages: text content blocks must be non-empty) when using OpenAI-compatible proxy layers that translate requests to Anthropic format.

Plugins

No response

OpenCode version

1.1.21

Steps to reproduce

  1. Start OpenCode TUI with a whitespace-only prompt, for example:
    • opencode --prompt " "
    • or opencode --prompt "\n"
  2. Observe that OpenCode auto-submits the prompt on startup and a user message is created even though it contains only whitespace.

Screenshot and/or share link

https://opncd.ai/share/32IIf93w

Operating System

Windows 10

Terminal

opencode-desktop-windows-x64.exe

Activity

  1. breeze0015
    added
    bugSomething isn't working
    on Jan 15, 2026
  2. github-actions
    assigned
    rekram1-node
    on Jan 15, 2026
  3. github-actions
    added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    windows
    on Jan 15, 2026
  4. github-actions commented on Jan 15, 2026

    @github-actions
    github-actionsBot
    on Jan 15, 2026 – with GitHub Actions
    Contributor
    More actions

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

    • when (mistakenly) sending empty message the session stop with the error: text cannot be empty. #7493: when (mistakenly) sending empty message the session stop with the error: text cannot be empty.
    • TUI: Prompt gets submitted when switching sessions #8019: TUI: Prompt gets submitted when switching sessions
    • moving between different sessions while having a non submited prompt from the user executes the command in the session we move to #8196: moving between different sessions while having a non submitted prompt from the user executes the command in the session we move to

    Feel free to ignore if none of these address your specific case.

  5. shoaibansari5398
    added a commit that references this issue on Jan 15, 2026

    fix(opencode): prevent whitespace-only prompt submission

    This issue will close once commit a72ee71 is merged into the 'dev' branch.
    a72ee71
  6. github-actions commented on Mar 26, 2026

    @github-actions
    github-actionsBot
    on Mar 26, 2026 – with GitHub Actions
    Contributor
    More actions

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

  7. github-actions
    closed this as completedon Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentuiwindows

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.