fix(web): silence the stale gate hint, clear whitespace fields, narrow the paste heuristic

This commit is contained in:
Yichen Jiang
2026-08-07 11:35:23 +08:00
parent 91e9d5afa2
commit 5a422337f8
8 changed files with 55 additions and 11 deletions

View File

@@ -1092,6 +1092,8 @@ describe('apiKeyFailure', () => {
['a padded key, which the caller trims', ' sk-abc '],
['the printable-ASCII boundary characters', '!~'],
['a hyphenated key carrying an equals sign', 'sk-ABC=xyz'],
['an all-upper-case key ending in base64 padding', 'ABCD=='],
['an all-upper-case key ending in one padding character', 'MNOPQRST='],
])('accepts %s', (_label, draft) => {
expect(apiKeyFailure(draft)).toBeUndefined()
})