Commit Graph

836 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 12b4bf638e fix(app,hitl,chat): lock DB instance before startup recovery and clear stale task/plan state 2026-11-30 16:59:32 +08:00
Sycun db61cfa342 fix(assessments): prevent zero-intent planning spin and extract unlinked declared targets
- Extract and link declared target hosts/endpoints even when no project is associated, stopping URL extraction at CJK boundaries and recognizing inline host+path pairs
- Stop copying objective into supplementary exclusions when scope is omitted, and normalize legacy identical scopes across UI, decomposition, and worker contracts
- Normalize hostname/URL entries in planner asset_ids to linked asset UUIDs and guide empty-asset cases to use asset_ids: []
- Reject empty initial plans without a clarifying question, align planner/reviewer tool-submission instructions, sync assets before reading ChangeVersion, and stop waiting_progress from spinning every 2 minutes without graph/guidance signals
2026-11-30 15:57:09 +08:00
Sycun b98f6411bf fix(chat): restore active tasks bar at top of chat workspace 2026-11-29 20:30:44 +08:00
Sycun 5ae0d91ba8 feat(pluginhub): add driver remediation, failure diagnostics, and one-click CSAI Agent handoff 2026-11-28 21:04:04 +08:00
Sycun 2c107dc80a feat(pluginhub): support adding, deleting, and restoring market catalog entries 2026-11-28 20:43:06 +08:00
Sycun 0a0dcb51db fix(settings): sync update branch selector fix from main 2026-11-28 20:34:10 +08:00
Sycun 46a63b892e fix(settings): show fetched remote branches in update branch selector 2026-11-28 20:34:05 +08:00
Sycun f33afa6d93 chore(plugin-hub): merge one-click update branch switcher from main 2026-11-28 20:26:01 +08:00
Sycun 4e12a49f09 feat(update): support selecting and switching target branch in one-click update 2026-11-28 20:25:07 +08:00
Sycun aaa284586f feat(plugin-hub): add plugin capability platform with embedded WebUI proxy and unified LLM gateway 2026-11-28 20:10:45 +08:00
Sycun 43aa4fe1eb refactor(settings): remove redundant test-image button from model channel panel 2026-11-28 20:04:21 +08:00
Sycun 1c5c04362b feat(settings,chat): add GUI controls and entry points for vision model and knowledge base 2026-11-28 19:52: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 f4257cea3a perf(web,config): prevent cross-page HTTP stalls and honor 1M context default in probes
- Upgrade useResource and NotificationsBell with AbortController cancellation on unmount/reload and in-flight deduplication for silent polling, preventing abandoned requests from exhausting browser HTTP/1.1 connection slots
- Move external MCP tool lookups and markdown agent directory scans outside ConfigHandler.mu.RLock, bind request context, and support GET /api/config?include_tools=0 for chat model preferences and model settings
- Add immutable Cache-Control headers for content-hashed /static/app/assets/* and 1h caching for /static/i18n/*
- Add indexed created_at lower bound to NotificationHandler vulnerability summary query
- Pass effective configured/default 1M context_window in model probe requests, compute effective_max_total_tokens on fallback, display fallback window/source in ProbePanel, and suppress false context_window_unknown warnings when 1M default or manual window is active
- Rebuild web/static/app bundle and add Go + Playwright regression tests
2026-11-28 18:52:08 +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 b5f4ab9071 feat(assessment): fuse global security base and deep assessment governance (v1.8.2)
- Add random-nonce CSAI_DATA prompt guard envelope and typed scanner surface ingest (nmap/nuclei/httpx/ffuf) with cross-path execution deduplication
- Add deterministic 3-axis vulnerability fingerprinting and 5-dimension adversarial review shared across record/status/retest/assessment review
- Extend project scope_json with structured allow/deny constraints, scanner noise profiles, and evidence-gated project lessons (off/shadow/inject)
- Bundle offline WSTG/CWE/ATT&CK lookup_security_taxonomy tool and Pi compact skill index + prompt_cache_prefix_split support
- Add deep assessment pre-plan goal decomposition, persistent coverage ledger & acceptance gate, optimistic-concurrency plan notes, and graceful segment wrap-up
- Bump personal version to v1.8.2 and update CHANGELOG.md
2026-11-27 19:21:04 +08:00
Sycun 2863282250 fix(projects): tighten archive boundaries across tools, assets, and selectors 2026-11-26 18:28:12 +08:00
Sycun 480f1ae7e2 feat(projects): link project memory and vulnerability archives 2026-11-26 17:50:36 +08:00
Sycun 0a7020f62a fix(settings,chat): add audit model save controls and compact HITL reviewer spacing 2026-11-25 19:20:20 +08:00
Sycun 1f6cf47e88 fix(hitl): publish the rebuilt audit log bundle
The running page is served from web/static/app, so the source change never reached the UI.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-25 15:40:14 +08:00
Sycun a27c8c3fd1 fix(hitl): keep audit log tool names on one line
The tool column had no width and broke at every character, so names stacked vertically.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-25 15:35:44 +08:00
Sycun 5cdb903320 fix(roles): restore full role editor with icon, tool picker, workflow binding, and default role protection 2026-11-24 23:20:23 +08:00
Sycun 85887a29ed fix(chat): restore tool call counts and details 2026-11-24 09:42:01 +08:00
Sycun 5570c387a1 feat(vulnerabilities): restore one-click retest from detail drawer
Semi 迁移时丢失了旧版漏洞详情的复测入口,此前只能新建对话手动传漏洞 ID。
恢复为一致的一键流程:详情抽屉底栏新增复测主按钮(需 vulnerability:write,
无关联会话时禁用);弹窗预填默认提示词并附漏洞记录的复测方式,可编辑、
校验非空、服务端报错可重试。确认后调用既有 POST /vulnerabilities/:id/retest
创建分支,跳转聊天页自动发送服务端解析后的提示词;手动打开分支或发送
失败时回填服务端持久化的 pending_prompt 供手动续发。复测词条沿用
web/static/i18n 既有四语言文案,新增 Playwright 回归覆盖全链路。
2026-11-23 18:01:16 +08:00
Sycun a97f9b4b95 fix(settings): default the model context window field to 1M 2026-11-23 17:20:47 +08:00
Sycun 2afe8c7075 fix(settings): preview context and image defaults for selected models 2026-11-23 17:17:17 +08:00
Sycun a897a9213b fix(settings): restore selection from fetched channel models 2026-11-23 16:59:24 +08:00
Sycun ed82b78203 fix(assessments): match drawer tests to the shared asset library
The create form now shows the project asset count instead of a collection picker.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-20 22:25:12 +08:00
Sycun 614e5ff57f feat(assessments): add in-task progress questions and scoped operator controls 2026-11-20 22:19:51 +08:00
Sycun 5b81a98269 fix(assets): show all assets by default 2026-11-20 22:06:39 +08:00
Sycun 3f2cea8f5b fix(assets): scope the asset library by project 2026-11-20 22:01:32 +08:00
Sycun 603a6a666d fix(frontend): remove duplicate add asset plus sign 2026-11-20 21:59:27 +08:00
Sycun d6dbcb6dba fix(assets): add targets by pasting URLs or addresses
Creating an asset only asks for the addresses a teammate or notice provides, and parses the host, IP, and port from that text.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-20 21:58:48 +08:00
Sycun 62151a6d01 fix(dashboard): remove observation evidence metric 2026-11-20 21:52:46 +08:00
Sycun 42d084de5f fix(frontend): clarify vulnerability group hierarchy 2026-11-20 21:40:17 +08:00
Sycun ad57c85dd4 fix(frontend): publish the shared asset-library scope
The running app serves the built pages, so the create form still showed an empty asset collection after the source change.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-20 21:34:07 +08:00
Sycun 8aef32ab00 feat(assessments): share the project asset library across tasks
Deep assessment, chat, and batch work now use the same project assets, so a missing collection no longer leaves the scope empty.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-20 21:27:09 +08:00
Sycun f757d2e60b feat(assessments): show role icons in the create drawer
Use each testing role's configured icon in the deep assessment role picker.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-20 21:24:00 +08:00
Sycun d49329857f feat(chat): restore role selection beside the workspace
Apply an enabled testing role's prompt and tools from the composer on the next message.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-20 21:08:32 +08:00
Sycun cac72a4821 fix(assessments): clarify project asset collection availability 2026-11-20 20:59:28 +08:00
Sycun 45d531b01b fix(assessments): align role picker with upstream defaults 2026-11-20 20:46:57 +08:00
Sycun 986a6aca2b fix(frontend): prevent clipped outlines on focused inputs 2026-11-20 20:39:36 +08:00
Sycun 52baa278cf fix(assessments): align overview status with other metrics 2026-11-20 20:31:41 +08:00
Sycun b718171a84 style(chat): refine reasoning effort slider endpoints 2026-11-20 20:14:08 +08:00
Sycun f689e92678 feat(projects): share evidence across assets, assessments, and reports
Keep project facts, collections, retests, and exports on the same read boundary, and stop a manual fixed status or a blocked batch from looking complete.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-20 20:07:23 +08:00
Sycun 2fab8b7e11 feat(assessments): record attack surface clues alongside assets 2026-11-20 20:03:34 +08:00
Sycun 9c67d8c4bb fix(projects): keep attack path nodes readable when fitting the canvas 2026-11-20 15:42:35 +08:00
Sycun 4f1ed1e650 style(chat): integrate mode and project into composer toolbar 2026-11-20 15:28:21 +08:00
Sycun cb1507df6c feat(chat): group conversations and consolidate header actions 2026-11-20 15:14:00 +08:00