Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Silence Claude stop hook stdout#1298

Closed
imancipate wants to merge 1 commit into
codegen-sh:developcodegen-sh/codegen:developfrom
imancipate:fix/claude-stop-hook-stdoutimancipate/codegen:fix/claude-stop-hook-stdoutCopy head branch name to clipboard
Closed

Silence Claude stop hook stdout#1298
imancipate wants to merge 1 commit into
codegen-sh:developcodegen-sh/codegen:developfrom
imancipate:fix/claude-stop-hook-stdoutimancipate/codegen:fix/claude-stop-hook-stdoutCopy head branch name to clipboard

Conversation

@imancipate

Copy link
Copy Markdown

Summary

  • stop the Claude stop hook from printing non-decision JSON to stdout while keeping the backend COMPLETE status update
  • send hook errors to stderr and return cleanly so Claude sees a valid empty stop-hook response
  • add a regression test that proves the stop hook stays silent on stdout

Test Plan

  • python3 -m pytest -o addopts='' /private/tmp/codegen-sdk/tests/unit/codegen/cli/test_claude_session_stop_hook.py

@imancipate imancipate requested a review from a team as a code owner June 18, 2026 22:03
@imancipate imancipate requested review from matthieualouis and removed request for a team June 18, 2026 22:03
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@imancipate

Copy link
Copy Markdown
Author

Closing this because the upstream repo identity needs to be clarified before proposing the fix.

@imancipate imancipate deleted the fix/claude-stop-hook-stdout branch June 18, 2026 22:07
@imancipate imancipate closed this Jun 18, 2026
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.