Commit graph

977 commits

Author SHA1 Message Date
Alessandro
745d4ebd31 fix scheduler flickering 2025-12-22 06:07:48 +01:00
Alessandro
43cc250d44 conform settings modal footer 2025-12-22 06:01:32 +01:00
Alessandro
4fecec0662 fix: scheduler polling unchanged task list 2025-12-22 05:41:39 +01:00
Alessandro
7bd3487d73 move a2a out of mcp dir (settings) 2025-12-22 05:31:06 +01:00
Alessandro
b823fcfb5d refactor settings and scheduler
- Simplified task detail opening logic by integrating it into the `settingsModalStore`
- Updated the visibility condition for the task detail view in `scheduler-task-detail.html` to rely solely on the selected task state

rm attributes from components

simplify task display logic

settings components init

scheduler componentize

- Removed the inline scheduler settings script from `index.html` and replaced it with a new component structure in `scheduler-settings.html`, `scheduler-task-editor.html`, `scheduler-task-list.html`, and `scheduler-task-detail.html`.
- Introduced a dedicated `scheduler-store.js` to manage state and logic for the scheduler, enhancing maintainability and separation of concerns.
- Updated the `index.js` to remove the now obsolete `openTaskDetail` function, integrating task detail handling within the new store.
- Removed the deprecated `scheduler.js` file, consolidating functionality into the new component architecture.

settings modal store rename

- Replaced all instances of `$store.settingsModalStore` with `$store.settingsStore` across various settings components.

scheduler tab content x-if
2025-12-22 05:05:36 +01:00
frdel
a390adaa3c Merge branch 'pr/840' into development 2025-12-15 14:44:46 +01:00
frdel
9c905cdbbd cleanup prints in A2A/MCP 2025-12-15 14:44:32 +01:00
deci
31daa48a2a #84 - adjusted A2A project passing via message.metadata 2025-12-12 12:22:41 -06:00
deci
2c87e17f18 #84 - APA passing the project via
message_id-based dictionary instead of FIFO queue
2025-12-12 11:19:58 -06:00
deci
3abcf19651 #84 - Fix MCP/A2A project activation 2025-12-11 10:07:55 -06:00
frdel
99e8c76f5f support uppercase A0_SET_* in .env 2025-12-11 12:50:50 +01:00
deci
d1be7f2531 #84 - Projects support in MCP, A2A, API 2025-12-10 16:05:53 -06:00
frdel
1bfac8fe26 Merge branch 'pr/838' into development 2025-12-10 16:33:39 +01:00
Jan Tomášek
df25133933
Update installation.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-10 10:31:30 +01:00
Jan Tomášek
0508eeb616
Update settings.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-10 10:30:03 +01:00
Jan Tomášek
860948cf98
Update settings.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-10 10:29:33 +01:00
Jan Tomášek
e52b0ecf43
Update settings.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-10 10:28:00 +01:00
Jan Tomášek
01096c1813
Update settings.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-10 10:27:44 +01:00
deci
2400dd5882 #81 - .env vars applied to settings 2025-12-09 16:47:16 -06:00
frdel
17ab551e88 Merge branch 'development' of https://github.com/agent0ai/agent-zero into development 2025-12-02 12:36:49 +01:00
frdel
a92b2627c8 parse LLM chunk fix, alpine store state save/load 2025-12-02 12:36:42 +01:00
Jan Tomášek
4121c04b54
Merge pull request #824 from pUrGe12/patch-csrf 2025-11-26 21:50:19 +01:00
pUrGe12
00168a41e7 moving from double quotes to single quotes because that is breaking the fstring 2025-11-26 16:14:04 +05:30
frdel
0b35de52b4 Merge branch 'pr/810' into development 2025-11-26 09:25:47 +01:00
frdel
3382ac402f Merge branch 'pr/813' into development 2025-11-26 09:07:49 +01:00
frdel
11d1cb0e64 subagents preparation 2025-11-26 09:07:30 +01:00
frdel
94cfa49d87 fix file name download issue 2025-11-20 13:25:30 +01:00
Rafael Uzarowski
51c8451696
Scheduler: use convenience methods for logging of special messages 2025-11-19 13:00:14 +01:00
Rafael Uzarowski
784fe5589a
Fix: proper task cancellation in scheduler, leakage in defer.py
*   **Mechanism**: `EventLoopThread.terminate()` now correctly stops the asyncio loop and joins the thread, removing it from the global registry.
*   **Cleanup**: `DeferredTask.kill(terminate_thread=True)` now invokes `_drain_event_loop_tasks()`, which runs **inside** the target thread to explicitly cancel and await all pending tasks (including monologue loops) before killing the thread. This prevents "Task was destroyed but it is pending" warnings and ensures clean exits.

