Agent repeatedly re asks same question after answer is provided, fails to update plan after Glob result #6720

Open
opened 2026-02-16 18:05:03 -05:00 by yindo · 3 comments
Owner

Originally created by @Innomen on GitHub (Jan 18, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Environment

OS: Garuda Linux (Arch based)

Kernel: 6.18.4-zen1-1-zen

Shell: fish

OpenCode version: 1.1.25

Install path: /usr/bin/opencode

Interface: local CLI

Model: Dolphin-Mistral-24B Venice

Backend: llama.cpp

Summary
The OpenCode Build agent enters a question loop and fails to update its execution plan after receiving a correct answer from the user. Even after the correct file extension is explicitly provided, the agent re asks the same question and does not proceed with the workflow.

This appears to be an agent state or planner synchronization bug, not a model misunderstanding.

Steps to reproduce

Run a Build workflow that attempts to process Substack export files.

Initial workflow attempts:

✱ Glob "substack_posts/*.md"

No markdown files are found.

User clarifies that files are HTML.

Agent performs:

✱ Glob "substack_posts/*.html"

Agent asks:

What is the correct file extension for the Substack posts?

User answers:

.html

Agent repeats the same question instead of proceeding.

Observed transcript excerpt

✱ Glob "substack_posts/.md"
✱ Glob "substack_posts/
.md"
No markdown files were found in the substack_posts directory.

they are html files
✱ Glob "substack_posts/*.html"

What is the correct file extension for the Substack posts?
.html

✱ Glob "substack_posts/*.html"
What is the correct file extension for the Substack posts?
.html

The question is repeated multiple times even after the correct value is provided. The agent never advances to selecting a file, reading contents, or executing the requested transformation.

Expected behavior
After the user answers .html once, the agent should:

Update its internal plan state

Treat .html as the confirmed extension

Proceed to select a file and continue the workflow

Actual behavior

Agent continues to ask the same clarification question

Planner does not converge

Workflow stalls indefinitely unless manually interrupted

Notes

The directory contains hundreds of valid .html files and they are discoverable via glob.

This appears to be a planner or agent control layer bug where updated facts from user answers are not propagated into execution state.

Similar to other agent non convergence or tool state issues, but this specific loop does not appear to be documented yet.

Also tried:

Substack post title and abstract extraction workflow

Files are in /home/innomen/AI/assistant/Substack Posts/*.html

  1. Select the first file matching "Substack Posts/*.html".
  2. Read its contents.
  3. Strip all HTML tags.
  4. Extract the post title from the
Originally created by @Innomen on GitHub (Jan 18, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description Environment OS: Garuda Linux (Arch based) Kernel: 6.18.4-zen1-1-zen Shell: fish OpenCode version: 1.1.25 Install path: /usr/bin/opencode Interface: local CLI Model: Dolphin-Mistral-24B Venice Backend: llama.cpp Summary The OpenCode Build agent enters a question loop and fails to update its execution plan after receiving a correct answer from the user. Even after the correct file extension is explicitly provided, the agent re asks the same question and does not proceed with the workflow. This appears to be an agent state or planner synchronization bug, not a model misunderstanding. Steps to reproduce Run a Build workflow that attempts to process Substack export files. Initial workflow attempts: ✱ Glob "substack_posts/*.md" No markdown files are found. User clarifies that files are HTML. Agent performs: ✱ Glob "substack_posts/*.html" Agent asks: What is the correct file extension for the Substack posts? User answers: .html Agent repeats the same question instead of proceeding. Observed transcript excerpt ✱ Glob "substack_posts/*.md" ✱ Glob "substack_posts/*.md" No markdown files were found in the substack_posts directory. they are html files ✱ Glob "substack_posts/*.html" What is the correct file extension for the Substack posts? .html ✱ Glob "substack_posts/*.html" What is the correct file extension for the Substack posts? .html The question is repeated multiple times even after the correct value is provided. The agent never advances to selecting a file, reading contents, or executing the requested transformation. Expected behavior After the user answers .html once, the agent should: Update its internal plan state Treat .html as the confirmed extension Proceed to select a file and continue the workflow Actual behavior Agent continues to ask the same clarification question Planner does not converge Workflow stalls indefinitely unless manually interrupted Notes The directory contains hundreds of valid .html files and they are discoverable via glob. This appears to be a planner or agent control layer bug where updated facts from user answers are not propagated into execution state. Similar to other agent non convergence or tool state issues, but this specific loop does not appear to be documented yet. Also tried: # Substack post title and abstract extraction workflow # Files are in /home/innomen/AI/assistant/Substack Posts/*.html 1. Select the first file matching "Substack Posts/*.html". 2. Read its contents. 3. Strip all HTML tags. 4. Extract the post title from the <title> tag. If no <title> tag exists, use the first <h1> as the title. 5. Summarize the content to create an abstract. 6. Write a new text file in the same directory named after the post title, containing the title and abstract. 7. Do not ask for the file extension; assume it is .html. ✱ Glob "substack_posts/*.html" → Asked 1 question ▣ Build · dolphin-mistral /init create/update AGENTS.md /review review changes [commit|branch|pr], defaults to uncommitted /undo undo the last message /redo redo the last message /compact compact the session /rename rename session /copy copy session transcript to clipboard /export export session transcript to file /timeline jump to message /fork fork from message /thinking toggle thinking visibility /share share a session /new create a new session /models list models /agents list agents /session list sessions /status show status /mcp toggle MCPs /theme toggle theme /editor open editor /connect connect to a provider /help show help /commands show all commands /exit exit the app What is the correct file extension for the Substack posts? 1. Build .html Dolphin-Mistral-24B Venice llama.cpp Dolphin HTML files 2. .md esc interrupt Markdown files 3. Type your own answer ↑↓ select enter submit esc dismis ### Plugins _No response_ ### OpenCode version _No response_ ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 18:05:03 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 18, 2026):

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

  • #9102: Agents misinterpret LSP diagnostics as failed edits - While focused on LSP diagnostics, describes similar agent state confusion and retry loops when operations appear to fail
  • #9067: Calling use_skill tool switches agent to default_agent unexpectedly - Shows agent model/state gets reset unexpectedly during tool execution
  • #9003: main agent hangs because of subagent - Reports agent state/synchronization issues and convergence problems
  • #9055: [bug] switching from plan mode to build agent - Related to plan state not being properly updated

The common pattern seems to be agent planner state not being properly synchronized after tool results or user input. Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 18, 2026): This issue might be a duplicate of existing issues. Please check: - #9102: Agents misinterpret LSP diagnostics as failed edits - While focused on LSP diagnostics, describes similar agent state confusion and retry loops when operations appear to fail - #9067: Calling `use_skill` tool switches agent to default_agent unexpectedly - Shows agent model/state gets reset unexpectedly during tool execution - #9003: main agent hangs because of subagent - Reports agent state/synchronization issues and convergence problems - #9055: [bug] switching from plan mode to build agent - Related to plan state not being properly updated The common pattern seems to be agent planner state not being properly synchronized after tool results or user input. Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Jan 18, 2026):

What model?

@rekram1-node commented on GitHub (Jan 18, 2026): What model?
Author
Owner

@Innomen commented on GitHub (Jan 18, 2026):

What model?

Interface: local CLI

Model: Dolphin-Mistral-24B Venice

@Innomen commented on GitHub (Jan 18, 2026): > What model? Interface: local CLI Model: Dolphin-Mistral-24B Venice
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6720