Repository navigation
feat(agents): modernize OpenCode and Claude metric feedback - #1685
Merged
Merged
Conversation
Keep the runtime reminder concise and distinguish baseline-relative findings from regressions caused by the current edit. Preserve suppression syntax and task-boundary validation guidance.
Preserve successful edit, write and patch results while appending bounded advisory context. Keep configuration and named-path identity separate from physical-file freshness and cancellation. Share bounded subprocess, guidance and report helpers with agent adapters. Cover process-tree cleanup, stale and concurrent results, aliases, manifest discovery and isolated Git fixtures with regression tests.
Register an exec-form PostToolUse hook for successful file edits. Emit additionalContext with exit zero, honor current checkout configuration, reject stale findings and keep diagnostics in the debug channel. Retain the shell compatibility entrypoint and add subprocess-level tests for advisory JSON, cancellation, configuration boundaries, exclusions, baselines and analyzer selection.
Run both hook suites using the checkout-built analyzer on Linux, macOS and Windows with Node 24, plus Node 22.7 compatibility on Linux. Pin setup-node to v7.1.0. Integrate the suites with lint, pre-commit and CI, lint the compatibility wrapper explicitly and report the Node prerequisite in check-tools.
Document advisory delivery, configuration boundaries, prerequisites and verification. Correct suppression exceptions and metric-feedback scope, and distinguish the legacy OpenCode example. Translate the updated chapter into Japanese, fix rendered links and preserve configuration literals and stable heading anchors.
Owner
Author
|
Fixed the Validation passed locally:
The fix is pushed; the new CI run is pending. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1685 +/- ##
=======================================
Coverage 98.26% 98.27%
=======================================
Files 371 371
Lines 108482 108482
Branches 108047 108047
=======================================
+ Hits 106603 106612 +9
+ Misses 1212 1204 -8
+ Partials 667 666 -1
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Owner
Author
|
CI is green on 4750828. The updated run passed cargo-deny and all Linux, macOS, and Windows test jobs, including the agent-hook suites. No failing or pending PR checks remain. |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PostToolUsehook through the project's settings. Share analyzer, process, path, guidance, and report helpers with OpenCode, and retain the shell compatibility entrypoint.Validation
make pre-commit: passed after the history rewrite, final project configuration change, and Tokio lockfile update.cargo test --workspace --all-features --locked: passed after the Tokio update.cargo deny --all-features check advisories bans licenses sources: passed with CI's cargo-deny 0.20.2 after the Tokio update.nargs = 8 (limit 5)for a disposable fixture and stayed silent after a clean edit. Confirmed exactly one active OpenCode reference plugin.msgfmt --check, rendered local links/anchors, and hook configuration JSON were verified.Windows and macOS execution is covered by the CI matrix; local verification ran on Linux.