Commit Graph
115 Commits
Author SHA1 Message Date
gongzhiyong 23e228b0f9 docs: fix CLAUDE.md — Supervisor uses AzureOpenAI not Gemini 2026-04-12 14:48:26 +08:00
gongzhiyongandClaude Sonnet 4.6 7167109414 feat: collapse model/tool config into expandable summary bar
Deploy LangGraph Server to Azure Web App / build-and-deploy (push) Failing after 17s
Deploy LangGraph UI to Azure Static Web Apps / build-and-deploy (push) Failing after 43s
Replace flat tool toggles + model selector bar with a default-collapsed
summary chip (e.g. "Auto · 已开启 3 个工具 ▾") that expands upward into
a compact panel. Panel auto-closes on outside mousedown click. Options
changes keep the panel open.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 14:40:18 +08:00
gongzhiyongandClaude Sonnet 4.6 d86da0e48b feat: abort/cancel support in tool-executor and retry
Deploy LangGraph Server to Azure Web App / build-and-deploy (push) Failing after 20s
Deploy LangGraph UI to Azure Static Web Apps / build-and-deploy (push) Failing after 38s
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 14:33:47 +08:00
gongzhiyongandClaude Sonnet 4.6 f375220eb6 feat: concurrent input dialog, unlock textarea during loading, fix TS errors
Deploy LangGraph Server to Azure Web App / build-and-deploy (push) Failing after 12s
Deploy LangGraph UI to Azure Static Web Apps / build-and-deploy (push) Failing after 45s
- Add showConcurrentDialog modal when submitting while AI is loading
- Offer interrupt (stop + submit) or queue (poll until done) options
- Remove disabled={thread.isLoading} from textarea and FileUploadButton
- Fix TS2352: cast BaseMessage to unknown first before Record
- Fix TS6133: rename unused toolName param to _toolName
- Fix TS2769: chart_type typed as union literal, not string
- Fix TS2322: separate cmdMap lookup from const declaration in soc-client

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 14:31:29 +08:00
gongzhiyongandClaude Sonnet 4.6 e8a29e1f89 feat: toolConfig.ts, expanded preValidate rules, envelope unification, fallbackFrom, temperature pass-through
Deploy LangGraph Server to Azure Web App / build-and-deploy (push) Failing after 24s
Deploy LangGraph UI to Azure Static Web Apps / build-and-deploy (push) Failing after 39s
- New src/agent/utils/toolConfig.ts: centralized per-tool timeout/retry config
- preValidateToolCall: kb_search min query length + duplicate guard, ticket_list page range, ticket_detail placeholder ID detection
- ExecutionLogEntry: added fallbackFrom and retryCount fields
- retry.ts: added onAttempt callback for retry counting
- tool-executor.ts: all 7 tool content returns unified to {ok, tool, summary, resultCount, data, error, fallback} envelope
- supervisor/types.ts: temperature slider config field
- enterprise/agent.ts: temperature pass-through to createLlm()

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 14:16:19 +08:00
gongzhiyongandClaude Sonnet 4.6 fc56503e22 feat: ToolCallStatus partial_success/fallback_success visual states
Deploy LangGraph Server to Azure Web App / build-and-deploy (push) Failing after 17s
Deploy LangGraph UI to Azure Static Web Apps / build-and-deploy (push) Failing after 41s
- Add CornerDownRight, AlertCircle icons for fallback/partial states
- New isPartial/isFallback props on ToolCallRow with hint banners
- Read execution_log from thread.values in main.tsx, pass to ToolCallStatus
- Match by tc.name === entry.tool to determine partial/fallback per row

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 14:13:14 +08:00
gongzhiyongandClaude Sonnet 4.6 2f201bf1f0 feat: expand preValidateToolCall rules, add traceId+batch summary, extend log protocol to all agents
Deploy LangGraph Server to Azure Web App / build-and-deploy (push) Failing after 23s
Deploy LangGraph UI to Azure Static Web Apps / build-and-deploy (push) Failing after 37s
- Add validation for web_search/google_search (query length), sandbox_run/code_execute (empty code + dangerous commands), doc_create/report_generate/reply_draft (title/topic required)
- Add traceId field to ExecutionLogEntry, generate per-request traceId in enterprise tool-executor with batch summary log
- Add structured console.log tool_exec events to searcher, coder, writer tool-executors (no state changes)

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 13:55:19 +08:00
gongzhiyongandClaude Sonnet 4.6 b22d13415a fix: make GOOGLE_API_KEY and DATABASE_URL optional in dev environment
Deploy LangGraph Server to Azure Web App / build-and-deploy (push) Failing after 12s
Deploy LangGraph UI to Azure Static Web Apps / build-and-deploy (push) Failing after 43s
GOOGLE_API_KEY is not used at startup (no code calls config.google.apiKey).
DATABASE_URL is only needed for production checkpointer. Both are now
warned-but-not-fatal in dev (NODE_ENV != production) to allow local
development without these credentials.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 13:06:13 +08:00
gongzhiyongandClaude Sonnet 4.6 9c96913b4d feat: enterprise product sprint — log protocol, tool rules, UX polish
Deploy LangGraph Server to Azure Web App / build-and-deploy (push) Failing after 13s
Deploy LangGraph UI to Azure Static Web Apps / build-and-deploy (push) Failing after 49s
Backend:
- config.ts: unified startup env validation (throw on missing critical vars)
- tool-executor: structured logToolCall() JSON, ToolStatus enum (success/partial_success/fallback_success/error), preValidateToolCall() hardcoded guards for ticket_detail/chart_generate, durationMs/inputSummary/resultCount on all execution log entries
- agent.ts: tool selection decision tree, chart-as-default-path prompt rules, source labels [知识库][工单][网络][推断]
- tool-defs.ts: applicable/not-applicable guidance on all 4 tools
- soc-client.ts: sandbox hardening (10k char limit, 15s timeout, output truncation, error classification), config.* accessors
- router.ts: preCheckRoute() rules — TK-xxx/工单/知识库 → enterprise direct; greetings → generalInput
- supervisor/types.ts: removed dead config fields (model/temperature/maxTokens/systemPrompt)
- Remove chat-agent (legacy entry point)

