Commit Graph
47 Commits
Author SHA1 Message Date
Octopus 872d01f8e5 fix: return HTTP 500 instead of calling sys.exit(1) on query errors
Previously, any unhandled exception during query processing caused the
entire backend server to exit via sys.exit(1), making the frontend show
'System offline. Deploy backend first.' until the container was restarted.
Also, is_generating was never reset to False on exception, permanently
blocking all subsequent queries with 429 responses.

- Replace sys.exit(1) with a proper HTTP 500 error response
- Move is_generating = False to the finally block so it always resets

Fixes #382
2026-04-04 11:23:41 +08:00
Octopus 7cde1549b2 fix: initialize answer variable and reset stop flag in PlannerAgent.process (fixes #359) 2026-04-02 16:52:06 +08:00
Br1an67 f350378170 fix: handle JSON parsing errors in planner agent
Add try-except for json.JSONDecodeError in parse_agent_tasks() to
gracefully handle malformed JSON from LLM responses (e.g. Gemini 2.5
Flash via OpenRouter). Returns empty list on parse failure, which
triggers the existing retry mechanism in make_plan().

Add test suite for parse_agent_tasks() covering valid JSON, malformed
JSON, truncated JSON, and invalid agent name cases.
2026-03-02 00:03:36 +08:00
sukrucildirr c74fb8a005 Update planner_agent.py 2025-06-07 23:47:22 +03:00
martin legrand e3d01083d9 feat : stop button integration 2025-05-20 16:47:35 +02:00
martin legrand 102dc60efb feat : integrate reasoning view 2025-05-17 22:04:07 +02:00
martin legrand a7deffedec feat : improve memory system 2025-05-04 21:54:01 +02:00
martin legrand 68ed1834a9 fix : errors related to API based LLMs 2025-05-01 18:17:03 +02:00
martin legrand da7dde23d4 feat : display planner next task on front 2025-04-28 10:24:30 +02:00
martin legrand 5517f53f8a fix : go interpreter error, hf provider import + feat : more logger 2025-04-27 20:37:23 +02:00
martin legrand f09cb8a7b5 fix : block not display on front with planner 2025-04-25 21:35:31 +02:00
martin legrand cfe19e637f feat : planner improvement, google provider 2025-04-25 20:13:25 +02:00
martin legrand 8b199869c7 fix : planner agent bug 2025-04-24 13:23:17 +02:00
martin legrand 82aecd0aae fix : blocks not appearing on front for planner agent 2025-04-24 12:22:52 +02:00
martin legrand 9c9824c05e update readme 2025-04-24 10:35:39 +02:00
martin legrand 564a09c96d feat : planner adapt to task failure + temporary remove frontend task panel 2025-04-23 15:51:47 +02:00
martin legrand c030b55521 fix : web front bugs 2025-04-18 16:29:59 +02:00
martin legrand 83c595144b feat : frontend message streaming 2025-04-18 15:42:53 +02:00
martin legrand a32cf60958 feat : small frontend improvement & planner auto fix 2025-04-15 16:31:53 +02:00
martin legrand e0f0c5c7f6 feat : better web form handling 2025-04-13 17:23:00 +02:00
martin legrand f4feb42dda refactor: self.role for router 2025-04-12 11:50:48 +02:00
martin legrand 92f9b93353 fix : language_bash_attempt error 2025-04-11 12:44:55 +02:00
martin legrand 21bf224fef fix: browser bug 2025-04-07 14:55:41 +02:00
martin legrand a1e71fd0ce feat : improve planner agent handling of multifiles project 2025-04-07 12:02:01 +02:00
martin legrand 3550c4a448 fix: undeclared variable used in return 2025-04-06 20:02:21 +02:00
martin legrand 26e9dbcd40 feat : slight improvement for planner & web agent 2025-04-06 14:50:19 +02:00
martin legrand 6fb9ce67c0 feat : better web navigation of web agent 2025-04-05 22:13:29 +02:00
martin legrand 8991aaae8d feat : planner agent improvement 2025-04-05 16:39:16 +02:00
martin legrand 97708c7947 feat : server response cache 2025-04-05 16:36:58 +02:00
martin legrand 95f43be2af fix : avoid loading compress of planner agent memory 2025-04-04 11:57:06 +02:00
martin legrand 56b5db7df3 Initial project setup 2025-04-01 18:49:37 +02:00
martin legrand b34e343535 fix : possible crash with planner agent if wrong format returned by llm 2025-03-30 17:38:22 +02:00
martin legrand 0bf813e865 fix : execution problem when line start with block tag + dont load tts if disabled 2025-03-28 18:51:03 +01:00
martin legrand c862d496e3 feat : fix displaying problem + memory compression on loading + personality prompt + technical image 2025-03-28 14:43:05 +01:00
martin legrand cce74b29ad fix : planner agent crash 2025-03-27 12:19:54 +01:00
martin legrand 1027a2a77b fix : planner not passing info properly between agents 2025-03-26 20:51:31 +01:00
martin legrand 8c425f62b6 fix : browser duplication, isolate driver creation 2025-03-26 14:17:52 +01:00
martin legrand 9080697dc0 feat : re-integrated and improved planner agent 2025-03-26 13:21:10 +01:00
martin legrand af168d2c57 feat : zero shot router for other lang 2025-03-24 20:22:30 +01:00
martin legrand 323783b89e Feat : improve prompt, add agent verbose option 2025-03-24 14:41:24 +01:00
martin legrand fa7d586a97 Feat : browser login form detecting and fill, fix: memory saving problems 2025-03-23 11:11:38 +01:00
martin legrand 762293536f Doc: readme; Feat : language utility class, small fix 2025-03-20 15:24:31 +01:00
martin legrand 372da19f30 Fix : searxng now failing gracefully 2025-03-18 12:17:41 +01:00
martin legrand 479bc2769b Fix : web search 2025-03-11 12:27:19 +01:00
martin legrand aece8de10b Feat : planning agent task parsing and agents assignation 2025-03-10 13:42:07 +01:00
martin legrand e6e48f7f3f Feat : planning agent tasks parsing 2025-03-09 14:23:54 +01:00
martin legrand 0dbcf29701 Planner agent structure 2025-03-09 13:50:06 +01:00