Commit graph

46 commits

Author SHA1 Message Date
Douglas
3ccd00f56c inital commit to redesign chatbox session rendering structure and design custom ui for user input 2026-05-24 20:45:22 +01:00
Douglas
5f343c2045 feat: add frontend render-session layer with inline HITL QuestionBlock
Introduces a frontend-owned render-session layer under
`src/components/ChatBox/renderSession/` that normalizes raw messages
into typed `ChatBlock` / `ChatTurn` structures. The agent no longer
needs to emit runtime UI schemas — the frontend classifies blocks from
existing message steps and task state.

Key changes:
- Add `renderSession/types.ts`: `ChatBlock` discriminated union
  (markdown, user_message, question, completion, plan, work_log …)
- Add `renderSession/normalizeMessages.ts`: converts `Message[]` +
  task state into `ChatTurn[]` with input-type detection for HITL
- Add `renderSession/RenderSessionProvider.tsx`: context that supplies
  `chatTurns`, `activeAsk`, `taskId`, and a `submitReply` action
- Add `renderSession/ChatTurnView.tsx` and `MessageBlockRenderer.tsx`
  as routing shells for individual blocks
- Add `MessageItem/blocks/QuestionBlock.tsx`: renders `AgentStep.ASK`
  inline with text, choice, or context controls; owns a 30-second
  visible countdown that auto-submits "skip" when it expires
- Update `UserQueryGroup` to render ASK messages as `QuestionBlock`
  instead of plain `AgentMessageCard`
- Wrap `ProjectSection` content with `RenderSessionProvider`
- Remove the global 30-second auto-skip timer from `ChatBox/index.tsx`
  (it now lives in `QuestionBlock` where the countdown is visible)

Tests (39 passing):
- Unit: normalizer covers simple turns, ASK active/inactive, files,
  orphan messages, multi-turn, detectInputType, extractChoices