Frontend:
- MessageBubble: source badge rendering [知识库][工单][网络][推断], CitationChip [1][2] → clickable chips
- ThreadSidebar: auto-title from first message, collapsible search, long title truncation
- ToolCallStatus: tool-specific loading labels, collapse-all toggle for multi-tool
- main.tsx: conclusion-first layout (AI text above artifacts), draft persistence, IME fix, auto chip, multi-tool AnalysisBlock container, sort_key ordering, retry via soc:retry-tool
- chart-result: empty guard, chart/table toggle, multi-chart format support
- ticket-summary/knowledge-result: work-card quick actions (prefill with context)
- ActionBar: structured payload {text, taskType, sourceCardId}, source label UI
- index.css: card-enter slide animation, dot-bounce loading

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 13:01:02 +08:00
gongzhiyongandClaude Sonnet 4.6 183794dc42 fix: sandbox friendly error card + ticket_list empty guard + search auto-supplement
Deploy LangGraph Server to Azure Web App / build-and-deploy (push) Failing after 34s
Deploy LangGraph UI to Azure Static Web Apps / build-and-deploy (push) Failing after 38s
- coder/tool-executor: push sandbox-result card with friendly message on
  failure instead of raw error, guide user to local execution or retry
- enterprise/tool-executor: skip ticket-summary card when ticket_list
  returns empty, only return hint in tool message to avoid blank UI
- searcher/tool-executor: auto-supplement web_search_deep with
  google_search when results < 3, matching existing google_search behavior
- ticket_detail UUID: already correctly uses find() match (no change needed)

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 22:35:52 +08:00
gongzhiyongandClaude Sonnet 4.6 19cb2e42bc fix(ui): fix ToolCallStatus duplicate label + add fade-in to standalone cards
Deploy LangGraph Server to Azure Web App / build-and-deploy (push) Failing after 15s
Deploy LangGraph UI to Azure Static Web Apps / build-and-deploy (push) Failing after 44s
- Fix ToolCallStatus label duplication: label span was shown twice when
  failed/done; consolidate into a single span with correct copy
