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

Function registerThread

plugins/codex/scripts/lib/codex.mjs:223–239  ·  view source on GitHub ↗
(state, threadId, options = {})

Source from the content-addressed store, hash-verified

221}
222
223function registerThread(state, threadId, options = {}) {
224 if (!threadId) {
225 return;
226 }
227
228 state.threadIds.add(threadId);
229 const label =
230 options.threadName ??
231 options.name ??
232 options.agentNickname ??
233 options.agentRole ??
234 state.threadLabels.get(threadId) ??
235 null;
236 if (label) {
237 state.threadLabels.set(threadId, label);
238 }
239}
240
241function describeStartedItem(state, item) {
242 switch (item.type) {

Callers 2

recordItemFunction · 0.85
applyTurnNotificationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected