Skip to content

fix(agent): strip schema key from review settings payload (#224) - #225

Merged
rebuildup merged 1 commit into
release/rex-remotefrom
224
Nov 23, 2026
Merged

rebuildup merged 1 commit into
release/rex-remotefrom
224

Conversation

@rebuildup

Copy link
Copy Markdown
Owner

Summary

Closes #224. Post-merge smoke test on the applied machine caught a regression: once script/link placed ~/.config/agy/review.settings.json, agent review run failed with agy-error: --settings: unknown setting "schema-key". The managed payload carries an editor-only schema hint that agy --settings rejects; before the link was applied the inline fallback masked it.

  • reviewSettingsJson() now parses the managed file and drops the schema key before handing the payload to --settings; missing/unparseable file still falls back to the identical inline deny rules (fail-closed).
  • The schema hint stays in home/.config/agy/review.settings.json for editor validation.
  • New unit test covers the strip.

Test plan

  • bun test script/agent.agy-review.test.ts — 31 pass
  • tsc --noEmit clean
  • Post-merge machine smoke: agent review run -> review-completed

Generated with Devin

agy --settings rejects unknown top-level keys; the managed
~/.config/agy/review.settings.json carries an editor-only schema hint.
Parse and drop it before passing the payload, falling back to the inline
deny rules when the file is missing or unparseable.

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

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 12 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 96ede71 and 534d3ac.

Files selected for processing: 2

  • script/agent.agy-review.test.ts
  • script/agent/agy-review.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@rebuildup
rebuildup merged commit 745fda3 into release/rex-remote Nov 23, 2026
4 checks passed
@rebuildup
rebuildup deleted the 224 branch November 23, 2026 11:21
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