*   **Tracking**: The scheduler now maintains a live registry (`_running_deferred_tasks`) of active `DeferredTask` objects, protected by a reentrant lock.
*   **State Management**: The `run_task` wrapper uses `asyncio.shield` to ensure that even when a task is cancelled (e.g., by user action), the task state is reliably reset to `IDLE` in the database, preventing tasks from getting stuck in `RUNNING` state.

The fix is correctly propagated to all relevant destruction points using `terminate_thread=True`:
*   **Dedicated Context**: `scheduler_task_delete.py` cancels the specific running task and terminates its thread.
*   **Shared/Dedicated Context**: Both `chat_remove.py` (Delete Chat) and `chat_reset.py` (Reset Chat) now call `scheduler.cancel_tasks_by_context(...)`. This ensures that if a scheduler task is running in a chat window (monologue), resetting that chat immediately kills the background thread and stops the agent loop.
2025-11-19 12:50:43 +01:00
frdel
9fe5573c35 Merge branch 'testing' 2025-11-19 12:38:02 +01:00
frdel
db8390c951 Merge branch 'development' into testing 2025-11-19 12:37:53 +01:00
frdel
7b98b7a429 Create update_checker.svg 2025-11-19 12:37:34 +01:00
frdel
e567f0e3d8 Merge branch 'testing' 2025-11-19 12:31:00 +01:00
frdel
2bbbba5e0f Merge branch 'development' into testing 2025-11-19 12:04:31 +01:00
frdel
4c4de7ebca v0.9.7 - readme, docs 2025-11-19 10:41:07 +01:00
linuztx
dbebd41145 agent: Retry on critical error 2025-11-18 18:49:57 +08:00
frdel
1443d99713 Update wait.py 2025-11-18 10:51:23 +01:00
frdel
f12b32ee28 support kwargs in prompt var plugins 2025-11-18 10:39:05 +01:00
frdel
ca4aa8887f Merge branch 'development' of https://github.com/agent0ai/agent-zero into development 2025-11-18 10:38:29 +01:00
frdel
8592c96a2d fix attachments alignment 2025-11-17 13:57:09 +01:00
Jan Tomášek
b74ab10869
Merge pull request #788 from linuztx/subordinate-agents-settings-override
Subordinate agents settings override
2025-11-17 13:46:29 +01:00
frdel
6bbfd2d92f Merge branch 'development' into testing 2025-11-17 12:07:39 +01:00
frdel
964faad006 log output lengths adjustment 2025-11-17 11:44:29 +01:00
frdel
269aafdc28 update checker 2025-11-17 11:32:15 +01:00
Jan Tomášek
3d61822153
Merge pull request #806 from linuztx/ssh-disable-osc
Disable systemd OSC metadata in SSH session
2025-11-14 16:15:40 +01:00
linuztx
201eff0b9e ssh: disable systemd OSC metadata 2025-11-14 22:43:07 +08:00
frdel
5df71e1353 Merge branch 'development' into testing 2025-11-13 20:12:18 +01:00
frdel
3e5e253324 Update backup.py 2025-11-13 20:11:56 +01:00
frdel
908b9a259c Update requirements.txt 2025-11-13 19:35:54 +01:00
frdel
c78f6ff10b Update requirements.txt 2025-11-13 19:19:27 +01:00