MCPcopy
hub / github.com/openai/codex-plugin-cc / buildTaskThreadName

Function buildTaskThreadName

plugins/codex/scripts/lib/codex.mjs:107–110  ·  view source on GitHub ↗
(prompt)

Source from the content-addressed store, hash-verified

105}
106
107function buildTaskThreadName(prompt) {
108 const excerpt = shorten(prompt, 56);
109 return excerpt ? `${TASK_THREAD_PREFIX}: ${excerpt}` : TASK_THREAD_PREFIX;
110}
111
112function extractThreadId(message) {
113 return message?.params?.threadId ?? null;

Callers 1

Calls 1

shortenFunction · 0.70

Tested by

no test coverage detected