Repository navigation
Conversation
…round: the Stop of the page was ignored by that rung and the loop ran to chat_max_turns (#1143)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The page's Stop marks a message
aborted. The claude CLI is killed, membrama is told and the brain ends at once, but the OpenAI-compatible rung (chat_oai.c1f, which OpenRouter and any othercloud_modelsendpoint use) never looked at the flag: a turn ran until the model answered orchat_max_turns(2048 by default; the turn timeout is 6 h). Seen on Memo ondeepseek/deepseek-v4.1-flash: Stop was pressed and the turn went on for several minutes, 104 tool calls.ChatRound.stoppedreads the message'saborted; the round'sstepis afail(The model <name> was stopped., the words membrama uses) once the round in flight has ended, so no other round opens and the model is called no more.Test first:
an_aborted_message_stops_the_loop_at_the_next_round_and_the_model_is_called_no_more(chat_openai_1143.rs) failed on the old code (the turn never stopped) and passes now; the other 13 tests of the file pass.types.jsonandsurface.jsonregenerated (one new getter);docs/chat-backends.mdsays how each backend stops.Not changed, and for the owner to decide: the ceiling
chat_max_turnsis still 2048 (a threshold the pack header already flags); a model that flails on the language runs far longer than a person would let it.