@creator-notes/cnotes 0.107.10 → 0.107.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -97,7 +97,9 @@ function isWithin(child, parent) {
|
|
|
97
97
|
* 3. CLAUDE_CODE_SESSION_ID — Claude Code's per-process env var. Zero-config
|
|
98
98
|
* but undocumented; best-effort fallback when no hook is installed. It's
|
|
99
99
|
* the live process's own env, so no staleness check applies.
|
|
100
|
-
* 4.
|
|
100
|
+
* 4. CODEX_THREAD_ID — the Codex thread driving the shell, stamped as
|
|
101
|
+
* kind "codex".
|
|
102
|
+
* 5. The Cursor cloud agent id. `CURSOR_CONVERSATION_ID` is that id in the
|
|
101
103
|
* parent shell (`bc-…`, resumable at `https://cursor.com/agents/<id>`).
|
|
102
104
|
* In a subagent it is `sand-subagent-…` or a child `bc-…`, and that URL
|
|
103
105
|
* does not open. Pass `cursorCloudAgentId` from {@link readCursorCloudAgentId}
|
|
@@ -122,6 +124,11 @@ export function resolveAgentSession(options) {
|
|
|
122
124
|
const claudeEnvId = process.env.CLAUDE_CODE_SESSION_ID?.trim();
|
|
123
125
|
if (claudeEnvId)
|
|
124
126
|
return { kind: "claude-code", id: claudeEnvId };
|
|
127
|
+
// Codex sets CODEX_THREAD_ID in every shell its agent runs, so a run from
|
|
128
|
+
// Codex shows the Codex mark instead of a generic agent.
|
|
129
|
+
const codexThreadId = process.env.CODEX_THREAD_ID?.trim();
|
|
130
|
+
if (codexThreadId)
|
|
131
|
+
return { kind: "codex", id: codexThreadId };
|
|
125
132
|
const cursorId = cursorResumeId({
|
|
126
133
|
conversationId: process.env.CURSOR_CONVERSATION_ID,
|
|
127
134
|
cloudAgentId: options?.cursorCloudAgentId,
|