- Add animate-in fade-in duration-300 wrapper to standalone Gen-UI cards
  and streaming orphan cards in main.tsx (already present in ToolCallStatus
  expanded view)

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 22:34:59 +08:00
gongzhiyongandClaude Sonnet 4.6 3b1ce32bc4 feat(R3): deduplicate UI cards by card_id (loading → complete merge)
Deploy LangGraph Server to Azure Web App / build-and-deploy (push) Failing after 27s
Deploy LangGraph UI to Azure Static Web Apps / build-and-deploy (push) Failing after 46s
Cards with the same card_id in props are deduplicated to show only the
last (complete) version, replacing any earlier loading skeleton cards.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 22:33:45 +08:00
gongzhiyongandClaude Sonnet 4.6 c4c5c9916e feat(R3): chart-result + reply-draft + next-actions + citations
Deploy LangGraph UI to Azure Static Web Apps / build-and-deploy (push) Has been cancelled
Deploy LangGraph Server to Azure Web App / build-and-deploy (push) Has been cancelled
- enterprise tool-executor: push chart-result card after ticket_list with
  status/priority distribution pie+bar charts
- enterprise tool-executor: push next-actions card after successful tool
  executions with contextual suggested actions
- enterprise tool-executor: add citations array to kb_search results
- searcher tool-executor: add citations array to google_search and
  web_search_deep results
