# Changelog

## 0.14.0 - 2026-11-01

- Support Codex CLI 0.166.0 native thread binding (`CODEX_THREAD_ID` / `CODEX_INTERCOM_THREAD_ID`) with eager registration and burst-coalesced `codex queue --thread <id> --resume` wakeups using a fixed safe inbox notice.
- Align `intercom_ask` soft-wait timeouts with Pi: defer timed-out asks on the broker (`ok: true`, `pending: true`, `deferred: true`) instead of cancelling them, preserving late `intercom_reply` delivery; retain `cancelAsk` for explicit aborts.
- Align MCP tool `annotations` with Pi (`openWorldHint: false` across local IPC tools and `destructiveHint: false` on `intercom_set_summary`, `intercom_pending`, and `intercom_reply`) so Codex Guardian and parallel read-only execution do not treat local Intercom calls as open-world or destructive.
- Pause automatic reconnect on `SESSION_ID_IN_USE` and expose structured `registration_conflict` in `intercom_status`.

## 0.13.3 - 2026-10-12

- Keep plain MCP delegation turns waiting for completion reports with `intercom_pending({ mark_read: true, wait_ms: 60000 })`. Return on incoming messages, timeout, cancellation, or disconnect; connect the inbox reader even when no other intercom tool has been called. Clarify that automatic wake after a completed turn requires `coi`.

## 0.13.2 - 2026-10-11

- Require persistent MCP or `coi` return addresses for task delegation so later replies can reach the original sender. Document shell-only reply waiting and checking delivery evidence before resending tasks.
- Add a manual release trigger that validates the selected tag against its package version and `main`.

## 0.13.1 - 2026-10-04

- Add shortest-path MCP instructions and align the Codex skill: send directly to known recipients; discover peers, diagnose connections, publish summaries, and poll inboxes only when needed. Correct the skill's default MCP server name while preserving configured aliases, team approval, and reply threading.

## 0.13.0 - 2026-10-02

- Add additive task teams shared with Pi, Claude, and OpenCode; managers can add connected peers and task descriptions in one call without changing registration scopes.
- Expose exact pending ask/context selectors; ordinary-message replies and blocking-ask replies inherit the original task team, never a mutable current team.
- Preserve teams in app-server worker replies and tools; add one-time approval guidance and allow initial contact across unrelated memberships.

## 0.12.2 - 2026-09-30

- Synchronize native `thread/name/updated` notifications into Intercom presence without changing stable session IDs; retain the updated name on broker reconnect.
- Adopt persisted `thread.name` on resume instead of overriding it with launcher defaults.
- Verify rename notification schemas against Codex CLI 0.155.1 and 0.159.2; keep protocol v4 framing, durable queues, and delivery ACK semantics unchanged.

## 0.12.1 - 2026-09-06

- Stable release of named teams without tmux. `intercom_join` works outside TmuxDeck.

## 0.12.0-connect.8 - 2026-09-06

- Add `intercom_join` so Codex sessions can create or join a named team without tmux. Named teams share `~/.pi/agent/intercom/named-teams.json` with Pi, Claude, and OpenCode.

## 0.12.0-connect.7 - 2026-08-24

- Document Grok Build and AGY support in detail on the npm package page, including packages, tools, identity, shared scope, Auto-Team participation, and polling-only delivery.
- Add Grok Build and AGY to npm package description and search metadata.

## 0.12.0-connect.6 - 2026-08-24

- Synchronize companion install pins with the hosted-CI-validated Orchestrator release.

## 0.12.0-connect.5 - 2026-08-24

- Synchronize companion install pins with the final systemd-validated Orchestrator release.

## 0.12.0-connect.4 - 2026-08-24

- Synchronize Codex, Pi, and Orchestrator install pins with the final Grok/AGY documentation release.

## 0.12.0-connect.3 - 2026-08-24

- Add the npm-packaged Grok Build and AGY MCP adapters to the synchronized Agent Intercom family documentation.
- Refresh npm and companion Pi/Orchestrator install examples to current releases.

## 0.12.0-connect.2 - 2026-08-23

