Research subagent exceeded the context window and silently failed #3756

Open
opened 2026-02-16 17:41:21 -05:00 by yindo · 1 comment
Owner

Originally created by @tylerlaprade on GitHub (Dec 22, 2025).

Originally assigned to: @thdxr on GitHub.

Description

The main agent delegated research to a subagent and couldn't figure out why it wasn't getting a response. I checked manually and found that the subagent had hit the limit.

OpenCode version

Whatever the latest was on last Friday

Steps to reproduce

  1. Ask it to research something open-ended, like finding all VSCode extensions that allow you to customize your terminal theme

Screenshot and/or share link

Image

Operating System

macOS

Terminal

VSCode

Originally created by @tylerlaprade on GitHub (Dec 22, 2025). Originally assigned to: @thdxr on GitHub. ### Description The main agent delegated research to a subagent and couldn't figure out why it wasn't getting a response. I checked manually and found that the subagent had hit the limit. ### OpenCode version Whatever the latest was on last Friday ### Steps to reproduce 1. Ask it to research something open-ended, like finding all VSCode extensions that allow you to customize your terminal theme ### Screenshot and/or share link <img width="698" height="638" alt="Image" src="https://github.com/user-attachments/assets/57a2d941-cdab-40e6-acdb-81e6e2fe8ead" /> ### Operating System macOS ### Terminal VSCode
yindo added the bug label 2026-02-16 17:41:21 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 22, 2025):

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

  • #5178: [FEATURE]: Allow continuation after context overflow - describes subagents hitting token limits and stopping execution
  • #5204: Error messages from model provider during a subagent don't make way to primary agent - subagent errors not being communicated back

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

@github-actions[bot] commented on GitHub (Dec 22, 2025): This issue might be a duplicate of existing issues. Please check: - #5178: [FEATURE]: Allow continuation after context overflow - describes subagents hitting token limits and stopping execution - #5204: Error messages from model provider during a subagent don't make way to primary agent - subagent errors not being communicated back Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3756