Skip to content

feat(tools): optional reject_yield hook before agent finish#580

Open
JessicaMulein wants to merge 1 commit into
cecli-dev:mainfrom
Digital-Defiance:pr/yield-reject-hook
Open

feat(tools): optional reject_yield hook before agent finish#580
JessicaMulein wants to merge 1 commit into
cecli-dev:mainfrom
Digital-Defiance:pr/yield-reject-hook

Conversation

@JessicaMulein

Copy link
Copy Markdown

Summary

  • Yield checks coder.reject_yield before finishing the agent turn.
  • Returns the hook string to the model when blocked; otherwise unchanged behavior.

BrightVision sets the hook on implement/spec-agent turns (parent session.py).

Test plan

  • pytest cecli/tests/tools/test_yield_guard.py -q

Lets headless hosts block premature Yield (e.g. implement turns with no
saved EditText). Hook returns a user-facing string to reject, or None.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

2 participants