- Add complete OpenAI MCP tool annotations for all nine Intercom tools.
- Cover every MCP tool by name and verify the exact annotation semantics in tests.
- Explicitly disable shell execution for production child-process launches while keeping arguments separated.

## 0.11.0-connect.1 - 2026-08-14

- Support Protocol v4 broker-enforced scope isolation (`AGENT_INTERCOM_SCOPE_ID`) and canonical `ctliz` distribution.
- Pin Core dependency to canonical commit `aad1985e125516b318181560293145bf2507cc6d` (`v0.1.0-connect.1`).
- Reject competing live runtimes that claim an active stable session ID while preserving legitimate reconnects and pending deliveries.
- Add ID-free `oldest`/`latest` selection for multiple pending asks from one sender, hide protocol IDs from pending output, and refuse a second unresolved ask to the same recipient.
- Automatically reconnect persistent bridges and MCP runtimes with their stable Intercom identity after broker restarts.
- Clarify that assignments and progress/status checkpoints use `intercom_send`, reserving `intercom_ask` for blocking decisions.
- Keep `coi` alive when Codex app-server emits retryable `error` notifications, and honor orchestrator fresh starts by discarding persisted bridge thread state.

## 0.10.0 - 2026-07-16

- Add `intercom_team` to the MCP and app-server bridge surfaces so owned Codex coworkers can find their manager and live siblings without a global peer search.
- Forward orchestrator worker identity into Codex's MCP subprocess so team discovery resolves the owned worker instead of the helper session.

## 0.9.3 - 2026-07-15

- Coordinate the Agent Intercom family on the `0.9.3` release line.

## 0.9.2 - 2026-07-14

- Coordinate the Agent Intercom family on the `0.9.2` release line.
- Declare canonical GitHub repository metadata for npm provenance verification.

- Add CI for branches and pull requests.
- Add tag-driven npm trusted publishing with provenance and automatic GitHub Releases.

## 0.9.1 - 2026-07-14

- Publish the package under the public npm scope `@dataforxyz/agent-intercom-codex`.
- Keep the Git repository and executable names unchanged.

## 0.9.0 - 2026-07-14

- Align the Agent Intercom family on one coordinated `0.9.0` release line.
- No behavior change from the immediately preceding AGPL release.

## 0.3.0 - 2026-07-14

### Changed
- Changed the current project license to `AGPL-3.0-or-later`. Previously published MIT versions remain under MIT, and original `pi-intercom` notices are preserved in `THIRD_PARTY_NOTICES.md`.

### Added
- Added protocol v3 delivery acknowledgements, explicit ask-control
  confirmations, and a durable sender outbox that replays safely after broker
  reconnects.
- Added an `Alt+I` shortcut to `coi` that copies the current session's usable
  intercom contact target.
- Added terminal-protocol, OSC 52, editor insertion, and stable-ID fallbacks for
  the shortcut, plus an opt-out flag for environments that do not want PTY
  interception.

### Changed
- Upgraded the bundled broker and client to the strict `pi-intercom` protocol
  v3 and automatically replace an incompatible older local broker.
- Ask timeouts now defer the ask, preserving late replies without holding the
  reverse-ask edge blocked indefinitely. Explicit cancellation still closes it.
- Made `node-pty` optional and clipboard helper execution asynchronous.

## [0.1.0] - 2026-07-03

### Added
- Added Codex MCP stdio server for local intercom messaging.
- Added tools for identity, status, session listing, summary updates, send,
  ask, pending, and reply.
- Added Codex plugin metadata and a `codex-intercom` skill.
- Vendored the minimal pi-intercom broker/client protocol for compatibility.
- Added an app-server bridge daemon that publishes virtual Codex workers as
  intercom sessions and wakes app-server turns on inbound messages.
- Added bridge config/state helpers and a `npm run codex:bridge` script.

### Fixed
- Shut down the MCP server when stdio closes so completed Codex runs do not
  leave stale intercom sessions behind.
- Defaulted bridge app-server launch to direct `codex app-server` mode so it
  works without the standalone managed daemon install.

### Docs
- Documented Codex MCP environment-variable behavior and the recommended
  `intercom_set_summary` discovery flow for ad hoc multi-Codex runs.
- Documented bridge configuration, security defaults, and managed daemon proxy
  mode.
