aKode fase 2a: rimossi cloud tasks, chatgpt apply, responses-api-proxy, codex app, remote control, guardian decisions; realtime senza fallback OpenAI; doctor senza sonde OpenAI

This commit is contained in:
Andrea
2026-11-09 13:15:08 +01:00
parent 39a103d16f
commit 137106bf17
172 changed files with 485 additions and 42398 deletions

View File

@@ -33,11 +33,9 @@ initialize the connection, the TUI starts an embedded server instead. Explicit
codex app-server daemon start
codex app-server daemon restart
codex app-server daemon update
codex app-server daemon enable-remote-control
codex app-server daemon disable-remote-control
codex app-server daemon stop
codex app-server daemon version
codex app-server daemon bootstrap --remote-control
codex app-server daemon bootstrap
```
On success, every command writes exactly one JSON object to stdout. Consumers
@@ -81,7 +79,7 @@ For a new Linux or macOS machine:
```sh
curl -fsSL https://chatgpt.com/codex/install.sh | sh
$HOME/.codex/packages/standalone/current/codex app-server daemon bootstrap --remote-control
$HOME/.codex/packages/standalone/current/codex app-server daemon bootstrap
```
On Windows, use a non-elevated PowerShell terminal whose host allows breakaway:
@@ -89,7 +87,7 @@ On Windows, use a non-elevated PowerShell terminal whose host allows breakaway:
```powershell
irm https://chatgpt.com/codex/install.ps1 | iex
$codexHome = if ($env:CODEX_HOME) { $env:CODEX_HOME } else { Join-Path $HOME '.codex' }
& "$codexHome\packages\standalone\current\bin\codex.exe" app-server daemon bootstrap --remote-control
& "$codexHome\packages\standalone\current\bin\codex.exe" app-server daemon bootstrap
```
`bootstrap` can use any complete CLI package. If no daemon package is installed,
@@ -165,25 +163,16 @@ JSON-RPC initialize handshake on the Unix control socket.
`restart` stops any managed daemon and starts it again.
`enable-remote-control` and `disable-remote-control` persist the launch setting
for future starts. If a managed app-server is already running, they restart it
so the new setting takes effect immediately.
Top-level `codex remote-control start` enables and persists remote control for
the managed daemon, overriding a saved disabled value. It starts or bootstraps
the daemon as needed. Plain `codex remote-control` uses the managed daemon when
eligible; `codex remote-control --no-daemon` runs a separate foreground server.
`codex remote-control stop` stops the managed daemon without clearing its saved
remote-control preference.
`daemon start` and `daemon restart` use that saved preference. `daemon bootstrap`
sets it according to `--remote-control` (disabled when omitted).
Remote control (the ChatGPT relay) was removed in aKode: the managed app-server
is always launched without it, and the `codex remote-control` command and the
`enable-remote-control` / `disable-remote-control` daemon subcommands no longer
exist.
`stop` sends a graceful termination request first, then force-terminates the
process after the configured grace window if it is still alive.
All mutating lifecycle commands are serialized per `CODEX_HOME`, so a concurrent
`start`, `restart`, `enable-remote-control`, `disable-remote-control`, `stop`,
or `bootstrap` does not race another in-flight lifecycle operation.
`start`, `restart`, `stop`, or `bootstrap` does not race another in-flight lifecycle operation.
## State

View File

@@ -392,17 +392,10 @@ impl PidBackend {
#[cfg(any(unix, windows))]
fn command_args(&self) -> Vec<Cow<'_, str>> {
let mut args = match &self.command_kind {
PidCommandKind::AppServer {
remote_control_enabled: true,
} => vec![
"app-server".into(),
"--remote-control".into(),
"--listen".into(),
"unix://".into(),
],
PidCommandKind::AppServer {
remote_control_enabled: false,
} => vec!["app-server".into(), "--listen".into(), "unix://".into()],
// aKode: remote control was removed, so the app server never gets `--remote-control`.
PidCommandKind::AppServer { .. } => {
vec!["app-server".into(), "--listen".into(), "unix://".into()]
}
PidCommandKind::UpdateLoop { restore_release } => {
let mut args = vec![
"app-server".into(),

View File

@@ -712,7 +712,7 @@ fn update_loop_uses_hidden_app_server_subcommand() {
}
#[test]
fn app_server_remote_control_uses_runtime_flag() {
fn app_server_remote_control_setting_never_passes_runtime_flag() {
let backend = PidBackend::new(
"codex".into(),
"app-server.pid".into(),
@@ -723,7 +723,6 @@ fn app_server_remote_control_uses_runtime_flag() {
backend.command_args(),
vec![
"app-server",
"--remote-control",
"--listen",
"unix://",
"--analytics-default-enabled"