xmanrui
d890a24f13
fix: actually send alert messages via Gateway API
2026-02-23 19:27:00 +08:00
xmanrui
a03b676174
feat: add alert check API for simulating alerts
2026-02-23 19:25:08 +08:00
xmanrui
d05949fd3c
feat: add alert center with configurable rules
2026-02-23 19:20:49 +08:00
xmanrui
cb9390eeaf
fix: use consistent formatTokens function for unit display
2026-02-23 18:21:16 +08:00
xmanrui
fa58f1d801
fix: calculate token usage from jsonl files instead of sessions.json
2026-02-23 18:17:42 +08:00
xmanrui
9aa643a596
fix: persist session test results across page navigation
2026-02-23 18:02:42 +08:00
xmanrui
5185741744
fix: 保持模型测试状态不随页面切换丢失 (localStorage)
2026-02-23 17:51:22 +08:00
xmanrui
811223edbe
fix: 保持测试状态不随页面切换丢失 (localStorage)
2026-02-23 17:48:07 +08:00
xmanrui
fa65e4d357
fix: only show agents with actual session in group chat
2026-02-23 15:23:34 +08:00
xmanrui
322e814a89
fix: only change page title, keep sidebar unchanged
2026-02-23 15:16:22 +08:00
xmanrui
0239627091
fix: change nav.agents text to 'OpenClaw 机器人'
2026-02-23 15:14:15 +08:00
xmanrui
7915a913c9
feat: add dark/light theme toggle
...
- Add light theme CSS variables in globals.css
- Create ThemeProvider with localStorage persistence (lib/theme.tsx)
- Add ThemeSwitcher button (☀️ /🌙 ) to sidebar
- Wrap app with ThemeProvider in providers.tsx
2026-02-23 07:09:45 +08:00
xmanrui
fcfdf6b587
fix: Phase 2 uses feishu DM session again, fallback to main session
2026-02-23 01:52:44 +08:00
xmanrui
4430c9c7ff
fix: revert to single open_id lookup, Phase 2 uses main session
...
- Reverted getFeishuDmUsers back to getFeishuDmUser (single best match)
- Phase 2 uses agent:id:main session to avoid polluting DM session updatedAt
- Fixed flash sessions.json: reset cross-app open_id updatedAt to 0
2026-02-23 01:49:54 +08:00
xmanrui
84cf88abdb
fix: try all open_ids when sending DM to handle cross-app errors
...
- getFeishuDmUsers returns all open_ids sorted by updatedAt
- testFeishu tries each open_id, skips cross-app errors (99992361)
- Fixes flash bot DM test failure
2026-02-23 01:44:54 +08:00
xmanrui
79bd1f2504
ui: remove app id from agent cards
2026-02-23 01:35:02 +08:00
xmanrui
6f3e960f39
fix: always show Agent ID field even when name equals id
2026-02-23 01:32:50 +08:00
xmanrui
e4b7b3542e
update README.md
2026-02-22 13:01:37 +08:00
xmanrui
1482c81716
ui: remove ❓ hint icon from sessions page
2026-02-22 12:58:51 +08:00
xmanrui
ba0997ad9c
ui: language switcher changed to dropdown, default zh
2026-02-22 12:57:30 +08:00
xmanrui
c1ed5e4e99
docs: add models and sessions preview images to README
2026-02-22 12:54:58 +08:00
xmanrui
b15b335c40
docs: update README image to dashboard-preview.png
2026-02-22 12:45:16 +08:00
xmanrui
a16734ee45
i18n: rename nav.agents English to Bots
2026-02-22 12:40:15 +08:00
xmanrui
c5af40c926
ui: rename Test Session button to Test Agent
2026-02-22 12:34:58 +08:00
xmanrui
456f443b68
fix: increase agent session test timeout to 100s
2026-02-22 12:33:01 +08:00
xmanrui
2bdfb30c2c
ui: move session test result to after Agent ID field
2026-02-22 12:29:16 +08:00
xmanrui
b9e025cb45
feat: add Test Sessions button to test all agent main sessions
...
- New /api/test-sessions endpoint: tests all agents via Gateway chatCompletions
- New button on agents page: 🔌 Test Sessions
- Session test result shown next to agent name (--/⏳ /✅ /❌ )
- i18n support for zh-CN and en
2026-02-22 12:26:49 +08:00
xmanrui
48a15f651c
ui: agentId value style matches appId (accent color, code tag)
2026-02-22 12:19:55 +08:00
xmanrui
a4edc1a375
ui: move agentId to card body, same layout style as model field
2026-02-22 12:17:42 +08:00
xmanrui
b3031b1335
fix: test-session uses Gateway chatCompletions API with session key
...
- Messages now route to the correct session (feishu DM, discord, etc.)
- Replace CLI execSync with HTTP fetch to Gateway /v1/chat/completions
- Uses x-openclaw-session-key header for session routing
- 30s timeout to handle busy agents
2026-02-22 11:57:42 +08:00
xmanrui
812c7b7e85
fix: reduce Phase 2 chatCompletions timeout to 30s
...
- Prevents long hangs when an agent is busy (e.g. processing current conversation)
- Busy agents will show as timeout error instead of blocking all subsequent tests
2026-02-22 11:45:05 +08:00
xmanrui
a1042a8c52
fix: use 127.0.0.1 instead of localhost for Gateway API calls
...
- Node.js fetch may resolve localhost to IPv6 ::1
- Gateway binds to 127.0.0.1 (IPv4 loopback only)
2026-02-22 11:42:49 +08:00
xmanrui
db37415259
feat: Phase 2 uses Gateway chatCompletions API with x-openclaw-session-key
...
- Messages now route to feishu DM sessions via session key header
- Replace CLI execSync with HTTP fetch to Gateway /v1/chat/completions
- Remove child_process dependency from test-platforms
2026-02-22 11:33:41 +08:00
xmanrui
18b7d7286a
ui: show test hint as hover tooltip on ❓ icon
2026-02-22 11:18:56 +08:00
xmanrui
d2be7021ca
ui: add hint that session tests don't send messages to platform chats
...
- Add sessions.testHint i18n text (zh-CN + en)
- Show hint next to 'Test All' button on sessions page
2026-02-22 11:16:38 +08:00
xmanrui
6d0fb85408
simplify: Phase 2 agent test uses plain CLI without deliver/session params
...
- Remove --deliver, --channel, --reply-account, --reply-to flags
- Remove --session-id (feishu DM session routing not possible via CLI)
- Phase 1: feishu API DM (platform connectivity)
- Phase 2: simple CLI agent health check (agent responsiveness)
2026-02-22 11:06:36 +08:00
xmanrui
550c2c3228
fix: quote CLI args with spaces/colons in test-platforms
...
- Message and session-id args need shell quoting
- Fixes 'too many arguments' error from openclaw agent CLI
2026-02-22 10:25:33 +08:00
xmanrui
bfea638a8c
fix: agent health check delivers reply to feishu DM via --deliver flag
...
- Pass --deliver --channel feishu --reply-account --reply-to to CLI
- Agent reply now appears in feishu DM, verifying full e2e chain
- Fallback to default session if no feishu DM session found
2026-02-22 10:20:57 +08:00
xmanrui
a9231b30c8
feat: agent health check now uses feishu DM session for full e2e verification
...
- testAgentSession accepts optional sessionKey parameter
- Builds feishu DM session key (agent:{id}:feishu:direct:{open_id}) per agent
- Health check message goes through feishu DM session, verifying complete chain
2026-02-22 10:11:53 +08:00
xmanrui
6410a44369
fix: flatten test-platforms response for frontend compatibility
...
- Return flat array with platform='agent' for session health checks
- Frontend now shows agent response status below platform badges
- Add detail field to PlatformTestResult interface
2026-02-22 09:59:05 +08:00
xmanrui
da026f6ea0
feat: add agent session health check to test-platforms
...
- Phase 1: Platform API test (feishu DM / discord DM) - parallel
- Phase 2: Agent session test via openclaw CLI health check - sequential
- Returns combined result: platform connectivity + agent responsiveness
- Both must pass for full end-to-end verification
2026-02-22 09:39:40 +08:00
xmanrui
0a3a67c189
fix: test-platforms uses real Feishu/Discord API instead of CLI injection
...
- Feishu: get tenant_access_token → verify bot info → send real DM
- Fix open_id cross-app issue: use per-agent open_id from sessions.json
- Discord: verify bot token via /users/@me → send real DM
- Remove CLI execSync dependency, use direct API calls with 15s timeout
- Deduplicate: same feishu account tested only once
2026-02-22 09:26:00 +08:00
xmanrui
f3967992e7
feat: 新增平台连通性测试按钮,每个平台标签右侧显示测试结果
2026-02-21 16:25:24 +08:00
xmanrui
e461eb3abb
fix: 机器人卡片平台选项改为上下排列
2026-02-21 15:25:55 +08:00
xmanrui
e80b1a4f30
fix: 模型测试超时时间改为100秒
2026-02-21 15:20:02 +08:00
xmanrui
d377028705
fix: 按钮文字改为「测试绑定的模型」(i18n)
2026-02-21 14:32:25 +08:00
xmanrui
c338a3ef45
refactor: 机器人卡片测试结果改为模型标签右侧内联显示( ✅ / ❌ /--)
2026-02-21 14:31:33 +08:00
xmanrui
cc851933ca
feat: 会话列表页新增「测试全部」按钮,支持一键并发测试所有会话
2026-02-21 13:44:00 +08:00
xmanrui
7a5e5fdb63
feat: 优化 sessions 和 stats 页面交互
...
- sessions/stats 页面无 agent 参数时显示 agent 选择列表
- 为每个会话显示上下文使用量进度条
- 修复测试功能:改用明确回复的消息,避免 NO_REPLY 过滤
2026-02-21 02:57:51 +08:00
xmanrui
42dae42d04
feat: collapsible sidebar, language switcher in header, test-agents API
...
- Add collapsible sidebar with smooth transition (expanded/collapsed)
- Move language switcher to sidebar header (top-left)
- Remove duplicate LanguageSwitcher from all sub-pages
- Add /api/test-agents endpoint for testing agent model connectivity
- Use plain CSS for sidebar layout (fix Tailwind v4 flex issues)
2026-02-21 01:25:29 +08:00