Skip to content

partial fix: Issues in the new experimental Planning mode #8432

Closed

Description

@DitherDude

Description

This issue compliments #8429 . Issues:

  • Tools are unaware that the header property in the question tool has an upper limit of 12 chars. This leads to constant mis-calls, where the agent learns via trial-and-error (PR fixes)
  • Editing a "Type your own answer" post-completion (i.e. you write an answer, go to the next question, and then go back) causes the following issues:
    1. firstly, the first option shows as selected.
    2. when re-selecting to edit, the TUI "spasms" between both the top line and the line where the cusor is on. This stops and corrects once the user modifies the content of the answer.

Plugins

None

OpenCode version

1.1.19

Steps to reproduce

  1. When in plan mode, have the agent call the question tool
    • the agent will fail with "header must be <= 12 characters long". agent will call tool again
  2. for one of the questions, fill it in with a "write your own" that will span at least two lines in your CLI
  3. proceed to next question
  4. go back to this question
    • will show the first answer selected insead of the custom one???
  5. use arrows to select custom answer. hit enter
    • will proceed to next question. repeat step 3-5, except the second time round our answer will be selected, and pressing enter will finally enter edit mode for our answer
  6. use arrows to go to the end of the answer. once first line has been scrolled past, TUI will flash between first line and currently-modifying line, as the TUI only has room for one line to appear visually
  7. edit the input (so press any non-navigation key). input will now span required lines and act like normal again

Screenshot and/or share link

No response

Operating System

Ubuntu 24.04.3 LTS/Linux cascade 6.8.0-90-generic # 91-Ubuntu SMP PREEMPT_DYNAMIC Tue Nov 18 14:14:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

Terminal

bash via Kitty over ssh (also bash)

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Jan 14, 2026
  2. github-actions commented on Jan 14, 2026

    @github-actions
    Contributor

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

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

  3. DitherDude commented on Jan 14, 2026

    @DitherDude
    Author

    One issue is resolved in #8055 , the other still exists

  4. jessevdp commented on Jan 16, 2026

    @jessevdp
    Contributor
    1. OPENCODE_EXPERIMENTAL_PLAN_MODE=1 opencode
    2. Get the agent to ask 2 (or more) questions at once
    3. Pick "type your own answer" and fill out some text (presumably more than a single line)
    4. On the "confirm" tab use the arrows to go back through the previous tabs.
    5. Select the "type your own answer" option again to edit / expand the text you typed.
    6. See janky cycling text
    7. Type any character -> the jank stops and you're able to edit
    Screen.Recording.2026-01-16.at.13.27.30.mov
  5. added a commit that references this issue on Feb 12, 2026
  6. github-actions commented on Mar 26, 2026

    @github-actions
    Contributor

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

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis 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