Skip to content

an aborted message stops an OpenAI-compatible turn at the end of its round (#1143) - #1243

Merged
chedim merged 1 commit into
mainfrom
oai-abort
Nov 26, 2026
Merged

chedim merged 1 commit into
mainfrom
oai-abort

Conversation

@chedim

@chedim chedim commented Nov 25, 2026

Copy link
Copy Markdown
Owner

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 other cloud_models endpoint use) never looked at the flag: a turn ran until the model answered or chat_max_turns (2048 by default; the turn timeout is 6 h). Seen on Memo on deepseek/deepseek-v4.1-flash: Stop was pressed and the turn went on for several minutes, 104 tool calls.

ChatRound.stopped reads the message's aborted; the round's step is a fail (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.json and surface.json regenerated (one new getter); docs/chat-backends.md says how each backend stops.

Not changed, and for the owner to decide: the ceiling chat_max_turns is 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.

…round: the Stop of the page was ignored by that rung and the loop ran to chat_max_turns (#1143)
@chedim
chedim merged commit fb61511 into main Nov 26, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant