Problem
Token selection lacks error handling for corrupted sessionStorage data.
Current state
TokenProvider silently ignores JSON parsing errors when loading stored token from sessionStorage.
Solution
- Handle parsing errors - Clear invalid storage data
- Add loading state during token initialization
- Show error messages if token operations fail
Files to modify
tokenContext.tsx - Add try/catch and error states
ChainAndTokenSheetPanel.tsx - Show errors in UI
Acceptance criteria
Problem
Token selection lacks error handling for corrupted sessionStorage data.
Current state
TokenProvidersilently ignores JSON parsing errors when loading stored token from sessionStorage.Solution
Files to modify
tokenContext.tsx- Add try/catch and error statesChainAndTokenSheetPanel.tsx- Show errors in UIAcceptance criteria