- Component: QuestionBlock text/choice submit, disabled-when-inactive,
  skipped state after fake-timer advancement

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-24 12:24:12 +01:00
Tong Chen
6312c44c9b
feat: add CAMEL-based single agent mode (#1641)
Co-authored-by: Douglas Lai <115660088+Douglasymlai@users.noreply.github.com>
2026-05-22 13:30:37 +08:00
4pmtong
17808242d8 Merge branch 'main' into test
# Conflicts:
#	.github/workflows/build.yml
#	backend/app/agent/agent_model.py
#	backend/app/agent/factory/browser.py
#	backend/app/agent/factory/developer.py
#	backend/app/agent/factory/document.py
#	backend/app/agent/factory/mcp.py
#	backend/app/model/chat.py
#	backend/app/router.py
#	backend/app/service/chat_service.py
#	src/components/ChatBox/BottomBox/index.tsx
#	src/components/ChatBox/index.tsx
#	src/pages/Agents/Models.tsx
#	src/pages/Agents/index.tsx
#	src/store/chatStore.ts
2026-05-20 19:11:44 +08:00
Tong Chen
a5355f4719
feat: add configurable remote sub agents (#1643)
Some checks failed
Pre-commit / pre-commit (push) Has been cancelled
Test / Run Python Tests (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
CodeQL Advanced / Analyze (javascript-typescript) (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
Co-authored-by: Sun Tao <2605127667@qq.com>
2026-05-20 01:41:57 +08:00
Douglas Lai
6b8554e7ec
fix: work-log timeline, execution context, and task box focus (#1612)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-05 10:44:55 +01:00
Tong Chen
6c827a3d06
refactor: establish Brain-centered architecture and frontend/backend separation foundations (#1597)
Co-authored-by: Douglas <douglas.ym.lai@gmail.com>
Co-authored-by: Douglas Lai <115660088+Douglasymlai@users.noreply.github.com>
2026-05-01 17:03:33 +08:00
Octopus
8b10717c8a
feat: add MiniMax M2.7 model support (#1568)
Some checks failed
Test / Run Python Tests (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
CodeQL Advanced / Analyze (javascript-typescript) (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
Pre-commit / pre-commit (push) Has been cancelled
Co-authored-by: octo-patch <octo-patch@github.com>
2026-04-28 20:01:22 +08:00
Tao Sun
d1c118d04e
feat: update cloud model options (#1585)
Some checks are pending
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
CodeQL Advanced / Analyze (python) (push) Waiting to run
Pre-commit / pre-commit (push) Waiting to run
Test / Run Python Tests (push) Waiting to run
2026-04-28 14:36:14 +08:00
Tong Chen
c6ba7e0cd7
feat(updater): switch app auto-update feed from GitHub Releases to CDN (#1543)
Some checks are pending
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
CodeQL Advanced / Analyze (python) (push) Waiting to run
Pre-commit / pre-commit (push) Waiting to run
Test / Run Python Tests (push) Waiting to run
2026-04-13 15:27:25 +08:00
Tao Sun
7ced44df71
Add camel log upload and organize files by source type (#1548)
Some checks are pending
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
CodeQL Advanced / Analyze (python) (push) Waiting to run
Pre-commit / pre-commit (push) Waiting to run
Test / Run Python Tests (push) Waiting to run
Co-authored-by: 4pmtong <web_chentong@163.com>
2026-04-12 17:16:35 +08:00
Tong Chen
86ec0ba6a7
add camel_log and attachments (#1546)
Some checks failed
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
CodeQL Advanced / Analyze (javascript-typescript) (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
Pre-commit / pre-commit (push) Has been cancelled
Test / Run Python Tests (push) Has been cancelled
2026-04-10 15:42:55 +08:00
Tong Chen
1e542f9d27
Revert "Electron style - MacOs (#1110)" (#1512)
Some checks are pending
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
CodeQL Advanced / Analyze (python) (push) Waiting to run
Pre-commit / pre-commit (push) Waiting to run
Test / Run Python Tests (push) Waiting to run
Co-authored-by: Douglas <douglas.ym.lai@gmail.com>
2026-03-24 00:11:51 +08:00
Dream
2e44ae0f0a
refactor: move privacy consent from ChatBox to Login/SignUp (#1239)
Co-authored-by: a7m-1st <Ahmed.jimi.awelkeir500@gmail.com>
Co-authored-by: Wendong-Fan <133094783+Wendong-Fan@users.noreply.github.com>
2026-03-07 18:55:48 +08:00
Ahmed Awelkair A
4fb2e5db9a
feat: schedule and webhook triggers (#823)
Co-authored-by: Douglas <douglas.ym.lai@gmail.com>
Co-authored-by: a7m-1st <ahmed.jimi.awelkair500@gmail.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Tong Chen <web_chentong@163.com>
2026-03-02 20:38:02 +08:00
Douglas Lai
38c7717f3d
Update Dahsboard UI (#1349)
Co-authored-by: Wendong-Fan <w3ndong.fan@gmail.com>
Co-authored-by: Wendong-Fan <133094783+Wendong-Fan@users.noreply.github.com>
2026-02-24 02:12:27 +08:00
Wendong-Fan
ddada3e642
Revert "feat: add model type autocomplete with api based suggestions and plat…" (#1352) 2026-02-24 02:02:46 +08:00
JwCwn
02fd53f796
refactor: standardize workspace casing (#1337)
Some checks are pending
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
CodeQL Advanced / Analyze (python) (push) Waiting to run
Pre-commit / pre-commit (push) Waiting to run
Test / Run Python Tests (push) Waiting to run
Co-authored-by: bytecii
2026-02-22 03:05:15 -08:00
intelliking
a0b2d5d751
feat: add model type autocomplete with api based suggestions and plat… (#1204)
Co-authored-by: bytecii <bytecii@users.noreply.github.com>
2026-02-22 03:01:38 -08:00
Muhammet Eren Karakuş
413df36cd8
fix: patch 5 security vulnerabilities across electron, server, and proxy layers (#1292)
Co-authored-by: bytecii <994513625@qq.com>
2026-02-21 16:39:26 -08:00
NeedmeFordev
79743724d3
fix: load final state on project entry; replay only on Replay button (Issue #1227) (#1234)
Some checks are pending
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
CodeQL Advanced / Analyze (python) (push) Waiting to run
Pre-commit / pre-commit (push) Waiting to run
Test / Run Python Tests (push) Waiting to run
Co-authored-by: bytecii <994513625@qq.com>
2026-02-17 16:19:38 -08:00
NeedmeFordev
426d333f8c
fix: defer inline scripts in HTML preview so Chart.js and CDN scripts load before chart code runs (#1228) (#1247)
Some checks failed
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
CodeQL Advanced / Analyze (javascript-typescript) (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
Pre-commit / pre-commit (push) Has been cancelled
Test / Run Python Tests (push) Has been cancelled
Co-authored-by: Wendong-Fan <w3ndong.fan@gmail.com>
2026-02-15 17:13:53 +08:00
NeedmeFordev
d5a6c3937d
fix: Mac trackpad horizontal scroll incorrectly triggers zoom in Agent Canvas (#1211) (#1220)
Some checks are pending
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
CodeQL Advanced / Analyze (python) (push) Waiting to run
Pre-commit / pre-commit (push) Waiting to run
Test / Run Python Tests (push) Waiting to run
2026-02-12 14:53:04 -08:00
NeedmeFordev
993392fa9b
fix(Folder): align file list entries and unify spacing in file explorer (#1224)
Some checks are pending
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
CodeQL Advanced / Analyze (python) (push) Waiting to run
Pre-commit / pre-commit (push) Waiting to run
Test / Run Python Tests (push) Waiting to run
2026-02-11 19:39:00 -08:00
NeedmeFordev
05c0bdb927
Fix Duplicate task execution after network reconnection (#1214) 2026-02-11 19:33:32 -08:00
Dream
9a5b183654
fix: persist subtask edits to backend on add/update/delete (#930) (#1164)
Co-authored-by: Wendong-Fan <w3ndong.fan@gmail.com>
2026-02-07 06:19:12 +08:00
Wendong-Fan
3291fdf0eb
Revert "add authentication (login/signup) and improve search history management" (#1120)
Some checks are pending
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
CodeQL Advanced / Analyze (python) (push) Waiting to run
Pre-commit / pre-commit (push) Waiting to run
2026-02-02 01:23:35 +08:00
Wendong-Fan
bd2f2a1c9e Merge branch 'pr-1021' into pr-1021-merge 2026-02-02 01:21:02 +08:00
Tong Chen
af93bb3065
feat: Add Lint & Format (#878)
Co-authored-by: a7m-1st <Ahmed.jimi.awelkeir500@gmail.com>
Co-authored-by: eigent-ai <camel@eigent.ai>
Co-authored-by: Wendong-Fan <133094783+Wendong-Fan@users.noreply.github.com>
Co-authored-by: Wendong-Fan <w3ndong.fan@gmail.com>
2026-02-01 23:16:18 +08:00
Zahid Ullah Khan
91c98f65e1
Merge branch 'main' into main 2026-01-26 10:08:44 +05:00
Ahmed Awelkair A
33829f2c1e
feat: copyright header pre-commit (#1053)
Co-authored-by: 4pmtong <web_chentong@163.com>
Co-authored-by: Wendong-Fan <133094783+Wendong-Fan@users.noreply.github.com>
Co-authored-by: Wendong-Fan <w3ndong.fan@gmail.com>
2026-01-24 08:22:20 +08:00
Zahid Ullah Khan
35d50f230b Removed the .vscode/.debug.script.mjs file.
Replaced the standard button with the project's internal Button component in SearchHistoryDialog.tsx.

Updated the Login.tsx logic to check if(data) rather than explicit type casting.

Added a test case for the "Account or password error" (code 10) in stackAuthApi.test.ts.
2026-01-23 11:02:06 +05:00
Zahid Ullah Khan
ca26a7da87 feat: implement login and signup functionality with auto-create option in stackAuthApi 2026-01-21 16:41:02 +05:00
Zahid Ullah Khan
21299788c3 feat: implement delete functionality in SearchHistoryDialog and add corresponding tests 2026-01-21 15:34:04 +05:00
Wendong-Fan
8ff8c86784 update usecase
Some checks are pending
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
CodeQL Advanced / Analyze (python) (push) Waiting to run
2026-01-15 02:19:33 +08:00
Wendong-Fan
746064aebe chore: update test file 2025-11-08 15:46:21 +08:00
a7m-1st
08628f2e12 Merge branch 'main' into test-multiturn-logic 2025-11-07 13:25:48 +03:00
Wendong-Fan
7600f7567f Merge remote-tracking branch 'origin/main' into feat-multi-turn-#419 2025-10-21 00:48:06 +08:00
a7m-1st
ef4d424d9c feat: update agent folder structure to be per project & api endpoints to use projectId 2025-10-20 18:10:00 +03:00
a7m-1st
b111163654 feat: initial test of case 1 2025-10-16 19:27:14 +03:00
Wendong-Fan
76fd05618a enhance: fully integrate Traceroot, enhace log system PR485 2025-10-16 04:26:11 +08:00
Wendong-Fan
14c968ad45 enhance: update test 2025-10-06 13:27:24 +08:00
a7m-1st
c6602459e7 feat: unit test install logic main process 2025-10-03 03:52:56 +03:00
a7m-1st
a5c9974c41 feat(test): Setting/utils.ts 2025-09-15 15:50:06 +03:00
Wendong-Fan
7e72e6b115 enhance: add comprehensive unit tests PR223 2025-09-06 06:17:32 +08:00
a7m-1st
90864539e8 feat: add frontend unit tests with vitest (214 cases) 2025-08-25 04:45:35 +03:00