You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ui): MetaToolApprovalDialog crash on freeform approval diff
The dialog assumed a rigid `{ before, after, added, removed }` diff, but the
backend's `ApprovalPayload.diff` is freeform JSON — `mcpmux_create_feature_set`
sends `{ added_tools }`, so `diff.after.length` threw "Cannot read properties
of undefined (reading 'length')" the moment the dialog rendered (i.e. whenever
auto-approve was off). Read the diff defensively: coerce each field via
`toStringArray`, union `added` + `added_tools`, and only show before/after
counts when those keys exist. Any write tool's diff shape now renders without
crashing.
Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>
0 commit comments