fix(codex-quota): guard feature label type in quota windows (#1346)

This commit is contained in:
Kai (Tam Nhu) Tran authored and GitHub committed 2026-05-23 16:55:55 -04:00
1 parent 66966f3527
commit b71fe5dd6e
4 files changed
+32 -3

No files matched your search

@@ -37,6 +37,11 @@ describe('prettifyCodexFeatureLabel', () => {
expect(prettifyCodexFeatureLabel(' ')).toBe('');
expect(prettifyCodexFeatureLabel(' GPT-5.3-Codex-Spark ')).toBe('Codex Spark');
});
it('returns empty string for non-string input', () => {
expect(prettifyCodexFeatureLabel({ label: 'Spark' })).toBe('');
expect(prettifyCodexFeatureLabel(123)).toBe('');
});
});
describe('getCodexWindowKind', () => {