135 Commits
Author SHA1 Message Date
Martin 7b8a2271a3 Merge pull request #459 from octo-patch/fix/issue-382-prevent-server-crash-on-query-error
fix: return HTTP 500 instead of crashing server on query errors
2026-04-05 11:59:00 +02:00
Martin 4e985d8df6 Merge pull request #457 from octo-patch/fix/issue-367-make-plan-infinite-loop
fix: add max retry limit to PlannerAgent.make_plan to prevent infinite loop
2026-04-05 11:58:09 +02:00
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 d1ecb15703 fix: add max retry limit to PlannerAgent.make_plan to prevent infinite loop (fixes #367) 2026-04-03 10:51:23 +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 b96e83dbbe feat : latest docker attempt + fix attempt for #249 2025-05-29 21:33:48 +02:00
lck c8df9e759c fix: handle missing </think> tag in remove_reasoning_text 2025-05-28 02:26:41 +08: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 47fec1914a comment out in progress mcp agent to avoid confusion 2025-05-06 22:39:15 +02:00
martin legrand de2650c007 set limit_to_model_ctx to true 2025-05-05 18:36:37 +02:00
martin legrand 101c103aeb fix : reset of blocks 2025-05-05 15:37:13 +02:00
martin legrand e4591ea1b4 feat: improve compression/web agent memory management 2025-05-05 14:15:32 +02:00
martin legrand a7deffedec feat : improve memory system 2025-05-04 21:54:01 +02:00
martin legrand 5949540007 feat : tool description proprety 2025-05-04 19:29:31 +02:00
martin legrand 442bb4a340 Feat : MCP agent 2025-05-04 18:34:05 +02:00
martin legrand 52e5af8116 fix : tts not working with web interface 2025-05-03 19:22:01 +02:00
martin legrand 3cf1cab68f cmv 2025-05-01 22:16:55 +02:00
martin legrand c6688355a7 set code safety on by default 2025-05-01 22:10:54 +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 45700d77ab fix : was showing code after execution 2025-04-25 21:54:36 +02:00
martin legrand f09cb8a7b5 fix : block not display on front with planner 2025-04-25 21:35:31 +02:00
martin legrand 309a481a69 feat : enhance planner 2025-04-25 21:15:49 +02:00
martin legrand cfe19e637f feat : planner improvement, google provider 2025-04-25 20:13:25 +02:00
martin legrand 6049db1f24 fix : wrong value 2025-04-24 13:33:36 +02:00
martin legrand b479dd0b2f rm debug print 2025-04-24 13:24:56 +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 1b17b95e8c feat : slight fix attempt for frontend 2025-04-21 15:06:21 +02:00
martin legrand 0f09ef92dd refactor : message for status 2025-04-18 18:31:11 +02:00
martin legrand 5ac7df1854 fix : browser stuck due to history problem 2025-04-18 18:05:54 +02:00
martin legrand 7f3682e884 fix : message not displayed bug 2025-04-18 17:54:47 +02:00
martin legrand c9f6d76d30 fix : status display on frontend 2025-04-18 17:18:11 +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 e1d55649d5 fix : invalid usage of memory_clear_section 2025-04-15 20:41:23 +02:00
martin legrand a32cf60958 feat : small frontend improvement & planner auto fix 2025-04-15 16:31:53 +02:00
martin legrand 592c7e6915 refactor : pre-backend implementation 2025-04-14 16:55:15 +02:00
martin legrand 454e68033c Fix : prevent asking for clarification multiple time + readme update 2025-04-14 11:58:02 +02:00
martin legrand e0f0c5c7f6 feat : better web form handling 2025-04-13 17:23:00 +02:00
martin legrand 5b491ddbf7 feat: enhance browser agent note taking 2025-04-12 16:40:19 +02:00
martin legrand f4feb42dda refactor: self.role for router 2025-04-12 11:50:48 +02:00
martin legrand 06e6b2798b fix : lang error 2025-04-11 14:11:09 +02:00
martin legrand 9fe561085b feat : add java interpreter tool for code agent 2025-04-11 12:46:12 +02:00