Skip to content

Re-sync the redaction field when a connection's patterns change #794

Closed

Description

@EVWorth

Severity: P1. The dialog says columns are hidden from agents when they are not.

What happens

  1. Open ?mock=connected, then Tools → Agents….
  2. Production (read-only) is Schema only, and "Also hide columns matching" reads email, *_token.
  3. Set Production to Not shared, then back to Schema only.
  4. The field still reads email, *_token.
  5. Close and reopen the dialog: the field is empty. Revoking cleared the stored patterns, and the re-share saved none.

So the user believes email is hidden when it is not.

Cause

src/components/settings/AgentSettingsDialog.tsx:85: useState(connection.redact.join(", ")) seeds the field once per mounted row and never follows connection.redact after listAgentConnections() refreshes it.

Fix

Re-seed the field from connection.redact whenever it changes (in an effect, skipped while the input has focus), or key the input on connection.redact.join(",").

Part of #783.

Activity

  1. added
    bug
    on Oct 21, 2026
  2. added a commit that references this issue on Oct 21, 2026
    c39f549
  3. added a commit that references this issue on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions