v10.13.6: anti-loop resilience, auto 401 refresh, budget cap, MSIX support

This commit is contained in:
Roman | RyzenAdvanced
2026-05-27 15:43:15 +04:00
Unverified
parent 5e1f4c6ca1
commit bc28f4bc60
6 changed files with 70 additions and 22 deletions

View File

@@ -1,5 +1,32 @@
# Changelog
## v10.13.6 (2026-05-27)
**Anti-Loop Resilience, Auto Token Refresh, Budget Cap, MSIX Support**
### New Features
- **Cross-session loop tracker**: Keys by user request hash — detects loops even when client creates new sessions per retry. Resets counter on new tasks.
- **Tool-call budget**: 150 calls max per task, warning at 80. Injects directive to stop reading and write, instead of killing the session.
- **File-path read-loop detection**: Same file read 5+ times or 30+ total file reads triggers force-finalize
- **Auto 401 token refresh**: On 401 transient, force-refreshes Google OAuth token and retries once (both v2 + OA compat handlers)
- **Model-aware idle timeout**: Flash/mini/haiku models get 120s timeout instead of 300s
- **Smart compaction summary**: Directive text when read-loop detected in compacted history
- **`_send_ag_finalize()` helper**: Returns synthetic response for hard terminations
- **Default provider policy**: Unrecognized providers get balanced compaction (128K context, 60 items)
- **Anti-stall self-kill fix**: No longer kills own parent process or process group
- **Codex Desktop Updater**: Check/install/rollback/service management + manual rebuild from source
- **E2E test suite**: `bash test-antigravity.sh --task` for real CLI task testing
### Bug Fixes
- Fix `task_retry_count` counting every turn instead of same-task retries (spam bug)
- Fix tool-call budget killing session instead of injecting directive
- Fix `_schema` NameError in smart-continue nudge (cobra91 PR #17)
- Fix `_anti_stall_cleanup()` killing own parent/shell wrapper process
- Fix OA compat path loop tracker indentation
- Fix Codex CLI 0.134.0 profile system: separate `~/.codex/<slug>.config.toml` files
- Fix compaction causing model loops: `max_input_items: 60→200` for 1M-token models
- Merge cobra91 PR #17: MSIX Desktop launch, button state, `_schema` fix
## v3.13.5 (2026-05-27)
**Anti-Loop & Flash Model Resilience, Auto Token Refresh**

View File

@@ -138,10 +138,12 @@ A three-component system:
- **has_content function_call fix** (v3.11.6) — tool-call-only responses now correctly flagged as having content, preventing infinite loops on OpenAdapter/Z.AI/OpenRouter providers
- **Vision/OCR preprocessing** (v3.11.6) — when provider rejects images, automatically calls a configurable vision fallback API (Kilo.ai) to describe images as text for text-only models; MD5-cached; retries on vision errors with preprocessed text
- **Auth config-missing fix** (v3.11.6) — graceful handling when Codex config.toml is missing instead of showing raw os error
- **Codex Desktop Updater** (v3.13.0) — built-in updater window with Check/Install/Rollback buttons, service management, and manual rebuild from source (`ilysenko/codex-desktop-linux`)
- **Codex CLI 0.134.0 profile system** (v3.13.0) — profiles written to separate `~/.codex/<slug>.config.toml` files for compatibility with Codex CLI 0.134.0+
- **Conservative compaction for large models** (v3.13.0) — `max_input_items: 200` for Antigravity's 1M-token models; prevents model from "forgetting" earlier file reads
- **Antigravity E2E test suite** (v3.13.0) — `bash ~/.local/bin/test-antigravity.sh` validates token, REST endpoints, proxy adapter, model resolution
- **Codex Desktop Updater** (v10.13.6) — built-in updater window with Check/Install/Rollback buttons, service management, and manual rebuild from source (`ilysenko/codex-desktop-linux`)
- **Codex CLI 0.134.0 profile system** (v10.13.6) — profiles written to separate `~/.codex/<slug>.config.toml` files for compatibility with Codex CLI 0.134.0+
- **Anti-loop resilience** (v10.13.6) — cross-session loop tracker keyed by user request hash, tool-call budget (150 calls), file read-loop detection, auto 401 token refresh
- **Conservative compaction for large models** (v10.13.6) — `max_input_items: 200` for Antigravity's 1M-token models; prevents model from "forgetting" earlier file reads
- **Antigravity E2E test suite** (v10.13.6) — `bash test-antigravity.sh [--task]` validates token, REST endpoints, proxy adapter, model resolution; `--task` runs real CLI task with anomaly detection
- **MSIX Desktop support** (v10.13.6) — Windows Store install detection, `shell:AppsFolder` launch, tasklist-based process monitoring (cobra91 PR #17)
- Zero dependencies — pure Python stdlib
### Command Code Adapter

View File

@@ -27,12 +27,19 @@ model_catalog_json = ""
"""
CHANGELOG = [
("3.13.5", "2026-05-27", [
"Codex Desktop Updater: auto-update from ilysenko/codex-desktop-linux",
"Fix Antigravity: prod endpoint first, model resolution, OAUTH_PROVIDER derivation",
"Fix Codex CLI 0.134.0 profile system: separate .config.toml files",
"Fix compaction: max_input_items 60->200 for 1M-token Antigravity models",
"Antigravity E2E test suite: bash test-antigravity.sh",
("10.13.6", "2026-05-27", [
"Anti-loop: cross-session tracker, tool-call budget (150), file read-loop detection",
"Auto 401 token refresh with retry (v2 + OA compat)",
"Model-aware idle timeout: flash models 120s, pro 300s",
"Smart compaction: directive summary on read-loops",
"Default provider policy for unrecognized backends",
"Anti-stall fix: no longer kills own parent/process group",
"Codex Desktop Updater: check/install/rollback/manual rebuild",
"Fix Codex CLI 0.134.0 profiles: separate .config.toml files",
"Fix compaction: max_input_items 60->200 for 1M-token models",
"Auto 401 token refresh on transient auth errors",
"E2E test suite: bash test-antigravity.sh [--task]",
"Merge cobra91 PR #17: MSIX Desktop launch, button state",
]),
("3.12.1", "2026-05-27", [
"Fix Antigravity adapter (PR #15): simplified model resolution",

Binary file not shown.

View File

@@ -83,12 +83,18 @@ model_catalog_json = ""
"""
CHANGELOG = [
("3.13.5", "2026-05-27", [
"Codex Desktop Updater: auto-update from ilysenko/codex-desktop-linux",
"Fix Antigravity: prod endpoint first, model resolution, OAUTH_PROVIDER derivation",
"Fix Codex CLI 0.134.0 profile system: separate .config.toml files",
"Fix compaction: max_input_items 60->200 for 1M-token Antigravity models",
"Antigravity E2E test suite: bash test-antigravity.sh",
("10.13.6", "2026-05-27", [
"Anti-loop: cross-session tracker, tool-call budget (150), file read-loop detection",
"Auto 401 token refresh with retry",
"Model-aware idle timeout: flash 120s, pro 300s",
"Smart compaction: directive summary on read-loops",
"Default provider policy for unrecognized backends",
"Anti-stall fix: no longer kills own parent/process group",
"Codex Desktop Updater: check/install/rollback/manual rebuild",
"Fix Codex CLI 0.134.0 profiles: separate .config.toml files",
"Fix compaction: max_input_items 60->200 for 1M-token models",
"E2E test suite: bash test-antigravity.sh [--task]",
"Merge cobra91 PR #17: MSIX Desktop launch, button state",
]),
("3.12.1", "2026-05-27", [
"Fix Antigravity adapter (PR #15): simplify model resolution",

View File

@@ -83,12 +83,18 @@ model_catalog_json = ""
"""
CHANGELOG = [
("3.13.0", "2026-05-27", [
"Codex Desktop Updater: auto-update from ilysenko/codex-desktop-linux",
"Fix Antigravity: prod endpoint first, model resolution, OAUTH_PROVIDER derivation",
"Fix Codex CLI 0.134.0 profile system: separate .config.toml files",
"Fix compaction: max_input_items 60->200 for 1M-token Antigravity models",
"Antigravity E2E test suite: bash test-antigravity.sh",
("10.13.6", "2026-05-27", [
"Anti-loop: cross-session tracker, tool-call budget (150), file read-loop detection",
"Auto 401 token refresh with retry",
"Model-aware idle timeout: flash 120s, pro 300s",
"Smart compaction: directive summary on read-loops",
"Default provider policy for unrecognized backends",
"Anti-stall fix: no longer kills own parent/process group",
"Codex Desktop Updater: check/install/rollback/manual rebuild",
"Fix Codex CLI 0.134.0 profiles: separate .config.toml files",
"Fix compaction: max_input_items 60->200 for 1M-token models",
"E2E test suite: bash test-antigravity.sh [--task]",
"Merge cobra91 PR #17: MSIX Desktop launch, button state",
]),
("3.12.1", "2026-05-27", [
"Fix Antigravity adapter (PR #15): simplify model resolution",