Skip to content

fix(devin): use decision "reject" and remove sentinel no-op - #62

Merged
cuzfrog merged 1 commit into
mainfrom
fix_devin_reject
Aug 7, 2026
Merged

fix(devin): use decision "reject" and remove sentinel no-op#62
cuzfrog merged 1 commit into
mainfrom
fix_devin_reject

Conversation

@abao-bot

@abao-bot abao-bot Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Replaced the no-op sentinel / PostToolUse sidecar workaround for Devin CLI with a clean decision: "reject" from the PreToolUse hook.
  • Removed post-tool-use.ts, post-tool-use.test.ts, and all PostToolUse hook wiring.
  • Updated pre-tool-use.ts to emit {"decision": "reject", "reason": "..."} and exit 0 when a gate violation is detected.
  • Updated settings-writer.ts, install-devin.ts, run.mjs, and hooks.json to only install PreToolUse and SessionStart hooks.
  • Updated tests in pre-tool-use.test.ts, settings-writer.test.ts, and cli.test.ts to assert the reject behavior and verify PostToolUse is no longer written.
  • Updated READMEs (en/ja/zh) and system-prompt.template.md to describe the rejection behavior and remove PostToolUse examples.
  • Bumped patch version to 1.1.2 in package.json, package-lock.json, and .devin-plugin/plugin.json.

Test plan

  • npm run check passes
  • npm run test passes (405 tests)
  • Subagent review passed with no blocking issues
  • CI expected to pass

Generated with Devin

The no-op sentinel/sidecar workaround was needed because `decision:
"block"` stops the agent turn. Devin CLI's hook decision enum supports
"reject", which rejects the tool call while allowing the loop to
continue. Remove PostToolUse and the sidecar entirely.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@cuzfrog
cuzfrog merged commit 357cc23 into main Aug 7, 2026
1 check passed
@cuzfrog
cuzfrog deleted the fix_devin_reject branch August 7, 2026 22:35
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