Daily Edition Sources +5

Kit Langton Made OpenCode Stop With A Summary

A public OpenCode patch by Kit Langton turns an agent's configured step limit into a user-facing summary moment instead of a silent loop cap.

Diagram Punk poster showing Kit Langton's OpenCode step-limit patch as evidence cards leading to a circled clean stop and user summary.
Diagram Punka step limit should hand the user a summary.
repo anomalyco/opencode evidence
5 source signals 1 repo commit 4f1a9d7
Evidence: commit 4f1a9d7 / June 21, 2026 / Daily Edition
Open Edition Evidence below

Kit Langton's June 20 commit 4f1a9d7a is maintenance work with a user-facing edge: when an OpenCode agent reaches its configured step limit, the next model turn is forced to answer in text only.

The Public Trail

The patch adds MAX_STEPS_PROMPT under @opencode-ai/core/session/runner, imports that prompt into the OpenCode session layer, and changes tests around session runner behavior. One new test configures the build agent to two steps, then expects the final request to have toolChoice set to none and an empty tool list.

That is a small implementation choice with a large product implication. A limit is not only a guardrail for compute or runaway tool use; it becomes a handoff to the user: here is what happened, here is what remains, here is what to do next.

Why This Contribution Matters

OpenCode was under-covered in today's source audit, and this patch is stronger than a release-number story because it changes how the runtime fails in public. The old test expected a bounded local tool loop to fail after 25 steps. The new path lets uncapped agents continue, while configured agents stop cleanly.

The constructive follow-up for Langton and the OpenCode maintainers is whether step limits should become visible earlier in the interface: not just at the final turn, but while users still have time to narrow the task.

Evidence Trail

Receipts below the story

The article above is the public narrative. This section keeps the source trail, limits, and reporting notes on the same page.

Edition
DateJune 21, 2026
LaneDaily Edition
Confidence78%
Sources5
Reposanomalyco/opencode

Reporter Notes

The companion works because the patch gives a small code change a clear human consequence: a user gets a summary instead of a hard stop.

Important distinctions:

  • Do not infer motivation beyond the public commit.
  • Do not call this a product policy shift; call it a runtime behavior in a public patch.
  • Keep the constructive engagement question factual: should step budget be visible earlier?

The OpenCode source-coverage requirement is also satisfied here. The repo was active and under-covered, and today's companion uses the strongest OpenCode patch instead of treating the repo as a token source.

Primary Evidence

Evidence Limits

  • The public evidence does not prove Langton's private motivation.
  • The article does not claim this behavior covers every OpenCode agent or every hosted deployment.
  • The source does not show whether step-budget visibility will become a user-facing UI before the final turn.
Letters & Corrections

Send a note to the desk

Corrections, missing context, or a follow-up lead.