Commit Graph

39 Commits

Author SHA1 Message Date
Sycun 41aea97735 fix(assets,assessments): sync classic chat precipitated assets into project scope 2026-11-30 22:01:38 +08:00
Sycun 524ee29a84 perf(all): propagate GET abort signals globally and eliminate full conversation loads
- Propagate useResource AbortSignal automatically via runWithAbortSignal in http.js so all 60+ useResource loaders across all pages (including Dashboard's 18 parallel requests) cancel underlying browser fetches immediately on page switch
- Replace unnecessary full db.GetConversation loads (which unmarshaled all messages and process_details) with ConversationExists/GetConversationTitle/GetConversationLite across multi_agent_prepare, single_agent, conversation rename/project/delete-turn, attackchain, and robot handlers
- Default WebShell GET /ai-history to GetConversationByWebshellConnectionIDLite unless include_process_details=1 is explicitly requested
- Rebuild web/static/app bundle and verify 58 Playwright E2E tests + Go test suites
2026-11-28 19:06:11 +08:00
Sycun 966836ef19 perf(chat): eliminate old conversation loading lag and polling livelock
- Add compact summary mode (include_process_details=summary) on GET /api/conversations/:id that skips progress noise, strips duplicated tool outputs/large arguments/long thinking bodies/finalText, and defers full payloads for on-demand GET /api/process-details/:id fetches
- Prevent paginated GET /api/messages/:id/process-details from leaking full tool_result payloads through message when includeToolPayload is false
- Add stdlib Gzip response compression middleware (skipping SSE, WebSocket, and already-compressed assets)
- Add SQLite composite indexes on messages(conversation_id, created_at) and process_details(conversation_id/message_id, created_at)
- Switch chat page to summary loading with on-demand ToolBlock/ReasoningBlock detail fetching, AbortController cancellation, and in-flight poll deduplication to fix backgroundRunning 4s polling livelock
- Memoize MessageRow/TurnBody, defer prettyJson until panel expansion, and window long conversation histories (>40 messages)
- Rebuild web/static/app bundle and add Go + Playwright regression tests
2026-11-28 18:41:33 +08:00
Sycun 2863282250 fix(projects): tighten archive boundaries across tools, assets, and selectors 2026-11-26 18:28:12 +08:00
Sycun cb1507df6c feat(chat): group conversations and consolidate header actions 2026-11-20 15:14:00 +08:00
Sycun cfe3f82dd4 fix(pi): invalidate deleted sessions and prepare legacy upgrades 2026-11-12 21:19:09 +08:00
Sycun 0dd997ca01 refactor(runtime): remove Eino and make Pi the sole agent engine 2026-11-11 12:45:32 +08:00
Sycun 6a67364947 feat: add vulnerability retest branches with an isolated evidence log
Retesting a finding creates an independent conversation branch that
snapshots the source history and model trace, so verification can run
multi-turn without writing to the original session.

- POST /api/vulnerabilities/:id/retest creates the branch and persists the
  prompt, so a lost response, navigation or refresh can resume it
- new update_vulnerability_status tool closes the loop; a retest branch may
  only read and update its own finding
- {{vulnerability_id}}, {{conversation_id}} and {{source_conversation_id}}
  resolve on send, in the first turn and in follow-ups
- evidence appends to a read-only vulnerabilities.retest_log column instead
  of retest_notes: that field is operator-authored and the edit form
  rewrites it wholesale, so a routine edit used to erase the retest trail
- the retest prompt is prefilled with the operator's retest_notes, which
  already states how to verify the fix
- copied messages are re-bound as time.Time. Scanning a DATETIME column into
  a string yields RFC3339Nano while AddMessage writes the driver's
  space-separated format, and messages sort on the raw created_at text, so a
  branch rendered its new turn above the inherited history
2026-10-10 07:21:20 +08:00
temp c70da22de7 Remove conversation grouping feature 2026-08-26 15:00:09 +08:00
公明 cecbe5a086
Add files via upload 2026-08-18 20:20:39 +08:00
公明 55ee5fbac9
Delete internal directory 2026-08-18 20:14:29 +08:00
公明 3b7fd8d582
Add files via upload 2026-08-15 11:06:08 +08:00
公明 409e75f15a
Add files via upload 2026-08-15 02:19:19 +08:00
公明 2910289f0b
Delete internal directory 2026-08-15 01:54:26 +08:00
公明 8bde9d749a
Add files via upload 2026-08-15 01:47:48 +08:00
RuoJi6 a1615143be
feat(ui): 显示 Agent 任务进度列表 (#251) 2026-08-14 10:44:03 +08:00
公明 07229f0fde
Add files via upload 2026-07-21 20:57:07 +08:00
公明 0ff8c58fbd
Add files via upload 2026-07-10 16:46:26 +08:00
公明 87c83c92fd
Add files via upload 2026-07-09 16:04:06 +08:00
公明 64c3f28780
Add files via upload 2026-07-09 14:38:09 +08:00
公明 8e5f40d226
Add files via upload 2026-06-26 14:30:00 +08:00
公明 5d77a99236
Add files via upload 2026-06-23 21:01:35 +08:00
公明 4a9889f0af
Add files via upload 2026-06-23 01:36:48 +08:00
公明 c000fe5195
Add files via upload 2026-06-19 01:39:53 +08:00
公明 7eadccbff6
Add files via upload 2026-06-18 12:44:42 +08:00
公明 cf1f8515d9
Delete internal directory 2026-06-18 12:37:39 +08:00
公明 faaac5fbd7
Add files via upload 2026-06-09 20:24:53 +08:00
公明 dd3b1ae219
Add files via upload 2026-05-26 14:34:21 +08:00
公明 7ba7476c4f
Add files via upload 2026-05-20 16:45:59 +08:00
公明 9325aed1eb
Add files via upload 2026-05-20 16:09:33 +08:00
公明 1cdcfa2c2d
Add files via upload 2026-05-15 11:47:34 +08:00
公明 b53cae3a02
Add files via upload 2026-04-28 11:37:52 +08:00
公明 a5e61947d3
Add files via upload 2026-04-19 01:17:09 +08:00
公明 5ef7618f44
Delete internal directory 2026-04-19 01:14:50 +08:00
公明 4fd083ff37
Add files via upload 2026-04-03 22:55:30 +08:00
公明 1eb5133492
Add files via upload 2026-03-31 22:13:47 +08:00
公明 26f131bb77
Add files via upload 2025-12-25 01:44:19 +08:00
公明 ef169ba307
Add files via upload 2025-12-24 23:14:37 +08:00
公明 add33e1cf7
Add files via upload 2025-11-08 18:56:23 +08:00