agent-zero/extensions/python
frdel 904a0f4a25 Persist API chat lifetime and add cleanup job
Validate and persist API chat lifetime: lifetime_hours is validated as a positive number and stored in the AgentContext data, and context.last_message is set using UTC. Removed the in-class threading-based cleanup state and old _cleanup_expired_chats method. Introduced a new job-loop extension (extensions/python/job_loop/_20_cleanup_expired_api_chats.py) that periodically scans AgentContext instances and removes expired API chats (using persist_chat.remove_chat) in a UTC-aware manner. Added tests (tests/test_api_chat_lifetime.py) to verify lifetime persistence and that the job loop removes expired chats.
2026-05-11 08:49:06 +02:00
..
_functions refactor(chat_branching): ID-based log ↔ history linking for precise branch trimming 2026-03-24 03:04:09 -07:00
agent_init refactor(chat_branching): ID-based log ↔ history linking for precise branch trimming 2026-03-24 03:04:09 -07:00
banners Add unzip to Docker base packages, refactor API key handling, improve self-update system 2026-03-24 17:17:19 +01:00
before_main_llm_call refactor(chat_branching): ID-based log ↔ history linking for precise branch trimming 2026-03-24 03:04:09 -07:00
error_format BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
hist_add_before Refactor extensions to async/sync API 2026-03-06 11:32:08 +01:00
hist_add_tool_result Refactor extensions to async/sync API 2026-03-06 11:32:08 +01:00
job_loop Persist API chat lifetime and add cleanup job 2026-05-11 08:49:06 +02:00
message_loop_end BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
message_loop_prompts_after add a0-setup-cli Skill and restore lexical trigger matching 2026-04-11 18:03:05 +02:00
message_loop_prompts_before BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
message_loop_start BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
monologue_end BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
monologue_start refactor: remove browser model, use chat model for browser; update extension references 2026-03-14 20:06:43 -07:00
process_chain_end BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
reasoning_stream BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
reasoning_stream_chunk BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
reasoning_stream_end BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
response_stream refactor(chat_branching): ID-based log ↔ history linking for precise branch trimming 2026-03-24 03:04:09 -07:00
response_stream_chunk BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
response_stream_end BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
startup_migration refactor: migrate extension system to use deep directory paths based on module and qualname 2026-03-22 21:48:01 +01:00
system_prompt Normalize tool contracts and slim prompt surface 2026-05-09 21:54:43 +02:00
tool_execute_after BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
tool_execute_before BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
user_message_ui Refine settings and remote access UX 2026-04-27 02:48:23 +02:00
util_model_call_before BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
webui_ws_connect refactor: rename state_sync namespace to webui and simplify handler event registration 2026-03-20 15:34:59 +01:00
webui_ws_disconnect refactor: rename state_sync namespace to webui and simplify handler event registration 2026-03-20 15:34:59 +01:00
webui_ws_event refactor: rename state_sync namespace to webui and simplify handler event registration 2026-03-20 15:34:59 +01:00
.gitkeep BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00