Skip to content

[Bug]: wait_for_user enters an infinite continuation loop with an unreconciled completed background job #917

Description

@MichaelLi423

What happened, and what did you expect?

Image

Calling wait_for_user while the Background Job Board contains a completed but unreconciled task can cause the orchestrator to be repeatedly resumed without any new external user message.
Each resumed turn sees the same Background Job Board reminder and calls wait_for_user again. This produced an apparently unbounded loop and consumed roughly 50% of my GPT Pro quota.
I've already experienced two infinite loop calls. Maybe should we slow the new feature development?

Steps to reproduce

  1. Start a background task.
  2. Let it complete so it appears as completed, unreconciled in the Background Job Board.
  3. Have the orchestrator call wait_for_user.
  4. Do not send another user message.
  5. Observe repeated orchestrator turns and repeated wait_for_user calls.
    Example repeated output:
    未收到新的 Windows、固件或现场证据;继续等待。 wait_for_user [reason=等待 Windows 构建输出、固件协议确认或现场 R1–R7 证据。]
    This was repeated many times without external user input.

oh-my-opencode.json

"provider": {
    "openai": { "whitelist": ["gpt-5.6-sol", "gpt-5.6-terra", "gpt-5.6-luna", "gpt-5.3-codex-spark"] },
    "opencode-go": { "whitelist": ["kimi-k3", "kimi-k2.7-code", "grok-4.5", "glm-5.2", "deepseek-v4-pro", "deepseek-v4-flash", "mimo-v2.5"] }
  },
  "watcher": { "ignore": ["node_modules/**", "dist/**", "target/**", ".git/**"] },
  "permission": {
    "read": "allow",
    "edit": "allow",
    "question": "allow",
    "skill": "allow",
    "todowrite": "allow",
    "glob": "allow",
    "grep": "allow",
    "list": "allow",
    "task": "allow",
    "lsp": "allow",
    "webfetch": "allow",
    "websearch": "allow",
    "bash": "allow"
  },
  "agent": { "explore": { "disable": true }, "general": { "disable": true }, "plan": { "disable": true } },
  "lsp": true

OpenCode version

1.18.5

oh-my-opencode-slim version

2.2.8

Operating system

MacOS 26.5.1

Logs, screenshots, or extra context

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions