The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(hooks): treat a .gitmodules change as a Rust change
obchain5ca2f714ba5c
diff --git a/.husky/pre-push b/.husky/pre-pushindex c47dc895e3..114497006c 100755--- a/.husky/pre-push+++ b/.husky/pre-push@@ -94,7 +94,7 @@ push_touches_rust() {return 0fiprintf '%s\n' "$PUSHED_PATHS" | grep -Eq \- '(^|/)[^/]+\.rs$|(^|/)Cargo\.(toml|lock)$|(^|/)rust-toolchain\.toml$|^\.cargo/|^crates/|^vendor/|^UNRESOLVED$'+ '(^|/)[^/]+\.rs$|(^|/)Cargo\.(toml|lock)$|(^|/)rust-toolchain\.toml$|^\.cargo/|^\.gitmodules$|^crates/|^vendor/|^UNRESOLVED$'}# Windows Git Bash can miss Node/Pnpm in PATH when hooks run.diff --git a/AGENTS.md b/AGENTS.mdindex defa958ec9..cd59f1be66 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -554,7 +554,7 @@ serialization.- Use the issue and PR templates.- Fix hook failures caused by your changes.- `.husky/pre-push` runs `rust:clippy` only when the push carries Rust- (`*.rs`, a manifest, `.cargo/`, `crates/`, `vendor/`,+ (`*.rs`, a manifest, `.cargo/`, `.gitmodules`, `crates/`, `vendor/`,`rust-toolchain.toml`); it runsanyway when the range cannot be resolved, or with`PRE_PUSH_FORCE_CLIPPY=1`. `scripts/__tests__/pre-push-hook.test.mjs`diff --git a/scripts/__tests__/pre-push-hook.test.mjs b/scripts/__tests__/pre-push-hook.test.mjsindex 83a19cbbc6..60ad2868f1 100644--- a/scripts/__tests__/pre-push-hook.test.mjs+++ b/scripts/__tests__/pre-push-hook.test.mjs@@ -155,6 +155,14 @@ test('a push that touches a vendored submodule path still runs rust:clippy', ()assert.equal(ranClippy(runHook(ws, [line])), true);});+test('a push that bumps a submodule pointer still runs rust:clippy', () => {+ // `[patch.crates-io]` resolves every vendored crate by path, so a pointer+ // bump changes what the workspace compiles against. The Rust CI filters+ // list `.gitmodules` for the same reason.+ const { ws, line } = pushOf('.gitmodules', '[submodule "vendor/tinyagents"]\n');+ assert.equal(ranClippy(runHook(ws, [line])), true);+});+test('a clippy failure in a Rust push still blocks it', () => {// The gate must not weaken the check it gates.const { ws, line } = pushOf('crates/openhuman-core/src/lib.rs', 'pub fn a() {}\n');