Idle sessions give their memory back: after XCODER_IDLE_RELEASE_SECONDS
(default 120, 0 disables) a watcher written in Ziran (native/idle.zi)
trims the allocator, pages private memory out to swap and unmaps clean
program pages. Measured with 600 tool calls: 415 MB resident drops to
23 MB, and the next keypress takes 79 ms. The TUI's replay copy of a
finished command keeps only the first and last parts of output above
16 KiB. make benchmark-memory and the scripts/memory allocation tracer
measure this.
Remove what Xcoder never uses under Harmony: the cloud, tcp-tunnel,
responses-api-proxy, exec-server and debug app-server subcommands with
their crates, the Ollama and LM Studio providers with the TUI's
local-provider picker, and the AWS SDK behind Bedrock sign-in. --oss
now stops at startup with an explanation.
Model requests identify as the tracked upstream release (0.169.0) in
their User-Agent and version header, as catalog requests already did.
A fresh ChatGPT-account session refused gpt-6.1-sol while requests
still said 0.0.0. The rule lives in codex_protocol::client_version.
Also carried over from the shared working tree: native Ziran fuzzy
matching and Mermaid adapters, Linux packaging and its workflow, and
Landlock/seccomp cell sandboxing in place of bwrap.
Co-Authored-By: Claude Opus 5.5 <[email protected]>