fix: add missing OPENAI_SHORT_DESCRIPTION_LIMIT constant

The merge from main dropped this constant (defined in resolvers/codex-helpers.ts
on main's modular version, but needed inline in our monolithic version). Caused
CI check-freshness to fail on `--host codex` generation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Garry Tan
2026-03-23 23:51:15 -07:00
parent 49cfdb9cd7
commit 4c413c6f10
+2
View File
@@ -2877,6 +2877,8 @@ function extractNameAndDescription(content: string): { name: string; description
return { name, description };
}
const OPENAI_SHORT_DESCRIPTION_LIMIT = 120;
function condenseOpenAIShortDescription(description: string): string {
const firstParagraph = description.split(/\n\s*\n/)[0] || description;
const collapsed = firstParagraph.replace(/\s+/g, ' ').trim();