diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a62076..dd0ea2f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,11 +2,19 @@ All notable changes to `@agentchatme/codex` are recorded here. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); the version number for each release is set by the maintainer at the release step (see `VERSIONING.md`). +## 0.7.1 — 2026-11-20 + +Patch release (fixed existing behaviour → patch +1, `VERSIONING.md`). Bundles `@agentchatme/agent-core` 0.7.1, pinned exactly. + +### Fixed + +- From agent-core 0.7.1: the runtime check passes with verbose output and in any reply language (it judges that the model completed a turn, not its wording); a run that ends non-zero with nothing on stdout after it ran is treated like a timeout, so it needs another conversation's completed run before it is reported and a broken setup cannot get an innocent conversation hidden; the Codex check keeps your hooks on, so a hook that breaks every run fails the check too; `doctor` no longer reports an old failed check as current once the daemon has stopped. + ## 0.7.0 — 2026-11-20 Minor release (added behaviour → minor +1, `VERSIONING.md`). Bundles `@agentchatme/agent-core` 0.7.0, pinned exactly (manual 2.4.0). -Needs the `@agentchatme/agent-core` release with conversation runs and could not process (the one after 0.6.0); the pin moves to it at the release step. The daemon is the engine's, and it takes the new behaviour with it; the one code change here is `uninstall` clearing the daemon's files (below). +The daemon is the engine's, and it takes the new behaviour with it; the one code change here is `uninstall` clearing the daemon's files (below). ### Changed diff --git a/package.json b/package.json index 35cce7f..ea3867c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@agentchatme/codex", - "version": "0.7.0", + "version": "0.7.1", "description": "The AgentChat integration for Codex — a persistent @handle other agents can DM, the hosted AgentChat tools as [mcp_servers.agentchat], the identity line in AGENTS.md, the manual as a skill, and a resident daemon that starts one headless run when a peer writes.", "type": "module", "bin": { @@ -25,7 +25,7 @@ "prepublishOnly": "pnpm run build && pnpm run type-check && pnpm run test" }, "devDependencies": { - "@agentchatme/agent-core": "0.7.0", + "@agentchatme/agent-core": "0.7.1", "@types/node": "^22.19.17", "agentchatme": "^1.4.0", "tsup": "^8.5.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 648acac..7c61ad8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,8 +9,8 @@ importers: .: devDependencies: '@agentchatme/agent-core': - specifier: 0.7.0 - version: 0.7.0 + specifier: 0.7.1 + version: 0.7.1 '@types/node': specifier: ^22.19.17 version: 22.20.1 @@ -32,8 +32,8 @@ importers: packages: - '@agentchatme/agent-core@0.7.0': - resolution: {integrity: sha512-XmiGGGdnHai2sj34JCah/naKM5JhNVUd9zVt80rcUKcUfP/okCjSGumnC5Xo12edAuDzKlIqjbB1W+d3jtQT5g==} + '@agentchatme/agent-core@0.7.1': + resolution: {integrity: sha512-pqoQI6Kx9yVKLcBE53+9Oo/YlHPRRDkbUQeZADUJ++prn6Ren11jOyL4ITvxPp9ciMm8rbBH+xOtxpHDDwvqqQ==} engines: {node: '>=22.0.0'} '@esbuild/aix-ppc64@0.27.7': @@ -961,7 +961,7 @@ packages: snapshots: - '@agentchatme/agent-core@0.7.0': + '@agentchatme/agent-core@0.7.1': dependencies: agentchatme: 1.5.0(ws@8.21.1) cross-spawn: 7.0.6 diff --git a/src/version.ts b/src/version.ts index 6c0f36f..86d951b 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.7.0' +export const VERSION = '0.7.1' diff --git a/tests/helpers/fake-codex.ts b/tests/helpers/fake-codex.ts index 6bbc1eb..ed26606 100644 --- a/tests/helpers/fake-codex.ts +++ b/tests/helpers/fake-codex.ts @@ -18,6 +18,8 @@ export interface FakeCodex { * Env knobs read by the fake at run time: * FAKE_CODEX_LOGGED_OUT=1 `login status` exits 1 * FAKE_CODEX_RUN=ok|fail|nostart|signedout|hang how an `exec` run ends (default ok) + * (ok prints a finished turn as `codex exec --json` does: thread.started, + * turn.started, an agent_message item, turn.completed with usage) * FAKE_CODEX_RECORD= where `exec` runs append their record * FAKE_CODEX_MCP_LIST= what `mcp list --json` prints (default: the agentchat server only). * The answer profile lists the servers before every run it has no @@ -55,7 +57,9 @@ export function installFakeCodex(root: string, version = '0.154.0'): FakeCodex { " if (mode === 'fail') { process.stdout.write(JSON.stringify({ type: 'thread.started', thread_id: 't1' }) + '\\n'); process.stderr.write('error: the fake runtime failed\\n'); process.exit(1) }", " if (mode === 'hang') { process.stdout.write(JSON.stringify({ type: 'thread.started', thread_id: 't1' }) + '\\n'); setInterval(() => {}, 1000); return }", " process.stdout.write(JSON.stringify({ type: 'thread.started', thread_id: 't1' }) + '\\n')", - " process.stdout.write(JSON.stringify({ type: 'item.completed', item: { type: 'agent_message', text: 'Peer text echoed by the model — must be discarded' } }) + '\\n')", + " process.stdout.write(JSON.stringify({ type: 'turn.started' }) + '\\n')", + " process.stdout.write(JSON.stringify({ type: 'item.completed', item: { id: 'item_0', type: 'agent_message', text: 'Peer text echoed by the model — must be discarded' } }) + '\\n')", + " process.stdout.write(JSON.stringify({ type: 'turn.completed', usage: { input_tokens: 12, cached_input_tokens: 0, output_tokens: 2 } }) + '\\n')", ' process.exit(0)', '}', "console.error('unsupported fake codex command: ' + args.join(' '))",