Skip to content

Addressing greptile's issues#4

Merged
abdelsfane merged 4 commits intoabdelsfane:fix/config-redaction-schema-drivenfrom
HenryLoenwind:redaction3
Feb 8, 2026
Merged

Addressing greptile's issues#4
abdelsfane merged 4 commits intoabdelsfane:fix/config-redaction-schema-drivenfrom
HenryLoenwind:redaction3

Conversation

@HenryLoenwind
Copy link

  • collectSensitiveValues() missed the regex, fixed, then deleted...oops ;)
  • Same for that string check, see the main PR
  • and then the big one: AAAALLLL the other Zod config types.

Sorry that I had to completely rewrite your code, but the two wildcard paths (array[].field and record.*.field) were a pain to shoehorn into the existing one, so I gave up and started anew.

BTW: Do we really need the "there's no uihints object given to us" cases? As far as I see, we always get that object, and it is always populated. That's a whole lot of code we could get rid of if we made it mandatory.

I'm a bit exhausted, or I would add more tests to redact. Feel free to add some test cases with records and arrays and nested sh...stuff. I tested one record manually in the UI; it worked perfectly. (agents.defaults.memorySearch.remote.apiKey)

Also, I don't know if the UI code properly looks up records and arrays. The one I tested was rendered as a password field, but I'm not sure if the keyname lookup is still there or not. As I said, exhausted mentally.

@abdelsfane abdelsfane merged commit 23e1640 into abdelsfane:fix/config-redaction-schema-driven Feb 8, 2026
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.

2 participants