Fixed a bug in sandbox handling of AWS credential pairs that compared the wrong entries
The logic that handles AWS access-key and secret-key pairs inside the sandbox (an isolated environment Claude Code can run commands in) was reworked. The sorting and deduplication of credential pairs, and the way conflicting slots get suffixed, were restructured, fixing a bug where the wrong loop variable was being compared when deciding which AWS credential pairs were functional versus not.
The previous bug could cause the sandbox to mismatch or misrank AWS credential pairs, potentially treating a working pair as broken or vice versa. The fix makes that comparison correct.