Skip to content

fix(execution): record a step error during a stop as stopped - #829

Merged
harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/stop-vs-step-error
Dec 3, 2026
Merged

harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/stop-vs-step-error

Conversation

@harenome

@harenome harenome commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Closes #807

What

  • _fail reads the stop event under the run lock, which Stop holds while it sets it.
  • A step that raises while Stop is being said ends the run stopped, exit 130, ✕ stopped during <part>: exit 130, as an ordinary Stop.
  • Before: failed, no exit code, ✕ run: ... after stop requested.

Touches

  • app/nullius/execution.py: _fail.
  • app/tests/test_execution_stop.py: the forced ordering, real local part.

Verified

  • New test: fails on main, leaving no process; 13/13 in test_execution_stop.
  • Backend 3879: 1 failure in test_osworld2_docker_create (unrelated; passes alone). Route 1019: OK.

Risk

Low. _done still runs outside the lock.

Agents

Claude Code, Opus 5.5
Codex, GPT-6.2-Astra (review)

@harenome
harenome marked this pull request as ready for review December 3, 2026 23:34
@github-actions github-actions Bot added the needs review Tests pass, no conflict, no verdict on its latest commit label Dec 3, 2026
@harenome
harenome merged commit df4329b into ThinkFlowLab:main Dec 3, 2026
4 checks passed
@harenome
harenome deleted the fix/stop-vs-step-error branch December 3, 2026 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs review Tests pass, no conflict, no verdict on its latest commit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Runs: a step error during a Stop records the run as failed after stop requested

1 participant