- writer tool-defs: add replyDraftSchema and reply_draft tool definition
- writer tool-executor: add reply_draft case with LLM-generated drafts
  in customer/internal modes, push reply-draft Gen-UI card

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 22:33:35 +08:00
gongzhiyongandClaude Sonnet 4.6 e408ca9977 feat(R3): reply-draft + next-actions cards + citations in knowledge/search results
Deploy LangGraph Server to Azure Web App / build-and-deploy (push) Failing after 15s
Deploy LangGraph UI to Azure Static Web Apps / build-and-deploy (push) Failing after 46s
- Add reply-draft card (customer/internal mode, inline edit, copy)
- Add next-actions card (suggested action buttons with soc:prefill-input dispatch)
- Register reply-draft and next-actions in agent-uis ComponentMap
- Add citations[] prop to knowledge-result and search-result cards

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 22:32:25 +08:00
gongzhiyongandClaude Sonnet 4.6 f3cf9d027f feat(R3): reply-draft/next-actions/chart prompt quality
Deploy LangGraph Server to Azure Web App / build-and-deploy (push) Failing after 23s
Deploy LangGraph UI to Azure Static Web Apps / build-and-deploy (push) Failing after 44s
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 22:31:13 +08:00
gongzhiyongandClaude Sonnet 4.6 397c2c1124 feat: Gen-UI卡片error态 + ToolCallStatus失败状态 + 骨架屏loading
Deploy LangGraph Server to Azure Web App / build-and-deploy (push) Failing after 16s
Deploy LangGraph UI to Azure Static Web Apps / build-and-deploy (push) Failing after 40s
- 4个Gen-UI卡片增加errorMessage prop,错误时显示红色提示块,空结果时边框变红
- ToolCallStatus新增failedToolIds prop,失败时显示XCircle红色图标+失败文案
- main.tsx从tool messages status===error派生failedToolIds并传入ToolCallStatus
- ToolCallRow展开无uiItem时显示animate-pulse骨架屏占位
- LoadExternalComponent外包animate-in fade-in过渡动画

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 21:59:12 +08:00
gongzhiyongandClaude Sonnet 4.6 2430fd2174 fix(P1): ticket UUID mapping + sandbox/ticket/search fallback improvements
Deploy LangGraph Server to Azure Web App / build-and-deploy (push) Failing after 21s
Deploy LangGraph UI to Azure Static Web Apps / build-and-deploy (push) Failing after 42s
- Fix ticket_detail UUID resolution: use find() to match ticketNumber instead of tickets[0]
- Add sandbox fallback hint in coder tool-executor catch block
- Add ticket_list empty result friendly hint with suggestions
- Add google_search auto-supplement with Jina when results < 3
- Enhance enterprise tool-executor general catch with fallback_hint

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 21:57:56 +08:00
gongzhiyongandClaude Sonnet 4.6 979e900a17 feat(prompt): 4个Agent system prompt追加工具失败处理规范
Deploy LangGraph Server to Azure Web App / build-and-deploy (push) Has been cancelled
Deploy LangGraph UI to Azure Static Web Apps / build-and-deploy (push) Has been cancelled
在 enterprise/coder/searcher/writer 的 agent.ts 中,
为 SYSTEM_PROMPT 追加"工具失败处理规范"段落,
指导 LLM 在工具调用失败时给出中文友好提示和替代建议,
不暴露技术报错细节。

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 21:57:42 +08:00
gongzhiyongandClaude Sonnet 4.6 4ad169e891 fix(P0): Daytona sandbox use process/execute endpoint + add sourceType to writer doc_edit/translate
Deploy LangGraph Server to Azure Web App / build-and-deploy (push) Failing after 16s
Deploy LangGraph UI to Azure Static Web Apps / build-and-deploy (push) Failing after 51s
- Fix Daytona code execution endpoint from process/code-run (404) to process/execute
- Fix request body format to {command} with language-aware shell wrapping
- Add missing sourceType/confidence props to writer doc_edit and doc_translate ui.push

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 20:01:33 +08:00
gongzhiyongandClaude Sonnet 4.6 0e92444112 feat: prompt optimization — intent routing, source annotation, enterprise output template
Deploy LangGraph Server to Azure Web App / build-and-deploy (push) Failing after 13s
Deploy LangGraph UI to Azure Static Web Apps / build-and-deploy (push) Has been cancelled
- supervisor router: intent-based routing (no longer keyword-dependent)
- enterprise/searcher/writer/coder agents: source annotation [内部知识][工单数据][网络搜索][模型推断]
- enterprise agent: enterprise output template (结论→依据→建议→下一步)
- enterprise agent: cross-source synthesis prompt for multi-tool results
- writer agent: proactive enterprise closure actions (report generation hints)

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 20:00:21 +08:00
gongzhiyongandClaude Sonnet 4.6 8c5890d66a feat: Task#2 ActionBar+SourceBadge+状态语言统一+长消息分层
Deploy LangGraph Server to Azure Web App / build-and-deploy (push) Failing after 19s
Deploy LangGraph UI to Azure Static Web Apps / build-and-deploy (push) Failing after 43s
- 新增 ActionBar 组件:快速操作按钮,通过 soc:prefill-input 事件填充输入框
- 新增 SourceBadge 组件:数据来源标注(内部知识库/工单系统/外部搜索/代码执行)
- 4个 Gen-UI 卡片集成 ActionBar 和 SourceBadge
- main.tsx 添加 soc:prefill-input 事件监听
- ToolCallStatus 状态文案统一为中文(正在xxx.../已完成·xxx)
- MessageBubble 长消息(>800字)显示摘要+展开全文按钮

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 19:59:24 +08:00
gongzhiyongandClaude Sonnet 4.6 e16b4ce92e fix: P0/P1/P2 + sourceType/confidence + kb fallback + report_generate
Deploy LangGraph UI to Azure Static Web Apps / build-and-deploy (push) Has been cancelled
Deploy LangGraph Server to Azure Web App / build-and-deploy (push) Has been cancelled
- Daytona: fix /workspace→/sandbox + toolbox proxy exec endpoint
- KB Agent: timeout 15s→45s, exponential retry (3x, 1s/2s/4s)
- ticket_detail: auto-resolve TK-xxxx ticketNumber to UUID
- retry.ts: add exponential backoff support
- All ui.push(): add sourceType + confidence fields
- kb_search: fallback to google_search on failure with error card
- writer: add report_generate tool with structured Markdown template

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 19:59:13 +08:00
gongzhiyongandClaude Opus 4.6 b8fcc50d73 feat: optimize prompts — intent-based routing, source annotation, enterprise output format
Deploy LangGraph Server to Azure Web App / build-and-deploy (push) Failing after 27s
Deploy LangGraph UI to Azure Static Web Apps / build-and-deploy (push) Failing after 44s
- Supervisor router: rewrite to intent-based routing instead of tool-name matching
- Enterprise agent: add structured source annotation ([内部知识]/[工单数据]/[网络搜索]/[模型推断])
- Enterprise agent: add enterprise-style output format (结论/依据/建议) for responses >200 chars
- Enterprise agent: add multi-source synthesis guidelines for cross-tool analysis
- Writer agent: add enterprise document closure prompts (auto-suggest reports after queries)
- Supervisor index: update ALL_TOOL_DESCRIPTIONS to match intent-based approach

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-11 19:57:55 +08:00
gongzhiyongandClaude Opus 4.6 ba59259458 docs: 产品 Agent MD 写入 8 项优化方案评审结果
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 19:14:33 +08:00
gongzhiyongandClaude Opus 4.6 d6946be6c0 docs: 产品验收测试报告 — 97.2% 通过率,评分 8.0/10
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 14:45:02 +08:00
gongzhiyongandClaude Opus 4.6 a41f2fbf44 feat: P1 滚动到底部浮动按钮
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 14:44:14 +08:00
gongzhiyongandClaude Opus 4.6 dd70cadcc1 feat: P0 前端交互完善 + 测试报告更新
- ToolCallStatus 组件增强
- main.tsx P0 交互改进(textarea/光标/编辑消息)
- 更新测试报告:9/12 通过,3 个外部服务问题

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 14:42:56 +08:00
gongzhiyongandClaude Opus 4.6 86cfa317b6 feat: ChatGPT Enterprise 对标优化 — Prompt 重构 + 前端 P0 交互 + 错误处理
- 重构所有 Agent System Prompt,参考 ChatGPT 风格:自然对话、匹配用户沟通风格、避免翻译腔
- Router 路由规则结构化,新增 Decision Rules 和分组示例,提升路由准确率
- 前端 P0:textarea 多行输入 + Shift+Enter 换行、流式打字光标动画、编辑已发送消息
- 新增 ToolCallStatus 组件、process-attachment 文件处理节点、retry 重试工具
- 工具调用错误响应友好化(formatToolError 中文提示)
- Enterprise tool descriptions 增加使用场景说明
- 上下文截断提示改为中文
- 新增 soc-product-agent 产品经理 Agent 定义

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 14:35:45 +08:00
gongzhiyong 6400d85027 fix: use direct host IP http://192.168.30.30:2024 for LangGraph API
Deploy LangGraph Server to Azure Web App / build-and-deploy (push) Failing after 28s
Deploy LangGraph UI to Azure Static Web Apps / build-and-deploy (push) Failing after 37s
2026-04-11 13:36:37 +08:00
gongzhiyong 216650837a fix: use window.location.origin as fallback URL for Vite proxy in Docker
Deploy LangGraph Server to Azure Web App / build-and-deploy (push) Failing after 12s
Deploy LangGraph UI to Azure Static Web Apps / build-and-deploy (push) Failing after 51s
2026-04-11 12:49:26 +08:00
gongzhiyongandClaude Sonnet 4.6 a505e441ad feat: file upload + context compression + fix maxTokens
Deploy LangGraph Server to Azure Web App / build-and-deploy (push) Failing after 16s
Deploy LangGraph UI to Azure Static Web Apps / build-and-deploy (push) Failing after 49s
- Add file-service.ts: Azure Blob upload + PDF/Excel/image parsing
- Add truncate-messages.ts: context compression for long conversations
- Fix maxTokens: flash 500→2000, auto 2048→4096, pro 4096→8192
- Integrate truncateMessages in general-input and router nodes
- Add @azure/storage-blob, pdf-parse, xlsx dependencies

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-11 12:31:55 +08:00
gongzhiyong 9b5b98f675 feat: add FileUploadButton and FileAttachmentPreview components
Deploy LangGraph Server to Azure Web App / build-and-deploy (push) Failing after 20s
Deploy LangGraph UI to Azure Static Web Apps / build-and-deploy (push) Has been cancelled
2026-04-11 12:31:24 +08:00
gongzhiyong d878135443 fix: Vite proxy for Docker — frontend routes API through same-origin proxy to langgraph-dev:2024
Deploy LangGraph Server to Azure Web App / build-and-deploy (push) Failing after 12s
Deploy LangGraph UI to Azure Static Web Apps / build-and-deploy (push) Failing after 1m7s
2026-04-11 12:28:52 +08:00
gongzhiyongandClaude Opus 4.6 3eb70fec59 fix: coder agent must always call code_execute, never return plain text code
Deploy LangGraph Server to Azure Web App / build-and-deploy (push) Failing after 20s
Deploy LangGraph UI to Azure Static Web Apps / build-and-deploy (push) Failing after 39s
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 11:03:50 +08:00
gongzhiyongandClaude Opus 4.6 e4760ca66e fix: CanvasPanel returns null when no doc, no longer occupies space
Deploy LangGraph Server to Azure Web App / build-and-deploy (push) Failing after 23s
Deploy LangGraph UI to Azure Static Web Apps / build-and-deploy (push) Failing after 44s
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 02:24:11 +08:00
gongzhiyongandClaude Opus 4.6 8a5d1c0ea9 fix: router coder/writer distinction + writer must use doc_create tool
Deploy LangGraph Server to Azure Web App / build-and-deploy (push) Failing after 26s
Deploy LangGraph UI to Azure Static Web Apps / build-and-deploy (push) Failing after 42s
- Router prompt now clearly distinguishes "写代码" (execute code → coder)
  from "写文档" (create document → writer)
