{"version":"2.1.318","anchor":"stop-wait-timer-in-the-turn-controller-goes-from-an-empty-bo","canonical_anchor":"stop-wait-timer-in-the-turn-controller-goes-from-an-empty-bo","heading":"Stopping a turn waits for running REPL code in REPL mode","tier":"notice","area":"REPL Mode","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.318\/e\/stop-wait-timer-in-the-turn-controller-goes-from-an-empty-bo","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.318","markdown":"### Stopping a turn waits for running REPL code in REPL mode\n\nIn REPL mode, pressing stop while code is running now interrupts it and ends the turn after a short wait instead of straight away\n\n**Unclear.** It is not clear whether REPL mode is switched on by default or how a reader turns it on.\n\n**What**\n\nIn REPL mode, Claude does its work by writing and running code in a live coding session. Pressing Esc or otherwise cancelling used to end Claude's turn immediately, and a wait step for this case existed but did nothing. Now, when you stop while that code is still running:\n\n- Claude Code marks the stop as pending and interrupts the running code.\n\n- It waits on a timer, then ends the turn and sends back the result.\n\n- A second stop request while one is already pending is not treated as a new stop.\n\nOutside REPL mode nothing changes.\n\n**Why**\n\nStopping in REPL mode now gives running code a moment to be interrupted cleanly, so the turn may take a short time to end after you press stop.\n\n- Area: REPL Mode\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}