mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-28 10:26:33 +02:00
feat: Apply minor UI styling adjustments to sidebar and progress components. Fixed linting for both frontend and backend
This commit is contained in:
parent
c28a90fc29
commit
70383931bb
4 changed files with 17 additions and 13 deletions
|
|
@ -72,10 +72,10 @@ def format_mentioned_documents_as_context(documents: list[Document]) -> str:
|
|||
def extract_todos_from_deepagents(command_output) -> dict:
|
||||
"""
|
||||
Extract todos from deepagents' TodoListMiddleware Command output.
|
||||
|
||||
|
||||
deepagents returns a Command object with:
|
||||
- Command.update['todos'] = [{'content': '...', 'status': '...'}]
|
||||
|
||||
|
||||
Returns the todos directly (no transformation needed - UI matches deepagents format).
|
||||
"""
|
||||
todos_data = []
|
||||
|
|
@ -89,7 +89,7 @@ def extract_todos_from_deepagents(command_output) -> dict:
|
|||
todos_data = command_output.get("todos", [])
|
||||
elif "update" in command_output and isinstance(command_output["update"], dict):
|
||||
todos_data = command_output["update"].get("todos", [])
|
||||
|
||||
|
||||
return {"todos": todos_data}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue