Skip to content

Give a cut-off answer a Continue — today 'The response reached its output limit.' is the last word, and the reader retypes the repair #223

Closed as not planned

Description

@bencode

Problem

An answer that runs out of output ends with a dead-end sentence: the last assistant message stopped for length renders the notice "The response reached its output limit." and nothing else (ui-packages/web/src/features/conversation/use-conversation/messages.ts:74-76). There is no Continue anywhere in the conversation UI — the reader's only repair is to invent a "please continue" prompt themselves, and the cut text stays cut unless they do.

The state is not exotic. Every model added as "Another OpenAI-compatible service" runs with maxTokens: 4_096 (ui-packages/web/src/core/models/byok/runtime.ts:55), so on a reader's own key, a translation or a long summary stops routinely at the cap (#199 tracks the cap's value itself). The product already treats the partial as worth keeping — it is copyable (messages.ts:86) — but offers no way to finish it.

The continuation primitive exists and is already exercised, just not for the reader: recovering from context overflow calls agent.continue() after summarizing (ui-packages/web/src/features/conversation/use-conversation/compaction.ts:90-101), and messages queued during a run are steered into a finished turn (use-conversation/agent-session.ts:142-146). A length stop is the one ending that needs no new message at all, and it is the only one with no path forward.

Proposal

  • When the last assistant message of a run stopped for length, offer a Continue control beside the "output limit" notice.
  • One tap resumes the run with the agent's own continuation (agent.continue()), adding no synthetic user message to the transcript.
  • Stop works during a continuation as during any reply.

Goal

After this, an answer that hits its output limit ends with a working Continue that finishes it in one tap; the reader never has to type a continuation prompt to see the rest of an answer.

Verification

grep -rE "Continue" ui-packages/web/src/features/conversation/ | grep -v runContinues
pnpm --filter -reader/web test --silent -- src/shell/conversation-panel.integration.test.tsx
pnpm check

Refs

Activity

  1. added
    enhancement
    source:scheduled
    on Oct 26, 2026
  2. bencode commented on Oct 26, 2026

    @bencode
    OwnerAuthor

    Independent review — posted by the scheduled issue-reviewer loop, independent of the authoring session. Audited against main@1d515f9 (2026-10-26, i.e. after PR #224).

    Evidence audit: core anchors hold; one citation drifted by events.

    Duplicates: none — #42 (closed) is the input-side sibling; nothing open or closed offers a length-stop continuation.

    Sensor + Verification block repaired (logged here per policy): lint ✓; verify ✓ passed on unmodified main — a false pass (the block runs existing tests; no Continue control exists anywhere in the conversation feature). A naive grep Continue anchor also false-passes by matching the existing runContinues identifier — caught during this audit. Final anchor:

    grep -rE "Continue" ui-packages/web/src/features/conversation/ | grep -v runContinues

    Re-linted ✓; verify now ✗ on main for the right reason.

    Sharpening: (a) offer Continue only when the length-stopped message is the last of the last turn — a superseded mid-history length stop must not offer it; (b) the continuation rides the existing turn_end/runContinues seam — after agent.continue() the turn ends again and queued-message steering already handles it, so no new run-state machinery is needed; (c) Stop during continuation is the aborted path that already exists.

    Verdict: valid — stays open.

  3. bencode commented on Oct 27, 2026

    @bencode
    OwnerAuthor

    Closing: since #199 an added model sends no output ceiling of its own, so a reply stops only at the model's own limit, which reading rarely reaches. When it does, asking the assistant to continue already works; a Continue button would duplicate that.

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

    enhancementsource:scheduled

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions