The one and only agent harness for complex codebases. Project memory, planning, execution, and verified completion inside Codex.
JavaScript aiai-agentsclaudeclaude-codeclicodexdeveloper-toolslazylazycodexoh-my-openagentomoopenaiorchestrationtypescript
chore: sync Codex marketplace v4.7.5
github-actions[bot]502871293d9c
diff --git a/plugins/omo/README.md b/plugins/omo/README.mdindex f5144a26..57801707 100644--- a/plugins/omo/README.md+++ b/plugins/omo/README.md@@ -9,5 +9,28 @@ Internally each component remains isolated under `components/`:- `components/lsp`- `components/ultrawork`- `components/ulw-loop`+- `components/telemetry`The root plugin manifest exports one Codex plugin named `omo`, with aggregate hooks, skills, and the LSP MCP server.++## Telemetry++The bundled telemetry component emits the anonymous `omo_codex_daily_active` event at most once per UTC day per machine when the Codex `SessionStart` hook runs. It uses `sha256("omo-codex:" + hostname)` as the distinct ID, disables PostHog person profiles, and stores daily deduplication state in `$XDG_DATA_HOME/omo-codex/posthog-activity.json` or `~/.local/share/omo-codex/posthog-activity.json`.++Captured properties are limited to product/runtime metadata, operating-system metadata, coarse machine shape, locale/timezone, shell/terminal hints, `source`, `reason`, and `day_utc`. It does not send prompt contents, chat transcripts, source files, repository contents, file paths, access tokens, API keys, raw hostnames, Git remotes, usernames, email addresses, or runtime error diagnostics.++Opt out before launching Codex:++```bash+export OMO_CODEX_DISABLE_POSTHOG=1+export OMO_CODEX_SEND_ANONYMOUS_TELEMETRY=0+```++Global opt-out flags also disable this telemetry:++```bash+export OMO_DISABLE_POSTHOG=1+export OMO_SEND_ANONYMOUS_TELEMETRY=0+```++Detailed implementation notes live in `components/telemetry/README.md`; the root product disclosure lives in `docs/reference/codex-telemetry.md` in the source repository.diff --git a/plugins/omo/scripts/auto-update.mjs b/plugins/omo/scripts/auto-update.mjsindex 77609c64..6ca8fdfc 100644--- a/plugins/omo/scripts/auto-update.mjs+++ b/plugins/omo/scripts/auto-update.mjs@@ -1,7 +1,7 @@#!/usr/bin/env nodeimport { spawn, spawnSync } from "node:child_process";-import { mkdir, open, readFile, rm, stat, writeFile } from "node:fs/promises";+import { appendFile, mkdir, open, readFile, rm, stat, writeFile } from "node:fs/promises";import { homedir } from "node:os";import { dirname, join } from "node:path";import { pathToFileURL } from "node:url";@@ -40,14 +40,19 @@ export async function runAutoUpdateCheck({ env = process.env, now = Date.now() }if (!plan.shouldRun) return { started: false, reason: plan.reason };const lock = await acquireLock(resolveLockPath(env, statePath), now, env);- if (lock === null) return { started: false, reason: "locked" };+ if (lock === null) {+ await appendUpdateLog(env, now, "locked");+ return { started: false, reason: "locked" };+ }try {await writeState(statePath, { lastCheckedAt: now });+ await appendUpdateLog(env, now, "started", { command: plan.command, args: plan.args });if (env.LAZYCODEX_AUTO_UPDATE_WAIT === "1") {const result = spawnSync(plan.command, plan.args, {env: plan.env,stdio: "ignore",});+ await appendUpdateLog(env, now, "finished", { status: result.status ?? 0 });return { started: true, status: result.status ?? 0 };}@@ -94,6 +99,12 @@ function resolveStatePath(env) {return join(dataRoot, "auto-update.json");}+function resolveLogPath(env) {+ if (env.LAZYCODEX_AUTO_UPDATE_LOG_PATH?.trim()) return env.LAZYCODEX_AUTO_UPDATE_LOG_PATH;+ const dataRoot = env.PLUGIN_DATA?.trim() || join(homedir(), ".local", "share", "lazycodex");+ return join(dataRoot, "auto-update.log");+}+function resolveLockPath(env, statePath) {if (env.LAZYCODEX_AUTO_UPDATE_LOCK_PATH?.trim()) return env.LAZYCODEX_AUTO_UPDATE_LOCK_PATH;return `${statePath}.lock`;@@ -145,6 +156,17 @@ async function writeState(statePath, state) {await writeFile(statePath, `${JSON.stringify(state, null, 2)}\n`);}+async function appendUpdateLog(env, now, event, details = {}) {+ const logPath = resolveLogPath(env);+ await mkdir(dirname(logPath), { recursive: true });+ const entry = {+ timestamp: new Date(now).toISOString(),+ event,+ ...details,+ };+ await appendFile(logPath, `${JSON.stringify(entry)}\n`);+}+function parsePositiveInteger(value, fallback) {if (value === undefined || value === "") return fallback;const parsed = Number.parseInt(value, 10);diff --git a/plugins/omo/test/auto-update.test.mjs b/plugins/omo/test/auto-update.test.mjsindex 7c613127..7f251fa2 100644--- a/plugins/omo/test/auto-update.test.mjs+++ b/plugins/omo/test/auto-update.test.mjs@@ -43,6 +43,7 @@ test("#given recent state #when resolving plan #then update is throttled", () =>test("#given test command override #when running check #then records state and launches command", async () => {const root = await mkdtemp(join(tmpdir(), "lazycodex-auto-update-"));const logPath = join(root, "spawn.log");+ const updateLogPath = join(root, "auto-update.log");const statePath = join(root, "state.json");const codexHome = join(root, "codex-home");@@ -51,6 +52,7 @@ test("#given test command override #when running check #then records state and lCODEX_HOME: codexHome,LAZYCODEX_MODEL_CATALOG_STATE_PATH: join(root, "model-state.json"),LAZYCODEX_AUTO_UPDATE_STATE_PATH: statePath,+ LAZYCODEX_AUTO_UPDATE_LOG_PATH: updateLogPath,LAZYCODEX_AUTO_UPDATE_INTERVAL_MS: "0",LAZYCODEX_AUTO_UPDATE_COMMAND: process.execPath,LAZYCODEX_AUTO_UPDATE_ARGS_JSON: JSON.stringify(["-e", `require("node:fs").writeFileSync(${JSON.stringify(logPath)}, "ok")`]),@@ -62,6 +64,20 @@ test("#given test command override #when running check #then records state and lassert.equal(result.started, true);assert.equal(JSON.parse(await readFile(statePath, "utf8")).lastCheckedAt, 123_456);assert.equal(await readFile(logPath, "utf8"), "ok");+ const updateLog = (await readFile(updateLogPath, "utf8")).trim().split("\n").map((line) => JSON.parse(line));+ assert.deepEqual(updateLog, [+ {+ timestamp: "1970-01-01T00:02:03.456Z",+ event: "started",+ command: process.execPath,+ args: ["-e", `require("node:fs").writeFileSync(${JSON.stringify(logPath)}, "ok")`],+ },+ {+ timestamp: "1970-01-01T00:02:03.456Z",+ event: "finished",+ status: 0,+ },+ ]);assert.match(await readFile(join(codexHome, "config.toml"), "utf8"), /model = "gpt-5\.5"/);});