Skip to content

refactor(protocol): share the Codex client command list - #701

Merged
moreih29 merged 1 commit into
developfrom
refactor/codex-commands-protocol
Nov 19, 2026
Merged

moreih29 merged 1 commit into
developfrom
refactor/codex-commands-protocol

Conversation

@moreih29

Copy link
Copy Markdown
Owner

Summary

The mobile app keeps a hand-copied set of the Codex slash commands the client runs itself (apps/mobile/src/screens/chat/model/slash.ts), which can drift from the desktop's CODEX_COMMANDS. The list moves into @nexus-code/remote-protocol (new commands.ts: CodexClientCommand, CODEX_COMMANDS, CODEX_REMOTE_COMMANDS) so both read one table.

  • The desktop's codex/commands.ts imports and re-exports them; callers and check-agent-commands are unchanged.
  • No version bump: it ships with 0.14.0, which is not published yet. The mobile switches to the import in nexus-cloud after the publish.
  • Today the two lists match (25 commands and 3 aliases).

Tests

  • bun run typecheck, bun run check:ci, the protocol package build, related tests (281).

🤖 Generated with Claude Code

Export CODEX_COMMANDS and CODEX_REMOTE_COMMANDS from the protocol package so
the desktop and mobile apps share one list. The desktop re-exports them from
its codex commands module.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@moreih29
moreih29 merged commit 802e2b9 into develop Nov 19, 2026
7 checks passed
@moreih29
moreih29 deleted the refactor/codex-commands-protocol branch November 19, 2026 16:14
@moreih29 moreih29 mentioned this pull request Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant