mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-04-30 12:40:33 +00:00
fixing tasks/projects
This commit is contained in:
parent
e9b368df15
commit
f25543ead0
4 changed files with 12 additions and 13 deletions
|
|
@ -22,6 +22,7 @@ from python.helpers.print_style import PrintStyle
|
|||
from python.helpers.defer import DeferredTask
|
||||
from python.helpers.files import get_abs_path, make_dirs, read_file, write_file
|
||||
from python.helpers.localization import Localization
|
||||
from python.helpers import projects
|
||||
import pytz
|
||||
from typing import Annotated
|
||||
|
||||
|
|
@ -736,6 +737,10 @@ class TaskScheduler:
|
|||
# initial name before renaming is same as task name
|
||||
# context.name = task.name
|
||||
|
||||
# Activate project if set
|
||||
if task.project_name:
|
||||
projects.activate_project(context.id, task.project_name)
|
||||
|
||||
# Save the context
|
||||
save_tmp_chat(context)
|
||||
return context
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue