Skip to content

bug(platform): credential-list refresh silently discards an unrelated open credential draft #3667

Closed

Description

@yannickmonney

P2 · Reproduced locally at 44e0dcf254975286c0e9dea443b5cd1ca6b23347.

A live update to one credential can close another credential's edit dialog and discard typed changes without warning. The table is shared by AI providers and Connectors.

Reproduction:

  1. Have two credentials A and B visible in Settings → AI providers.
  2. Open Edit credential for A and type a different name without saving.
  3. In another session, update credential B, causing the credential list in the first session to refresh.
  4. Observe the open dialog, then reopen Edit credential for A.

Expected: A's independent draft remains open and unchanged. Any operation that discards it must respect the form's discard confirmation.

Observed: The refreshed credential array unmounts A's dialog immediately; no confirmation is called. Reopening A shows its stored name, and the typed draft is lost. Updating B through the real local API and feeding the returned list to the production table reproduces this.

Cause: CredentialTable rebuilds vendorCounts whenever credentials changes and includes that Map in the columns memo dependencies. The actions cell is an inline component in those columns, so its new identity remounts CredentialRowActions and its local dialog state. The native dialog close/discard handler is never involved.

Frozen observation/control output:

CONTROL ordinary table rerender with unchanged credential array retains the dirty dialog
CONFIRMED real native update to credential B + refreshed rows closed dirty credential A dialog without confirmation; reopen A lost its typed draft

Control: An ordinary table rerender with the original credential array keeps the dirty dialog and text. The native readback confirms A's stored row did not change when B was updated.

Exact probe command (1/1 passed; cwd detached source services/platform):

/Users/yannick/.npm/_npx/22f2fe8d8bc13000/node_modules/.bin/bun x vitest run --config /Users/yannick/.codex/notes/tale-100-findings/provider-connector-proof/vitest.config.ts /Users/yannick/.codex/notes/tale-100-findings/provider-connector-proof/credential-drafts.probe.test.tsx --maxWorkers 1 --testTimeout 30000 --reporter verbose --silent=false

Proof boundary: Actual CredentialTable, CredentialRowActions, CredentialEditDialog, adapters and dialog/table primitives. The B update and refreshed list are real authenticated localhost API results. The harness supplies read results to the table, mirroring a query refresh; it does not exercise the live hint stream or browser. No provider, model or OAuth request ran. B was restored afterward.

Source:

Deduplication: Cached all-state credential/provider/connector titles and current findings reviewed. This is a shared credential-table remount on unrelated live data changes, separate from an editor's stale hash or failed save. Generic DataTable keyboard debt is not implicated. Parent performs live all-state dedup.

Independent parent verification: inspected the actual table/dialog proof and reran it against the owned localhost credentials. The unchanged-array control preserved the draft; the real unrelated B update discarded it without confirmation. Test passed, B restored. Log: provider-connector-proof/parent-credential-drafts.log. Live all-state credential/dialog/refresh search found no prior root.

Activity

  1. changed the title [-]bug(platform): bug: credential-list refresh silently discards an unrelated open credential draft[/-] [+]bug(platform): credential-list refresh silently discards an unrelated open credential draft[/+] on Sep 28, 2026
  2. yannickmonney commented on Oct 4, 2026

    @yannickmonney
    ContributorAuthor

    Verified as already fixed by #3778, merged on 2026-09-29 as c4a415a. Current main a9a19af retains the fix: sibling counts are row data, and credential refreshes no longer recreate the table's action-cell components.

    The existing regression keeps an open edit dialog and its typed name when the sibling credential list changes. I inspected that test and its fresh hosted execution in UI job 111366272286, run 37176657868: the providers suite passed all 33 tests, including this case. That job executed on tree ce005353 (the frozen d9b head); the relevant provider/credential components and tests are unchanged on current main. This is retained executed evidence, not a newly run current-main browser test.

    TALE-206's recent local result remains accurately recorded: two dialog tests passed, while the broader providers suite could not collect because of its dependency environment. No new fix or duplicate PR is needed. Closing this issue and reconciling TALE-206 as Done; this does not claim a new deployment.

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

    bugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions