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 — [Bug] Question tool fails to parse JSON with French accented characters (UTF-8) · Issue #7484 · anomalyco/opencode

[Bug] Question tool fails to parse JSON with French accented characters (UTF-8) #7484

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
[Bug] Question tool fails to parse JSON with French accented characters (UTF-8)#7484
Copy link
Assignees
rekram1-node

Description

@fdematos
fdematos
opened on Jan 9, 2026
Issue body actions

Description

The question tool (introduced in v1.1.7) fails to parse JSON parameters when the question text or option labels contain French accented characters (é, è, à, ê, ù, etc.).

Expected Behavior

The interactive question dialog should display with the French text properly rendered, allowing the user to select an option.

Actual Behavior

The tool returns a JSON parsing error:

Error: The question tool was called with invalid arguments: [
  {
    "expected": "array",
    "code": "invalid_type",
    "path": ["questions"],
    "message": "Invalid input: expected array, received string"
  }
]

The JSON array with accented characters appears to be incorrectly parsed as a string.

Additional Context

  • The error suggests the JSON payload is being corrupted during transmission or parsing
  • This may be related to UTF-8 encoding of the parameters before validation
  • Similar issues with non-ASCII characters were reported in WebUI fails with non-ASCII directory names (TypeError: String contains non ISO-8859-1 code point) #6921 (WebUI with non-ASCII directory names)
  • Potentially related to opentui: fatal: answer.join is not a function. (In 'answer.join(", ")', 'answer.join' is undefined) #7392 (another question tool bug)

Plugins

No response

OpenCode version

1.1.8

Steps to reproduce

Steps to Reproduce

  1. Have the agent call the question tool with French text containing accents:
{
  "questions": [{
    "question": "Que souhaitez-vous que je prépare pour cette non-conformité ?",
    "header": "Action",
    "options": [
      {"label": "Réponse CAPA uniquement", "description": "Juste le texte CAPA à insérer"},
      {"label": "Créer dossier 6.1.2/", "description": "Créer un dossier avec documentation"}
    ],
    "multiple": false
  }]
}

Screenshot and/or share link

No response

Operating System

macOS (darwin)

Terminal

Standard macOS terminal

Activity

  1. fdematos
    added
    bugSomething isn't working
    on Jan 9, 2026
  2. github-actions
    assigned
    rekram1-node
    on Jan 9, 2026
  3. github-actions commented on Jan 9, 2026

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

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

    • question tool not rendering interactive UI in OpenCode Web - only displays plain text #7464: question tool not rendering interactive UI in OpenCode Web - only displays plain text
    • opentui: fatal: answer.join is not a function. (In 'answer.join(", ")', 'answer.join' is undefined) #7392: opentui: fatal: answer.join is not a function (related to question tool output handling)

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

  4. github-actions commented on Mar 25, 2026

    @github-actions
    github-actionsBot
    on Mar 25, 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.

  5. thdxr
    removed
    bugSomething isn't working
    on May 3, 2026
  6. rekram1-node
    closed this as not plannedon May 22, 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

No labels
No labels

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.