Repository navigation
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
TL;DR: Fixed: setup now keeps the env keys already in REA's entry, and the compact schema setting survives. Still open: one non-string value, like a bare number, drops the whole env block, and setup says I ran 23 cases on the PR head
Not run
Edit: The rerun on the new head bc90619 is in my new comment. Both open findings are fixed there. Thanks, Adkid-Zephyr, for the report, the fix and the new tests. More findings
Tests per NodeNew PR tests plus
Configs, before and afterPi, the #1606 repro. Before, then main, then the PR: {"mcpServers":{"rea":{"type":"stdio","command":"npx","args":["-y","[email protected]","mcp"],"env":{"REA_MCP_INPUT_SCHEMA_PROFILE":"compact","REA_LOG_LEVEL":"silent"}}}}"rea": { "type": "stdio", "command": ".../scripts/rea.mjs", "args": ["mcp"] }"rea": { "type": "stdio", "command": ".../scripts/rea.mjs", "args": ["mcp"],
"env": { "REA_LOG_LEVEL": "silent", "REA_MCP_INPUT_SCHEMA_PROFILE": "compact" } }A TOML client, three keys. After setup on the PR: [mcp_servers.rea.env]
MY_CUSTOM_VAR = "mine"
REA_IDA_MCP_CONFIG = "<fake home>/ida.json"
REA_MCP_INPUT_SCHEMA_PROFILE = "compact"Hermes Agent (MIT) YAML, same three keys. After setup on the PR: env:
MY_CUSTOM_VAR: mine
REA_IDA_MCP_CONFIG: <fake home>/ida.json
REA_MCP_INPUT_SCHEMA_PROFILE: compactOpenCode (MIT) uses the A number among strings, Pi. Before, then main and the PR (same result): "env":{"REA_MCP_INPUT_SCHEMA_PROFILE":"compact","REA_MCP_MAX_RESPONSE_BYTES":33554432,"MY_CUSTOM_VAR":"mine"}"rea": { "type": "stdio", "command": ".../scripts/rea.mjs", "args": ["mcp"] }CommandsEach step ran with env -i PATH="$NODE24/bin:/usr/bin:/bin" HOME="$FAKE" USERPROFILE="$FAKE" TMPDIR="$FAKE/tmp" \
XDG_CONFIG_HOME="$FAKE/.config" XDG_DATA_HOME="$FAKE/.local/share" \
XDG_CACHE_HOME="$FAKE/.cache" XDG_STATE_HOME="$FAKE/.local/state" \
npm_config_cache="$FAKE/.npm" timeout 60 \
node scripts/rea.mjs setup --client pi --skill=false --yes --jsonThe found key came from Schema sizes: I started the written command over stdio, sent Tests, once per Node, with a fake home: node scripts/run-development-tests.mjs focused \
tests/boundary/filesystem/clientConfigurationEnvironment.test.ts \
tests/acceptance/setup/piClientSetup.test.ts \
tests/boundary/filesystem/clientLifecycle.test.tsTest setup
🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊 |
|
TL;DR: Both open findings are fixed. Setup now refuses a bad env value or a bad schema profile before it writes, and doctor says This is the rerun promised in my earlier comment. I ran 24 cases on the new head bc90619 and on current main 69fe5b6, each in a fresh fake home. That is 48 runs. Main has moved since my first run, and the PR now includes upstream main bbd0192. I did not install any client. I ran the 23 old cases plus one new case, because the new commit also checks the response-size setting. Each run did a dry run, setup, doctor, setup again, uninstall and doctor. What changed against the old head 4560e0d
The 12 other cases gave the same results as the old head. They are the #1606 repro, the eight three-key cases, the same-key case, the stale-key case and the empty-env case. In the repro, both keys stay, and no tool exceeds the 13,312-byte limit (largest 11,026 bytes).
Tests
On Node 24.18.0 the 16 suites in the PR body pass on the new head (248 tests), and Still not run
Thanks, Adkid-Zephyr, for the fix and the extra tests. More findings
Test detailsThree files, 63 tests:
CommandsEach step ran with env -i PATH="$NODE24/bin:/usr/bin:/bin" HOME="$FAKE" USERPROFILE="$FAKE" TMPDIR="$FAKE/tmp" \
XDG_CONFIG_HOME="$FAKE/.config" XDG_DATA_HOME="$FAKE/.local/share" \
XDG_CACHE_HOME="$FAKE/.cache" XDG_STATE_HOME="$FAKE/.local/state" \
npm_config_cache="$FAKE/.npm" timeout 60 \
node scripts/rea.mjs setup --client pi --skill=false --yes --jsonTests, once per Node, with a fake home: node scripts/run-development-tests.mjs focused \
tests/boundary/filesystem/clientConfigurationEnvironment.test.ts \
tests/acceptance/setup/piClientSetup.test.ts \
tests/boundary/filesystem/clientLifecycle.test.tsTest setup🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊 |
|
Welcome to REA, @Adkid-Zephyr! Thanks for preserving the environment overrides people have explicitly configured for their MCP server. The migration, backup, and idempotence coverage helps check that setup retains those settings while updating provider paths. Squash-merged. |
Summary
Fixes #1606. Setup discarded existing REA server environment settings while migrating its launcher or updating provider paths. Keep valid overrides, and refuse malformed maps or invalid known environment settings before writing rather than dropping the whole map or reporting a server that cannot start as aligned.
Problem and expected behavior
setup --client pi --skill=false --yes --jsonremovedREA_MCP_INPUT_SCHEMA_PROFILE=compactfrom an existing registration. Its next stdiotools/listcontained four schemas above the compact budget. #1484/#1514 document whole-request failures caused by the full catalog in size-capped clients.Likewise, one numeric/boolean/null environment value must not cause all string peers to disappear. An empty or invalid schema profile must produce a source-specific setup/doctor diagnostic, leaving the original configuration intact.
Change and scope
environment, Hermes YAML and OpenCode V1-to-V2 migration.Contract and boundary impact
Evidence and regression coverage
Evidence-bearing checklist: not applicable; no analysis Evidence changes.
Validation performed
Integrated upstream main
bbd0192; Node 24.18.0 / npm 11.16.0 / macOS arm64:tests/acceptance/setup/piClientSetup.test.tsafter the plan assertion — 6 passed.ambiguous_environment_boundary; that suite then passed 13/13 in an isolated run on this head and 13/13 on unmodifiedbbd0192. Process production/test code is identical to main; no assertion or timeout was relaxed here.npm run check— passed, including typecheck, lint, format, knip, metadata and architecture guards (existing warnings remain).npm run docs:check— passed.npm run verify:test-discovery— passed, 775 files exactly once.npm run verify:package— passed, including isolated installed CLI/MCP, setup/update and skill verification.npm pack --dry-run,git diff --check, pre-commit and pre-push checks — passed.Latest head
bc90619triggered CI run 38083744360, which explicitly awaits approval from a maintainer. No jobs have executed on this head yet; local validation is not a remote CI pass claim.Compatibility, safety, and release
Review checklist
Disclosure: implementation and regression tests were prepared with OpenAI Codex assistance.