Skip to content

enable/disable remote control at runtime, not via features#22578

Merged
owenlin0 merged 4 commits into
mainfrom
codex/remote-control-runtime-apis
May 14, 2026
Merged

enable/disable remote control at runtime, not via features#22578
owenlin0 merged 4 commits into
mainfrom
codex/remote-control-runtime-apis

Conversation

@owenlin0

@owenlin0 owenlin0 commented May 14, 2026

Copy link
Copy Markdown
Collaborator

Why

reapplies #22386 which was previously reverted

Also, introduce remoteControl/enable and remoteControl/disable app-server APIs to toggle on/off remote control at runtime for a given running app-server instance.

What Changed

  • Adds experimental v2 RPCs:
    • remoteControl/enable
    • remoteControl/disable
  • Adds RemoteControlRequestProcessor and routes the new RPCs through it instead of ConfigRequestProcessor.
  • Adds named RemoteControlHandle::enable, disable, and status methods.
  • Makes remoteControl/enable return an error when sqlite state DB is unavailable, while keeping enrollment/websocket failures as async status updates.
  • Adds AppServerRuntimeOptions.remote_control_enabled and hidden --remote-control flags for codex app-server and codex-app-server.
  • Updates managed daemon startup to use codex app-server --remote-control --listen unix://.
  • Marks Feature::RemoteControl as removed and ignores [features].remote_control.
  • Updates app-server README entries for the new remote-control methods.

@owenlin0 owenlin0 marked this pull request as ready for review May 14, 2026 00:39
@owenlin0 owenlin0 enabled auto-merge (squash) May 14, 2026 01:00
@owenlin0 owenlin0 merged commit 4e368aa into main May 14, 2026
31 checks passed
@owenlin0 owenlin0 deleted the codex/remote-control-runtime-apis branch May 14, 2026 01:07
@github-actions github-actions Bot locked and limited conversation to collaborators May 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants