fix: 旧线程历史加载降级 + 停止状态超时恢复 + 裸来源标注清理
Trigger auto deployment for soc-langgraph / build-and-deploy (push) Failing after 15s
Deploy LangGraph UI to Azure Static Web Apps / build-and-deploy (push) Failing after 48s

This commit is contained in:
gongzhiyong
2026-04-15 03:21:38 +08:00
parent 99b3cda23c
commit 2574dd2bbf
15 changed files with 1726 additions and 657 deletions
Vendored
BIN
View File
Binary file not shown.
+128 -26
View File
@@ -1,6 +1,6 @@
{
"version": "1.0.0",
"lastScanned": 1776102101935,
"lastScanned": 1776189035819,
"projectRoot": "/Users/gongzhiyong/go/SOC",
"techStack": {
"languages": [],
@@ -36,7 +36,7 @@
"path": "doc",
"purpose": null,
"fileCount": 2,
"lastAccessed": 1776102101920,
"lastAccessed": 1776189035803,
"keyFiles": [
"enterprise-plan.md",
"test-report-2026-04-13.md"
@@ -46,7 +46,7 @@
"path": "langgraph",
"purpose": null,
"fileCount": 30,
"lastAccessed": 1776102101920,
"lastAccessed": 1776189035803,
"keyFiles": [
"Dockerfile",
"Dockerfile.dev",
@@ -59,14 +59,62 @@
"hotPaths": [
{
"path": "langgraph/src/main.tsx",
"accessCount": 61,
"lastAccessed": 1776105760972,
"accessCount": 179,
"lastAccessed": 1776194470921,
"type": "file"
},
{
"path": "langgraph/src/components/ChatMessages.tsx",
"accessCount": 28,
"lastAccessed": 1776192583306,
"type": "file"
},
{
"path": "langgraph/src/hooks/useConversation.ts",
"accessCount": 24,
"lastAccessed": 1776194468880,
"type": "file"
},
{
"path": "langgraph/src/components/MessageBubble.tsx",
"accessCount": 7,
"lastAccessed": 1776105691610,
"accessCount": 22,
"lastAccessed": 1776194486314,
"type": "file"
},
{
"path": "langgraph/src/components/ChatInput.tsx",
"accessCount": 19,
"lastAccessed": 1776188977806,
"type": "file"
},
{
"path": "langgraph/src",
"accessCount": 13,
"lastAccessed": 1776192444641,
"type": "directory"
},
{
"path": "langgraph/src/utils/tool-maps.ts",
"accessCount": 10,
"lastAccessed": 1776186466694,
"type": "file"
},
{
"path": "langgraph/src/components/ToolCallStatus.tsx",
"accessCount": 10,
"lastAccessed": 1776188922080,
"type": "directory"
},
{
"path": "langgraph/src/components/ConfigPanel.tsx",
"accessCount": 10,
"lastAccessed": 1776192554342,
"type": "file"
},
{
"path": "langgraph/src/utils/api-client.ts",
"accessCount": 6,
"lastAccessed": 1776194451384,
"type": "file"
},
{
@@ -88,35 +136,41 @@
"type": "file"
},
{
"path": "langgraph/src/utils/tool-maps.ts",
"accessCount": 1,
"lastAccessed": 1776102347374,
"type": "file"
},
{
"path": "langgraph/src/utils/input-handling.ts",
"accessCount": 1,
"lastAccessed": 1776102372842,
"path": "CLAUDE.md",
"accessCount": 2,
"lastAccessed": 1776106011308,
"type": "file"
},
{
"path": "langgraph/src/utils/thread-management.ts",
"accessCount": 1,
"lastAccessed": 1776102387195,
"accessCount": 2,
"lastAccessed": 1776161582846,
"type": "file"
},
{
"path": "langgraph/src/utils/input-handling.ts",
"accessCount": 2,
"lastAccessed": 1776163982781,
"type": "file"
},
{
"path": "langgraph",
"accessCount": 2,
"lastAccessed": 1776185234472,
"type": "directory"
},
{
"path": "langgraph/src/agent/utils/config.ts",
"accessCount": 2,
"lastAccessed": 1776188545877,
"type": "directory"
},
{
"path": "langgraph/src/utils/message-rendering.ts",
"accessCount": 1,
"lastAccessed": 1776102400569,
"type": "file"
},
{
"path": "langgraph/src/utils/api-client.ts",
"accessCount": 1,
"lastAccessed": 1776102423804,
"type": "file"
},
{
"path": ".claude/agents/soc-refactor-agent.md",
"accessCount": 1,
@@ -136,9 +190,57 @@
"type": "directory"
},
{
"path": "langgraph/src",
"path": "langgraph/src/components/ThreadSidebar.tsx",
"accessCount": 1,
"lastAccessed": 1776105656178,
"lastAccessed": 1776161575958,
"type": "file"
},
{
"path": "langgraph/src/components/ExecutionLogPanel.tsx",
"accessCount": 1,
"lastAccessed": 1776161576162,
"type": "file"
},
{
"path": "langgraph/src/components/shared/CardErrorBoundary.tsx",
"accessCount": 1,
"lastAccessed": 1776161598774,
"type": "file"
},
{
"path": "langgraph/src/agent-uis/utils/use-artifact.tsx",
"accessCount": 1,
"lastAccessed": 1776161601529,
"type": "file"
},
{
"path": "langgraph/src/index.css",
"accessCount": 1,
"lastAccessed": 1776185276750,
"type": "file"
},
{
"path": "langgraph/src/hooks/useConfig.ts",
"accessCount": 1,
"lastAccessed": 1776186471778,
"type": "file"
},
{
"path": "langgraph/src/components/DeepResearchToggle.tsx",
"accessCount": 1,
"lastAccessed": 1776186489854,
"type": "file"
},
{
"path": "langgraph/src/agent/utils/checkpointer.ts",
"accessCount": 1,
"lastAccessed": 1776192450194,
"type": "file"
},
{
"path": "langgraph/src/agent/supervisor/index.ts",
"accessCount": 1,
"lastAccessed": 1776192451278,
"type": "directory"
}
],
@@ -1,48 +0,0 @@
{"t":0,"agent":"system","event":"skill_invoked","skill_name":"oh-my-claudecode:setup"}
{"t":0,"agent":"system","event":"skill_invoked","skill_name":"oh-my-claudecode:omc-setup"}
{"t":0,"agent":"system","event":"skill_invoked","skill_name":"oh-my-claudecode:hud"}
{"t":0,"agent":"system","event":"skill_invoked","skill_name":"oh-my-claudecode:team"}
{"t":0,"agent":"ad2f060","agent_type":"ux-reviewer","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"a2645c0","agent_type":"code-reviewer","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"a118208","agent_type":"product-reviewer","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"a175e13","agent_type":"product-reviewer","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"a5c960f","agent_type":"product-reviewer","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"a116dc8","agent_type":"product-reviewer","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"a2645c0","agent_type":"code-reviewer","event":"agent_stop","success":true,"duration_ms":117289}
{"t":0,"agent":"a1ffb67","agent_type":"code-reviewer","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"a1ffb67","agent_type":"code-reviewer","event":"agent_stop","success":true,"duration_ms":11194}
{"t":0,"agent":"a686758","agent_type":"ux-reviewer","event":"agent_stop","success":true}
{"t":0,"agent":"a1b02e2","agent_type":"ux-reviewer","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"a511bfa","agent_type":"product-reviewer","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"affb76d","agent_type":"interaction-upgrade","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"a24c7ee","agent_type":"export-timestamps","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"system","event":"skill_invoked","skill_name":"agent-browser"}
{"t":0,"agent":"a3bed4f","agent_type":"refactor-worker","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"a338035","agent_type":"refactor-worker","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"a9823d6","agent_type":"polish-worker","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"ac63e30","agent_type":"polish-worker","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"a48c164","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"ae3f096","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"a2a7533","agent_type":"polish-worker","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"a026cc1","agent_type":"refactor-worker","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"system","event":"skill_invoked","skill_name":"oh-my-claudecode:team"}
{"t":0,"agent":"a213f63","agent_type":"worker-1","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"a9723d3","agent_type":"worker-1","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"ae440d9","agent_type":"worker-1","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"a73bc52","agent_type":"worker-1","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"a91736f","agent_type":"worker-2","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"a7991ac","agent_type":"worker-2","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"af5367e","agent_type":"worker-3","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"a40f928","agent_type":"worker-3","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"aee50ad","agent_type":"worker-1","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"aa06b21","agent_type":"worker-2","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"a38ddc7","agent_type":"worker-3","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"a9c8dea","agent_type":"unknown","event":"agent_stop","success":true}
{"t":0,"agent":"a31f9f3","agent_type":"worker-1","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"ac08f2b","agent_type":"worker-2","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"ac05d2c","agent_type":"worker-3","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"ae8fad8","agent_type":"worker-1","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"a0ec387","agent_type":"worker-2","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"ae8fad8","agent_type":"worker-1","event":"agent_stop","success":true,"duration_ms":166644}
{"t":0,"agent":"a5715d3","agent_type":"worker-1","event":"agent_start","parent_mode":"none"}
{"t":0,"agent":"a5715d3","agent_type":"worker-1","event":"agent_stop","success":true,"duration_ms":15355}
+1 -1
View File
@@ -1 +1 @@
{"session_id":"cbab3cea-282f-4d92-bc04-19310c94f3e6","transcript_path":"/Users/gongzhiyong/.claude/projects/-Users-gongzhiyong/cbab3cea-282f-4d92-bc04-19310c94f3e6.jsonl","cwd":"/Users/gongzhiyong/go/SOC","model":{"id":"claude-sonnet-4-6","display_name":"Sonnet 4.6"},"workspace":{"current_dir":"/Users/gongzhiyong/go/SOC","project_dir":"/Users/gongzhiyong","added_dirs":[]},"version":"2.1.92","output_style":{"name":"default"},"cost":{"total_cost_usd":69.40894865000007,"total_duration_ms":16385157,"total_api_duration_ms":7027952,"total_lines_added":1180,"total_lines_removed":308},"context_window":{"total_input_tokens":413757,"total_output_tokens":306080,"context_window_size":200000,"current_usage":{"input_tokens":3,"output_tokens":196,"cache_creation_input_tokens":1171,"cache_read_input_tokens":117401},"used_percentage":59,"remaining_percentage":41},"exceeds_200k_tokens":false,"rate_limits":{"five_hour":{"used_percentage":5,"resets_at":1776121200},"seven_day":{"used_percentage":9,"resets_at":1776668400}}}
{"session_id":"21541d1e-def5-45d0-b75c-f06b026903cc","transcript_path":"/Users/gongzhiyong/.claude/projects/-Users-gongzhiyong/21541d1e-def5-45d0-b75c-f06b026903cc.jsonl","cwd":"/Users/gongzhiyong/go/SOC","model":{"id":"claude-opus-4-6[1m]","display_name":"Opus 4.6 (1M context)"},"workspace":{"current_dir":"/Users/gongzhiyong/go/SOC","project_dir":"/Users/gongzhiyong","added_dirs":[]},"version":"2.1.92","output_style":{"name":"default"},"cost":{"total_cost_usd":99.30370910000003,"total_duration_ms":88430596,"total_api_duration_ms":8765898,"total_lines_added":1789,"total_lines_removed":425},"context_window":{"total_input_tokens":17929,"total_output_tokens":366203,"context_window_size":1000000,"current_usage":{"input_tokens":3,"output_tokens":31,"cache_creation_input_tokens":394,"cache_read_input_tokens":333438},"used_percentage":33,"remaining_percentage":67},"exceeds_200k_tokens":true,"rate_limits":{"five_hour":{"used_percentage":65,"resets_at":1776200400},"seven_day":{"used_percentage":19,"resets_at":1776668400}}}
+2 -2
View File
@@ -1,5 +1,5 @@
{
"lastSentAt": "2026-04-13T18:42:10.614Z",
"repoSignature": "{\"repo\":\"Fasthei/so-c-chat-clone\",\"headSha\":\"aec776e60c62b63de8a5326a1d4cf235cd5b2d0b\",\"dirty\":true,\"openPrNumbers\":[],\"openIssueNumbers\":[],\"failingRunIds\":[24212133630,24212252772,24212374640,24215887708,24216091197,24256304269,24256304279,24302279460,24310044547,24310141463,24310183516,24310225839]}",
"lastSentAt": "2026-04-14T19:21:02.733Z",
"repoSignature": "{\"repo\":\"Fasthei/so-c-chat-clone\",\"headSha\":\"99b3cda23c30677406c5c1cfcd47e9b31419b58d\",\"dirty\":true,\"openPrNumbers\":[],\"openIssueNumbers\":[],\"failingRunIds\":[24417020265,24417020324]}",
"backlogZero": false
}
+4 -4
View File
@@ -1,7 +1,7 @@
{
"tool_name": "Bash",
"tool_input_preview": "{\"command\":\"find ~/.claude -name \\\"*.json\\\" 2>/dev/null | xargs grep -l \\\"soc-refactor-completion\\\" 2>/dev/null\",\"description\":\"Find all files referencing the old team\"}",
"error": "Exit code 1",
"timestamp": "2026-04-13T18:33:35.515Z",
"tool_name": "mcp__playwright__browser_snapshot",
"tool_input_preview": "{}",
"error": "### Error\nError: Browser is already in use for /Users/gongzhiyong/Library/Caches/ms-playwright/mcp-chrome-1729bba, use --isolated to run multiple instances of the same browser",
"timestamp": "2026-04-14T19:01:19.462Z",
"retry_count": 1
}
File diff suppressed because it is too large Load Diff
+657 -229
View File
@@ -1,254 +1,682 @@
{
"agents": [
{
"agent_id": "ad2f0602bfa6b6a03",
"agent_type": "ux-reviewer",
"started_at": "2026-04-13T16:57:05.589Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "a2645c0c1125f88fd",
"agent_type": "code-reviewer",
"started_at": "2026-04-13T16:57:14.680Z",
"agent_id": "a424378be670fa941",
"agent_type": "oh-my-claudecode:executor",
"started_at": "2026-04-13T19:38:14.188Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-13T16:59:11.969Z",
"duration_ms": 117289
"completed_at": "2026-04-13T19:39:48.188Z",
"duration_ms": 94000
},
{
"agent_id": "a1182083f34dfdca2",
"agent_type": "product-reviewer",
"started_at": "2026-04-13T16:57:25.154Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "a175e13ce956fc3b4",
"agent_type": "product-reviewer",
"started_at": "2026-04-13T16:57:26.866Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "a5c960fbe0d950a8e",
"agent_type": "product-reviewer",
"started_at": "2026-04-13T16:58:11.911Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "a116dc8a608edd6ab",
"agent_type": "product-reviewer",
"started_at": "2026-04-13T16:58:55.582Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "a1ffb67f6aa7b1878",
"agent_type": "code-reviewer",
"started_at": "2026-04-13T16:59:12.209Z",
"agent_id": "a88cded4889a089eb",
"agent_type": "oh-my-claudecode:explore",
"started_at": "2026-04-14T10:12:42.372Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-13T16:59:23.403Z",
"duration_ms": 11194
"completed_at": "2026-04-14T10:13:56.891Z",
"duration_ms": 74519
},
{
"agent_id": "a1b02e26d59b261ee",
"agent_type": "ux-reviewer",
"started_at": "2026-04-13T17:08:56.789Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "a511bfa23516122bf",
"agent_type": "product-reviewer",
"started_at": "2026-04-13T17:09:30.209Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "affb76de841017f48",
"agent_type": "interaction-upgrade",
"started_at": "2026-04-13T17:09:30.708Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "a24c7ee7ba1b41495",
"agent_type": "export-timestamps",
"started_at": "2026-04-13T17:09:30.971Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "a3bed4ff7d136ad6f",
"agent_type": "refactor-worker",
"started_at": "2026-04-13T17:37:00.184Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "a338035875d927fee",
"agent_type": "refactor-worker",
"started_at": "2026-04-13T17:37:00.890Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "a9823d622b269699c",
"agent_type": "polish-worker",
"started_at": "2026-04-13T17:37:13.785Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "ac63e3009194c2b06",
"agent_type": "polish-worker",
"started_at": "2026-04-13T17:37:14.507Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "a2a7533fcf0da1604",
"agent_type": "polish-worker",
"started_at": "2026-04-13T17:45:01.087Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "a026cc1d257b3070a",
"agent_type": "refactor-worker",
"started_at": "2026-04-13T17:45:01.142Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "a213f630aee14d7d8",
"agent_type": "worker-1",
"started_at": "2026-04-13T18:00:38.597Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "a9723d36b56bbc895",
"agent_type": "worker-1",
"started_at": "2026-04-13T18:00:39.286Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "ae440d93a98b97884",
"agent_type": "worker-1",
"started_at": "2026-04-13T18:00:39.999Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "a73bc5230fa4d6310",
"agent_type": "worker-1",
"started_at": "2026-04-13T18:00:40.665Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "a91736fa10bde33f8",
"agent_type": "worker-2",
"started_at": "2026-04-13T18:00:45.441Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "a7991ac28577767f2",
"agent_type": "worker-2",
"started_at": "2026-04-13T18:00:46.088Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "af5367e4135fe5cf4",
"agent_type": "worker-3",
"started_at": "2026-04-13T18:00:53.155Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "a40f92852a6dfa951",
"agent_type": "worker-3",
"started_at": "2026-04-13T18:00:54.262Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "aee50ad9aa0fac5e6",
"agent_type": "worker-1",
"started_at": "2026-04-13T18:01:55.335Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "aa06b21b2f1cf14d0",
"agent_type": "worker-2",
"started_at": "2026-04-13T18:01:58.701Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "a38ddc72cfa37fba5",
"agent_type": "worker-3",
"started_at": "2026-04-13T18:02:02.511Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "a31f9f33e15c71c58",
"agent_type": "worker-1",
"started_at": "2026-04-13T18:32:24.846Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "ac08f2b8d031281b7",
"agent_type": "worker-2",
"started_at": "2026-04-13T18:32:27.853Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "ac05d2c7c4f24b18a",
"agent_type": "worker-3",
"started_at": "2026-04-13T18:32:29.872Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "ae8fad893bc9f1ab0",
"agent_type": "worker-1",
"started_at": "2026-04-13T18:40:15.847Z",
"agent_id": "a7f9b615bebecba55",
"agent_type": "tester",
"started_at": "2026-04-14T16:46:24.460Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-13T18:43:02.491Z",
"duration_ms": 166644
"completed_at": "2026-04-14T16:51:29.735Z",
"duration_ms": 305275
},
{
"agent_id": "a0ec387e549bf3e50",
"agent_type": "worker-2",
"started_at": "2026-04-13T18:40:26.451Z",
"agent_id": "a0f2d081ea8b4b934",
"agent_type": "fixer",
"started_at": "2026-04-14T16:46:35.380Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T16:46:48.071Z",
"duration_ms": 12691
},
{
"agent_id": "a65b3f1bbb05bb9a7",
"agent_type": "reporter",
"started_at": "2026-04-14T16:46:48.315Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T16:53:47.926Z",
"duration_ms": 419611
},
{
"agent_id": "a66612c57f8b7edec",
"agent_type": "fixer",
"started_at": "2026-04-14T16:46:48.353Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T16:49:46.507Z",
"duration_ms": 178154
},
{
"agent_id": "ab0a2cee021dc270f",
"agent_type": "fixer",
"started_at": "2026-04-14T16:49:46.755Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T16:53:42.836Z",
"duration_ms": 236081
},
{
"agent_id": "ac0e04ff777d2d28c",
"agent_type": "tester",
"started_at": "2026-04-14T16:51:29.974Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T16:51:37.461Z",
"duration_ms": 7487
},
{
"agent_id": "a33e6d12e9047bd30",
"agent_type": "tester",
"started_at": "2026-04-14T16:51:37.703Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T17:00:46.504Z",
"duration_ms": 548801
},
{
"agent_id": "a8bb1633090f029a2",
"agent_type": "fixer",
"started_at": "2026-04-14T16:53:43.079Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T16:57:29.081Z",
"duration_ms": 226002
},
{
"agent_id": "a3eeb748f3f0ef7a8",
"agent_type": "reporter",
"started_at": "2026-04-14T16:53:48.172Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T16:54:01.954Z",
"duration_ms": 13782
},
{
"agent_id": "a520418c7f3035903",
"agent_type": "reporter",
"started_at": "2026-04-14T16:54:02.198Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T16:54:18.126Z",
"duration_ms": 15928
},
{
"agent_id": "aab723e8b529800f5",
"agent_type": "reporter",
"started_at": "2026-04-14T16:54:18.361Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T16:58:44.554Z",
"duration_ms": 266193
},
{
"agent_id": "a4a06bef6933a4a7b",
"agent_type": "fixer",
"started_at": "2026-04-14T16:57:29.324Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T17:01:42.017Z",
"duration_ms": 252693
},
{
"agent_id": "ac88b43d9373a716a",
"agent_type": "reporter",
"started_at": "2026-04-14T16:58:44.798Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T16:58:52.247Z",
"duration_ms": 7449
},
{
"agent_id": "a04a615df73343eaa",
"agent_type": "tester",
"started_at": "2026-04-14T17:00:46.747Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T17:16:34.719Z",
"duration_ms": 947972
},
{
"agent_id": "a4a7e5c2521416d2f",
"agent_type": "fixer",
"started_at": "2026-04-14T17:01:49.312Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T17:07:24.019Z",
"duration_ms": 334707
},
{
"agent_id": "a6a57cc4f3fe55a3b",
"agent_type": "fixer",
"started_at": "2026-04-14T17:07:24.264Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T17:07:40.306Z",
"duration_ms": 16042
},
{
"agent_id": "a071978eb7e5586d4",
"agent_type": "fixer",
"started_at": "2026-04-14T17:07:40.546Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T17:11:00.131Z",
"duration_ms": 199585
},
{
"agent_id": "adeda27793434913e",
"agent_type": "fixer",
"started_at": "2026-04-14T17:11:00.376Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T17:12:36.781Z",
"duration_ms": 96405
},
{
"agent_id": "a3ff918962e6054a6",
"agent_type": "fixer",
"started_at": "2026-04-14T17:12:37.023Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T17:13:11.614Z",
"duration_ms": 34591
},
{
"agent_id": "ac8df403bdd43db6e",
"agent_type": "tester",
"started_at": "2026-04-14T17:16:35.028Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T17:18:18.734Z",
"duration_ms": 103706
},
{
"agent_id": "ab23597c4bc3a9ae9",
"agent_type": "fixer",
"started_at": "2026-04-14T17:17:22.749Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T17:21:45.514Z",
"duration_ms": 262765
},
{
"agent_id": "aaf695f4365354e55",
"agent_type": "tester",
"started_at": "2026-04-14T17:18:18.975Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T17:33:10.732Z",
"duration_ms": 891757
},
{
"agent_id": "a9220d2bec62b355a",
"agent_type": "fixer",
"started_at": "2026-04-14T17:21:45.765Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T17:25:28.829Z",
"duration_ms": 223064
},
{
"agent_id": "a0fe8716ef43933ed",
"agent_type": "fixer",
"started_at": "2026-04-14T17:25:29.072Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T17:29:59.462Z",
"duration_ms": 270390
},
{
"agent_id": "a4538f2d04163a9f7",
"agent_type": "fixer",
"started_at": "2026-04-14T17:29:59.701Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T17:30:07.854Z",
"duration_ms": 8153
},
{
"agent_id": "a711dba9d5bc9a469",
"agent_type": "fixer",
"started_at": "2026-04-14T17:30:08.104Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T17:32:12.546Z",
"duration_ms": 124442
},
{
"agent_id": "a04e3528b0e109fd0",
"agent_type": "tester",
"started_at": "2026-04-14T17:33:10.969Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T17:33:23.719Z",
"duration_ms": 12750
},
{
"agent_id": "ae8c1cb007eb3c2ea",
"agent_type": "fixer",
"started_at": "2026-04-14T17:33:13.585Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T17:33:48.766Z",
"duration_ms": 35181
},
{
"agent_id": "a660d665b65a343e8",
"agent_type": "tester",
"started_at": "2026-04-14T17:33:23.967Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T17:50:59.319Z",
"duration_ms": 1055352
},
{
"agent_id": "af5b9b2a480e348e9",
"agent_type": "fixer",
"started_at": "2026-04-14T17:48:29.413Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T17:51:52.686Z",
"duration_ms": 203273
},
{
"agent_id": "a0213511371090ac5",
"agent_type": "reporter",
"started_at": "2026-04-14T17:48:29.466Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T17:48:39.303Z",
"duration_ms": 9837
},
{
"agent_id": "adf79f30cd0f213cf",
"agent_type": "reporter",
"started_at": "2026-04-14T17:49:26.320Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T17:49:33.362Z",
"duration_ms": 7042
},
{
"agent_id": "ac4683c2bdaf7cc2d",
"agent_type": "tester",
"started_at": "2026-04-14T17:50:59.571Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T17:52:39.227Z",
"duration_ms": 99656
},
{
"agent_id": "aa05d95963cadf676",
"agent_type": "fixer",
"started_at": "2026-04-14T17:51:52.936Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T17:52:05.117Z",
"duration_ms": 12181
},
{
"agent_id": "a11abaf65a28d4acf",
"agent_type": "fixer",
"started_at": "2026-04-14T17:52:05.382Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T17:53:07.023Z",
"duration_ms": 61641
},
{
"agent_id": "a873a2233bd1bc21b",
"agent_type": "tester",
"started_at": "2026-04-14T17:52:39.480Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T17:59:01.617Z",
"duration_ms": 382137
},
{
"agent_id": "afeec831174c28198",
"agent_type": "reporter",
"started_at": "2026-04-14T17:52:43.667Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T17:52:52.285Z",
"duration_ms": 8618
},
{
"agent_id": "ae03d57ae03c78c5f",
"agent_type": "fixer",
"started_at": "2026-04-14T17:53:07.263Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T17:53:19.258Z",
"duration_ms": 11995
},
{
"agent_id": "a3333dd36170f1db6",
"agent_type": "fixer",
"started_at": "2026-04-14T17:53:19.507Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T17:53:40.437Z",
"duration_ms": 20930
},
{
"agent_id": "a067f7612b04cc994",
"agent_type": "fixer",
"started_at": "2026-04-14T17:53:40.701Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T17:53:51.912Z",
"duration_ms": 11211
},
{
"agent_id": "af46b0f6c9b24997a",
"agent_type": "tester",
"started_at": "2026-04-14T17:59:01.860Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T18:03:34.580Z",
"duration_ms": 272720
},
{
"agent_id": "a43dcb7ec755424cf",
"agent_type": "fixer",
"started_at": "2026-04-14T18:00:45.126Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T18:01:45.573Z",
"duration_ms": 60447
},
{
"agent_id": "adaec85d3721958f7",
"agent_type": "tester",
"started_at": "2026-04-14T18:03:34.822Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T18:10:46.450Z",
"duration_ms": 431628
},
{
"agent_id": "af9313c0797aad1a8",
"agent_type": "tester",
"started_at": "2026-04-14T18:10:46.692Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T18:22:29.872Z",
"duration_ms": 703180
},
{
"agent_id": "a6c1b0f17960c54b3",
"agent_type": "fixer",
"started_at": "2026-04-14T18:11:22.834Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T18:11:32.945Z",
"duration_ms": 10111
},
{
"agent_id": "a18b0888d7bae8a9b",
"agent_type": "reporter",
"started_at": "2026-04-14T18:11:28.275Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T18:14:56.362Z",
"duration_ms": 208087
},
{
"agent_id": "a6e5b518c8a73db8e",
"agent_type": "tester",
"started_at": "2026-04-14T18:22:30.113Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T18:22:57.931Z",
"duration_ms": 27818
},
{
"agent_id": "a22df9f094a8ce3b4",
"agent_type": "fixer",
"started_at": "2026-04-14T18:22:53.967Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T18:25:33.509Z",
"duration_ms": 159542
},
{
"agent_id": "ab0ba56542ec79aec",
"agent_type": "tester",
"started_at": "2026-04-14T18:22:58.179Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T18:23:07.223Z",
"duration_ms": 9044
},
{
"agent_id": "ad22bd54c4f62f42c",
"agent_type": "reporter",
"started_at": "2026-04-14T18:23:02.012Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T18:25:46.372Z",
"duration_ms": 164360
},
{
"agent_id": "aac8d9667f970b805",
"agent_type": "tester",
"started_at": "2026-04-14T18:23:07.455Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T18:31:42.485Z",
"duration_ms": 515030
},
{
"agent_id": "a89688b4df6a9dd30",
"agent_type": "tester",
"started_at": "2026-04-14T18:31:42.727Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T18:45:43.629Z",
"duration_ms": 840902
},
{
"agent_id": "a36242f895f87b6a4",
"agent_type": "fixer",
"started_at": "2026-04-14T18:32:13.888Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T18:41:23.814Z",
"duration_ms": 549926
},
{
"agent_id": "a70eb718a360fe7cf",
"agent_type": "fixer",
"started_at": "2026-04-14T18:44:26.978Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T18:47:07.032Z",
"duration_ms": 160054
},
{
"agent_id": "a5d9bfef60d4176a0",
"agent_type": "tester",
"started_at": "2026-04-14T18:45:43.880Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T18:52:09.501Z",
"duration_ms": 385621
},
{
"agent_id": "a760d02d4655bfd4b",
"agent_type": "fixer",
"started_at": "2026-04-14T18:47:07.290Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T18:48:30.396Z",
"duration_ms": 83106
},
{
"agent_id": "a5050d080fe706397",
"agent_type": "fixer",
"started_at": "2026-04-14T18:48:30.655Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T18:48:35.237Z",
"duration_ms": 4582
},
{
"agent_id": "a15c401647a317123",
"agent_type": "fixer2",
"started_at": "2026-04-14T18:48:35.422Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T18:50:11.885Z",
"duration_ms": 96463
},
{
"agent_id": "a7f9ff5afe41686b0",
"agent_type": "fixer3",
"started_at": "2026-04-14T18:48:46.563Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T18:50:25.234Z",
"duration_ms": 98671
},
{
"agent_id": "ae1c6dcd403ac34c2",
"agent_type": "fixer",
"started_at": "2026-04-14T18:49:11.831Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T18:49:19.015Z",
"duration_ms": 7184
},
{
"agent_id": "a1473dec44200289f",
"agent_type": "fixer",
"started_at": "2026-04-14T18:49:38.409Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T18:49:44.144Z",
"duration_ms": 5735
},
{
"agent_id": "a38aa7df39b17a8f4",
"agent_type": "tester",
"started_at": "2026-04-14T18:52:09.747Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T18:54:44.879Z",
"duration_ms": 155132
},
{
"agent_id": "af06e61099c9ccffd",
"agent_type": "fixer",
"started_at": "2026-04-14T18:53:42.127Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T18:53:44.288Z",
"duration_ms": 2161
},
{
"agent_id": "a82f691196d381c79",
"agent_type": "reporter",
"started_at": "2026-04-14T18:53:42.344Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "a5715d3d8a7bdc74c",
"agent_type": "worker-1",
"started_at": "2026-04-13T18:43:02.739Z",
"agent_id": "a70ab239ae8b3e6f7",
"agent_type": "fixer2",
"started_at": "2026-04-14T18:53:42.853Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "a02b951715071193b",
"agent_type": "fixer3",
"started_at": "2026-04-14T18:53:43.596Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "acd69138dc2d9e0a3",
"agent_type": "fixer",
"started_at": "2026-04-14T18:54:38.448Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-13T18:43:18.094Z",
"duration_ms": 15355
"completed_at": "2026-04-14T18:54:41.172Z",
"duration_ms": 2724
},
{
"agent_id": "a4430ba11338f3064",
"agent_type": "tester",
"started_at": "2026-04-14T18:54:45.127Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "ac6d44ccb16bf0f9c",
"agent_type": "fixer",
"started_at": "2026-04-14T18:56:55.465Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T18:56:57.581Z",
"duration_ms": 2116
},
{
"agent_id": "ac8ef87090ddcb464",
"agent_type": "verifier",
"started_at": "2026-04-14T18:58:24.059Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T19:06:29.653Z",
"duration_ms": 485594
},
{
"agent_id": "a1492e92b422bbc57",
"agent_type": "verifier",
"started_at": "2026-04-14T19:06:29.909Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T19:06:36.569Z",
"duration_ms": 6660
},
{
"agent_id": "a2ebf80d62bbd00a3",
"agent_type": "verifier",
"started_at": "2026-04-14T19:08:45.852Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T19:20:10.008Z",
"duration_ms": 684156
},
{
"agent_id": "a043a52a4617f83e4",
"agent_type": "verifier",
"started_at": "2026-04-14T19:20:10.270Z",
"parent_mode": "none",
"status": "completed",
"completed_at": "2026-04-14T19:20:17.627Z",
"duration_ms": 7357
},
{
"agent_id": "a5e29daab35e6112b",
"agent_type": "fixer-final",
"started_at": "2026-04-14T19:20:46.567Z",
"parent_mode": "none",
"status": "running"
}
],
"total_spawned": 33,
"total_completed": 4,
"total_spawned": 74,
"total_completed": 71,
"total_failed": 0,
"last_updated": "2026-04-13T18:43:18.197Z"
"last_updated": "2026-04-14T19:20:46.670Z"
}
@@ -1,5 +1,5 @@
{
"lastSentAt": "2026-04-13T17:02:56.582Z",
"repoSignature": "{\"repo\":\"Fasthei/so-c-chat-clone\",\"headSha\":\"244a6d4a1fff2ed8ae9927b0ee41ed3b807bb2da\",\"dirty\":true,\"openPrNumbers\":[],\"openIssueNumbers\":[],\"failingRunIds\":[24211544230,24211569540,24211756813,24211913571,24212045581,24212133630,24212252772,24212374640,24215887708,24216091197,24256304269,24256304279,24302279460,24310044547,24310141463,24310183516,24310225839]}",
"lastSentAt": "2026-04-14T10:55:51.668Z",
"repoSignature": "{\"repo\":\"Fasthei/so-c-chat-clone\",\"headSha\":\"daa86280a079808161c55537073fbb9405a52061\",\"dirty\":true,\"openPrNumbers\":[],\"openIssueNumbers\":[],\"failingRunIds\":[24215887708,24216091197,24256304269,24256304279,24302279460,24310044547,24310141463,24310183516,24310225839]}",
"backlogZero": false
}
+97 -1
View File
@@ -1,5 +1,5 @@
{
"updatedAt": "2026-04-13T18:17:59.990Z",
"updatedAt": "2026-04-14T10:08:01.974Z",
"missions": [
{
"id": "session:cbab3cea-282f-4d92-bc04-19310c94f3e6:none",
@@ -104,6 +104,102 @@
"sourceKey": "session-stop:ad0565d5886540bca"
}
]
},
{
"id": "session:8d5ececd-230e-4dfc-a6a5-a59e507982ea:none",
"source": "session",
"name": "none",
"objective": "Session mission",
"createdAt": "2026-04-14T10:07:59.847Z",
"updatedAt": "2026-04-14T10:08:01.974Z",
"status": "running",
"workerCount": 5,
"taskCounts": {
"total": 5,
"pending": 0,
"blocked": 0,
"inProgress": 5,
"completed": 0,
"failed": 0
},
"agents": [
{
"name": "worker-1:aeb8a62",
"role": "worker-1",
"ownership": "aeb8a6218c482296a",
"status": "running",
"currentStep": null,
"latestUpdate": null,
"completedSummary": null,
"updatedAt": "2026-04-14T10:07:59.847Z"
},
{
"name": "worker-2:af29efc",
"role": "worker-2",
"ownership": "af29efc4277117b21",
"status": "running",
"currentStep": null,
"latestUpdate": null,
"completedSummary": null,
"updatedAt": "2026-04-14T10:08:00.047Z"
},
{
"name": "worker-3:a51797d",
"role": "worker-3",
"ownership": "a51797dc6abace48d",
"status": "running",
"currentStep": null,
"latestUpdate": null,
"completedSummary": null,
"updatedAt": "2026-04-14T10:08:00.973Z"
},
{
"name": "worker-4:a3f3320",
"role": "worker-4",
"ownership": "a3f33200e6a45c184",
"status": "running",
"currentStep": null,
"latestUpdate": null,
"completedSummary": null,
"updatedAt": "2026-04-14T10:08:01.339Z"
},
{
"name": "worker-5:a5d08b8",
"role": "worker-5",
"ownership": "a5d08b8b398a90f41",
"status": "running",
"currentStep": null,
"latestUpdate": null,
"completedSummary": null,
"updatedAt": "2026-04-14T10:08:01.974Z"
}
],
"timeline": [
{
"id": "session-start:a51797dc6abace48d:2026-04-14T10:08:00.973Z",
"at": "2026-04-14T10:08:00.973Z",
"kind": "update",
"agent": "worker-3:a51797d",
"detail": "started worker-3:a51797d",
"sourceKey": "session-start:a51797dc6abace48d"
},
{
"id": "session-start:a3f33200e6a45c184:2026-04-14T10:08:01.339Z",
"at": "2026-04-14T10:08:01.339Z",
"kind": "update",
"agent": "worker-4:a3f3320",
"detail": "started worker-4:a3f3320",
"sourceKey": "session-start:a3f33200e6a45c184"
},
{
"id": "session-start:a5d08b8b398a90f41:2026-04-14T10:08:01.974Z",
"at": "2026-04-14T10:08:01.974Z",
"kind": "update",
"agent": "worker-5:a5d08b8",
"detail": "started worker-5:a5d08b8",
"sourceKey": "session-start:a5d08b8b398a90f41"
}
]
}
]
}
+37 -2
View File
@@ -34,10 +34,45 @@
"started_at": "2026-04-13T17:04:57.416Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "aeb8a6218c482296a",
"agent_type": "worker-1",
"started_at": "2026-04-14T10:07:59.847Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "af29efc4277117b21",
"agent_type": "worker-2",
"started_at": "2026-04-14T10:08:00.047Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "a51797dc6abace48d",
"agent_type": "worker-3",
"started_at": "2026-04-14T10:08:00.973Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "a3f33200e6a45c184",
"agent_type": "worker-4",
"started_at": "2026-04-14T10:08:01.339Z",
"parent_mode": "none",
"status": "running"
},
{
"agent_id": "a5d08b8b398a90f41",
"agent_type": "worker-5",
"started_at": "2026-04-14T10:08:01.974Z",
"parent_mode": "none",
"status": "running"
}
],
"total_spawned": 5,
"total_spawned": 10,
"total_completed": 0,
"total_failed": 0,
"last_updated": "2026-04-13T18:18:00.091Z"
"last_updated": "2026-04-14T10:08:02.078Z"
}
+5 -2
View File
@@ -59,8 +59,11 @@ const SOURCE_TAGS: { pattern: string; label: string; className: string }[] = [
// 1. Fixed source tags: [知识库] [工单] [网络] [推断] → colored badge spans
// 2. Citation numbers: [1] [2] [3] … → clickable blue chip buttons that dispatch soc:highlight-citation
function renderWithSourceBadges(text: string): ReactNode[] {
// Strip bare source words at sentence end (e.g. "。工单" "!知识库" ".网络")
const stripped = text.replace(/[。!?.!?]\s*(工单|知识库|网络|推断)\s*$/g, (m) => m.replace(/\s*(工单|知识库|网络|推断)\s*$/, ""));
// Strip bare source words at sentence/line end (e.g. "。工单" "!知识库" ".网络")
// Also strip bare source words at absolute end of text without preceding punctuation
const stripped = text
.replace(/[。!?.!?]\s*(工单|知识库|网络|推断)\s*$/gm, (m) => m.replace(/\s*(工单|知识库|网络|推断)\s*$/, ""))
.replace(/\s+(工单|知识库|网络|推断)\s*$/gm, "");
// Combined regex: named source tags OR citation numbers [N]
const sourceEscaped = SOURCE_TAGS.map((t) => t.pattern.replace(/[[\]]/g, "\\$&")).join("|");
+2 -2
View File
@@ -50,8 +50,8 @@ export function useConversation(
const state = await loadThreadState(client, threadId);
setHistoricalMessages(state.messages.length ? state.messages : []);
setHistoricalUi(state.ui.length ? (state.ui as UIMsgLocal[]) : []);
// Track whether this is a selected thread with no loadable history
setThreadLoadFailed(state.messages.length === 0);
// Only mark as failed if loadThreadState genuinely errored (empty state is normal for old/new threads)
setThreadLoadFailed(false);
setCurrentThreadId(threadId);
setSidebarOpen(false);
}, [currentThreadId, input, client, setInput]);
+3 -1
View File
@@ -317,11 +317,13 @@ function App() {
thread.stop();
setTimeout(() => {
setConcurrentStatus("cancelling");
let elapsed = 0;
const waitForStop = () => {
if (!thread.isLoading) {
if (!thread.isLoading || elapsed >= 3000) {
wasStoppedRef.current = false;
setConcurrentStatus("idle");
} else {
elapsed += 200;
setTimeout(waitForStop, 200);
}
};
+2 -1
View File
@@ -24,8 +24,9 @@ export async function loadThreadState(
messages: state?.values?.messages ?? [],
ui: state?.values?.ui ?? [],
};
} catch {
} catch (err) {
// Graceful degradation: return empty state if fetch fails
console.error("[loadThreadState] failed for thread", threadId, err);
return { messages: [], ui: [] };
}
}