Commit Graph
7 Commits
Author SHA1 Message Date
Alessandro a48dee035c Raise self-update health timeout to 600 seconds
Give updated and restored WebUI runtimes ten minutes to become healthy,
preserving A0_SELF_UPDATE_HEALTH_TIMEOUT_SECONDS overrides. Backup and
checkout still precede the health-check window.

Expose the configured timeout in update information and use 600 seconds
as the browser fallback, retaining its 30-second buffer. Upgrade older
durable managers through the existing migration with backup protection.

Validation: 55 focused tests passed in the Docker framework runtime.
Three frontend simulations passed for recovery after six minutes, a
900-second override, and expiry at the default 630-second browser limit.
2026-11-01 04:11:27 +01:00
Alessandro 2f7729de35 Fix self-update ZIP dates and reduce backup compression
Allow user-data backups to include files dated outside ZIP's supported
range without changing source file dates. Use deflate level 1 to reduce
backup time while preserving backup contents and existing exclusions.

Require both capabilities in the existing startup migration so installed
durable updaters receive the fixes. Cover old timestamps, archive contents,
and migration of older backup settings.

Validation: 53 focused tests passed in the Docker framework runtime.
On an identical 2.079 GB snapshot, compression level 1 reduced average
backup time from 39.5 to 32.9 seconds with 2.1% larger archives. All four
benchmark archives passed CRC and matching-content checks.
2026-11-01 04:10:39 +01:00
Alessandro b91384f4fb Upgrade LiteLLM and OpenAI with framework startup migration
Update LiteLLM to 1.104.0, OpenAI to 2.54.0, and python-dotenv to 1.2.2.
Raise shared security floors for aiohttp, anyio, urllib3, filelock, fsspec,
and multidict while retaining the compatible OpenAI 2.x SDK line.

Use the existing startup_migration hook to apply the same requirements to
v2.x Docker instances updating to v2.14. Read versions from requirements.txt,
install only when requirements are unmet, and reuse restart_process() to
load the upgraded SDKs before serving requests. Skip current and non-Docker
environments, bound installation time, and propagate installation failures.

Add installed-SDK HTTP tests for Chat Completions, Responses, streaming,
tools, state, usage, fallback, embeddings, and Anthropic cache markers.
Cover dependency migration, restart behavior, and installation failures.

Validation:
- 70 focused dependency, SDK, and self-update tests passed.
- Docker startup upgraded the v2.0-v2.13 SDK pins and became healthy in
  24 seconds, with exactly one dependency installation and process restart.
- An already-current startup performed no installation or extra restart.
- pip check passed; live Codex Responses and Moonshot Chat Completions
  tasks and follow-ups validated the upgraded SDK versions.
2026-10-07 14:50:32 +02:00
Alessandro d665408d9f Preserve rollback stash identity during self-update
Track rollback snapshots by Git object ID so an existing stash does not
make a successful snapshot look like a failure. Apply the saved object
and resolve its current reflog entry for cleanup, preserving unrelated
stashes and retaining snapshots when restoration fails.

Upgrade installed updater copies through the existing startup migration.
Cover staged, unstaged and untracked changes, changing stash stacks,
conflicts and stale runtimes. All 50 focused tests pass; the installed
framework-runtime check passes and the restarted WebUI returns HTTP 200.
2026-09-06 18:42:05 +02:00
Alessandro 1410bdcf6c Refresh Codex CLI during self-update
Refresh an existing Codex CLI after successful or already-current self-updates without making npm failures fatal. Bootstrap the new behavior when startup synchronizes a stale runtime updater, and cover both paths with focused regressions.
2026-07-10 16:53:04 +02:00
Alessandro f9031b7575 Sync stale self-update manager at startup
Add a core startup migration that refreshes /exe/self_update_manager.py from the repository copy when the installed runtime updater is missing the socket-safe backup and Desktop cleanup markers.

Validate the source updater before replacing anything, preserve the previous runtime script as a backup, and leave current or non-regular targets untouched. Add regression coverage for stale runtime replacement, safe no-op/refusal paths, and the real repository updater source.
2026-06-08 16:07:37 +02:00
frdel e138e33ca9 Add file-level DOX docs & update AGENTS indexes
Add comprehensive file-level DOX documentation across the repo and update directory AGENTS.md indexes. Many new `*.py.dox.md` files were added under api, helpers, tools, plugins, extensions, webui, and other dirs to document endpoint purpose, ownership, runtime contracts, work guidance, and verification. Several AGENTS.md files were created or updated (agents profiles, api, docker, extensions, helpers, plugins, skills, webui components, etc.) to list child DOX files and clarify documentation/work guidance. Also add example and bundled profile DOX files (agent0, default, developer, hacker, researcher) and minor updates to helpers/dirty_json.py and its tests. These changes improve on-disk documentation coverage and establish the convention that each direct runtime file should have a matching `*.dox.md` describing its contracts and verification steps.
2026-06-08 12:41:53 +02:00