- Writer prompt strengthened to always use doc_create, never plain text

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 02:20:22 +08:00
gongzhiyongandClaude Opus 4.6 77e64d945e feat: Phase 2 - Deep Search, Code Interpreter, Writer agents + CanvasPanel
Deploy LangGraph Server to Azure Web App / build-and-deploy (push) Failing after 22s
Deploy LangGraph UI to Azure Static Web Apps / build-and-deploy (push) Failing after 43s
- Add searcher agent with Jina deep search + KB search tools
- Add coder agent with Daytona sandbox code execution
- Add writer agent with canvas document creation/editing tools
- Integrate all sub-agents into supervisor router
- Add CanvasPanel drawer UI component for document rendering
- Refactor enterprise tools into shared soc-client module

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 01:52:10 +08:00
gongzhiyongandClaude Sonnet 4.6 08add81409 feat: Phase 2 - CanvasPanel drawer + sidebar search & date groups
- Add CanvasPanel.tsx: right-side 480px drawer, renders markdown via
  MessageBubble or code via SyntaxHighlighter, with Copy/Download/Close
  header; listens to window 'open-canvas' CustomEvent dispatched by Gen-UI cards
- Update ThreadSidebar.tsx: add search input below new-chat button with
  live filtering; group filtered threads by date (今天/昨天/本周/更早)
  with section headings; internal state only, Props interface unchanged
