Repository navigation
fix(benchmarks): isolate agent-eval user config - #1758
ducanhnguyen223 wants to merge 5 commits into
Conversation
nc-review: comments — 1 important, 1 nit@ducanhnguyen223 — a few things worth a look, none blocking. PR #1758 fixes #1744 by giving each agent-eval run a private 🟠 important · No changeset is included in this PR. Per ---
'@nanocollective/nanocoder': patch
---
Fix `benchmarks/agent` runs from leaking into the user's real config: each run now gets a private `NANOCODER_CONFIG_DIR` containing only the requested provider block, MCP server env vars are stripped, and any preferences the CLI writes are discarded with the temp dir. Thanks to @ducanhnguyen223. Closes #1744.⚪ nit · The new isolation test exercises the happy path (provider name matches, source 🔴 blocking · 🟠 a reviewer would ask for a change · ⚪ optional Automated code review — correctness, security, design, tests, plus duplicates and scope. A human still decides; this is not a substitute for review and is not exhaustive. The required status checks separately cover lint, formatting, types, unused dependencies, the test suite and the build. This bot never merges. Maintainers can rerun with |
4f65e80 to
15936fa
Compare
|
Thanks for the review. The current head |
Summary
NANOCODER_CONFIG_DIRso preference writes are temporary and user-global settings do not enter the run.Fixes #1744
Validation
pnpm exec ava benchmarks/agent/harness.spec.ts— 29 passed.pnpm run test:typesandpnpm run test:types:vscode— passed.pnpm run test:formatandpnpm run test:lint— completed with Biome emitting an internal UTF-8 diagnostic forsource/acp/acp-agent.ts.@nanocollective/nanocoderpatch bump; hosted Changeset Validation passes.git diff --check— passed. No live model/provider calls were made.pnpm run test:allwas attempted on macOS but is not green locally: AVA reported 53 failures and 15 skips. Failures include the localinkpackage not exportingTextin CLI integration tests and macOS/varversus/private/vartemporary-path comparisons. Hosted CI is revalidating the rebased head.