- Update main.tsx: import CanvasPanel, add canvasDoc state, register
  open-canvas event listener on mount, render CanvasPanel alongside
  the main chat column inside a flex-row wrapper

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-11 01:48:25 +08:00
gongzhiyongandClaude Opus 4.6 251c6586f4 feat: Phase 1 — ReAct loop + Markdown rendering + Docker deployment
Deploy LangGraph Server to Azure Web App / build-and-deploy (push) Failing after 26s
Deploy LangGraph UI to Azure Static Web Apps / build-and-deploy (push) Failing after 1m52s
Backend:
- Enterprise Agent refactored from single-round to ReAct multi-turn loop
- New agent.ts (LLM decision node) + tool-executor.ts (tool execution + Gen-UI)
- tool-defs.ts extracted for shared tool schemas
- MAX_ITERATIONS=6 safeguard against infinite loops

Frontend:
- MessageBubble: Markdown + code highlighting + LaTeX + tables
- ThemeToggle: light/dark/system theme cycling
- chart-result Gen-UI card: recharts bar/line/pie/area charts

Infrastructure:
- Docker Compose (lightweight): only LangGraph + Frontend, Azure cloud for PG/Redis/Blob
- Dockerfiles for dev (hot reload) and prod
- Makefile with dev/prod/down/logs commands
- Updated CLAUDE.md and agent definitions for LangGraph.js architecture

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 01:29:56 +08:00
gongzhiyongandClaude Sonnet 4.6 3263b15554 perf(deploy): pre-install node_modules in CI and enable always-on to fix slow cold start
- CI now runs pnpm install and includes node_modules in the zip artifact
- startup.sh simplified: removed pnpm install fallback, uses direct bin path instead of npx
- Azure Web App always-on enabled to prevent cold starts

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 15:55:38 +08:00
gongzhiyongandClaude Sonnet 4.6 370726c811 fix(deploy): use Azure-injected PORT instead of hardcoded 2024
- startup.sh now reads ${PORT:-8080} so Azure App Service can inject
  the correct port via its PORT environment variable
- Removed obsolete deploy-backend.yml and deploy-frontend.yml workflows
  (old Python backend and Next.js frontend pipelines)
- Removed WEBSITES_PORT=2024 from soc-langgraph Azure config

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 15:49:56 +08:00
gongzhiyongandClaude Opus 4.6 b30cb0e758 fix: add .npmrc and CUSTOM_BUILD_COMMAND to resolve Oryx npm peer dep conflict
Oryx runs `npm install` which fails on peer dependency conflicts between
@assistant-ui/react@^0.8.0 and @assistant-ui/react-syntax-highlighter@^0.7.2.
Adding .npmrc with legacy-peer-deps=true and CUSTOM_BUILD_COMMAND for pnpm.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 13:36:30 +08:00
gongzhiyongandClaude Opus 4.6 45685e8b4a fix: resolve Web App startup timeout — exclude node_modules from zip, add startup.sh, increase timeout to 600s
- Remove node_modules from deploy zip (302MB -> ~1MB), let Oryx build on Azure
- Add startup.sh: creates .env/.langgraph_api prereqs, installs pnpm, runs langgraphjs dev
- Azure config: WEBSITES_CONTAINER_START_TIME_LIMIT=600, SCM_DO_BUILD_DURING_DEPLOYMENT=true, ENABLE_ORYX_BUILD=true, PRE_BUILD_COMMAND="npm install -g pnpm@10"
- Delete auto-generated main_soc-langgraph.yml (conflicts with deploy-langgraph.yml)
- Enable Always On to avoid cold starts

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 06:17:47 +08:00
Fasthei 092c6fe600 Add or update the Azure App Service build and deployment workflow config 2026-04-10 06:12:14 +08:00
gongzhiyongandClaude Opus 4.6 32f83d714e refactor: migrate LangGraph server from Container App to Azure Web App
## Changes
- Delete Dockerfile and .dockerignore (no longer needed)
- Rewrite deploy-langgraph.yml: zip deploy to Web App (not ACR build)
- Update deploy-langgraph-ui.yml: VITE_LANGGRAPH_URL → soc-langgraph.azurewebsites.net

## Azure Resources
- CREATED: soc-langgraph Web App (Node.js 20, B1 Linux, southeastasia)
- CREATED: soc-langgraph-plan (App Service Plan, B1, southeastasia)
- DELETED: soc-langgraph Container App
- DELETED: soc-cae Container App Environment
- DELETED: socsocacr ACR
- All env vars migrated to Web App
- Startup: npx langgraphjs dev --host 0.0.0.0 --port 2024 --no-browser
- WEBSITES_PORT=2024

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 05:47:32 +08:00
gongzhiyong 4a485a9c5b fix(dockerfile): pre-create .langgraph_api to prevent tsx watch restart loop 2026-04-10 05:23:07 +08:00
gongzhiyong 3d35ca43be fix(dockerfile): create empty .env file — langgraphjs dev requires it to exist 2026-04-10 05:05:17 +08:00
gongzhiyong df2b72c53c fix(dockerfile): explicit port binding for Container App health probe 2026-04-10 04:54:47 +08:00
gongzhiyong f8a73e461c fix(ci): point app_location directly to langgraph/dist for SWA upload 2026-04-10 04:44:57 +08:00
gongzhiyong 14a7e79792 fix(ci): use pnpm vite build then SWA upload from repo root with langgraph/dist 2026-04-10 04:43:02 +08:00