Repository navigation
test(e2e-browser): 飞书真机新增 core-clis 跑道,覆盖 6 个公开 CLI - #2562
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
deepcoldy
requested review from
47seek,
LucasIcarus,
xiaoxueSunn and
xiongz-c
as code owners
October 29, 2026 23:40
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…Gemini、Grok mock LLM 按 CLI 实际声明的 shell 工具名与必填参数发调用,新增 Gemini generateContent 协议; run-e2e.ts 按 cliId 给公开 CLI 注入 mock 配置(OpenCode 原先的 OPENAI_BASE_URL 接法走 Responses API 永远不调工具); workflow 安装钉版本的 CLI 并写好 Pi / Oh My Pi / Grok / Gemini 配置,新 Bot 走独立 secret FEISHU_E2E_EXTRA_BOTS_JSON 合并。 Co-Authored-By: Claude Opus 5.5 <[email protected]>
… 安装后先预热 视觉判断会把引用了同一个 ACK 的提问当成回复:Gemini 每轮都 exit 42 仍判通过。 CI=true 让 Gemini CLI 走无头模式,从 stdin 读不到输入就 exit 42。 OpenCode 首次启动下载模型目录、装插件期间输入的首条消息会丢(submit_unconfirmed)。 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…mini CLI 进入无头模式 Co-Authored-By: Claude Opus 5.5 <[email protected]>
deepcoldy
force-pushed
the
test/feishu-live-more-clis
branch
from
October 30, 2026 00:42
12665f8 to
7930106
Compare
Owner
Author
|
已合入,感谢。 测试/CI-only 改动,未触碰
另:飞书页面「聊天列表加载完成」探针用 bot 名子串匹配,短名 合后 master 的 Midscene 真机首跑即六个 CLI 的最终闭环验证。 |
This was referenced Oct 30, 2026
deepcoldy
pushed a commit
to uestcwangci/botmux
that referenced
this pull request
Oct 30, 2026
…ity-recovery-2473-final 四次同步 master(0345cc5f1..eb43116,14 提交,含 deepcoldy#2514/deepcoldy#2534/deepcoldy#2535/deepcoldy#2541/ deepcoldy#2467/deepcoldy#2550/deepcoldy#2553/deepcoldy#2554/deepcoldy#2557/deepcoldy#2561/deepcoldy#2562 等)。与本 PR 仅 worker-pool.ts / worker.ts 文件交集,git 自动合并干净、无冲突标记;PR 关键接线(codexApp TurnFailureCode 四处、!turn.error 守卫、pool 恢复落账、worker 签名 final 失败字段、Pi boot 20s 预算)逐处 grep 仍在原位。合并树 build 过、 codex 集成/容量/engine/deployment/schedule 共 276 项 vitest 绿、 容量+Pi argv 46 项 bun 绿。 Co-Authored-By: Claude Code <[email protected]>
|
@deepcoldy 合入 master 后的 Midscene E2E 失败:Feishu live Midscene 失败。 这次运行覆盖 e93ebf9…9b5544155(12 个提交),同批合入的还有 #2514 #2558 #2537 #2570 #2522 #2552 #2580 #2577 #2547 #2563 #2540,失败不一定由本 PR 引起。
|
This was referenced Oct 30, 2026
This was referenced Oct 30, 2026
This was referenced Oct 30, 2026
|
🚀 Released in v3.56.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改了什么
新增飞书真机跑道 core-clis:OpenCode、Pi、Oh My Pi(
OhMyPi)、Kimi、Gemini、Grok 各自在私聊里跑基础流程(新话题 → 流式卡片 → ACK 回复 → 展开输出)。CI 上全部对接 mock LLM,不用真实模型。test/helpers/mock-llm-server/)shell-tool.ts:按 CLI 实际声明的 shell 工具名与必填参数发调用。名字各不相同:Claude/KimiBash、Pi/OpenCode/OMPbash、Grokrun_terminal_command、Geminirun_shell_command。Grok 还要求必填description,缺了会静默不执行。只声明了非 shell 工具的请求(标题生成)改回纯文本。gemini-sse.ts:新增 GeministreamGenerateContent/generateContent协议,含路由分类器的 JSON 判定。scripts/run-e2e.tsmockCliEnv:按 cliId 注入 mock 配置。OPENAI_BASE_URL,会选内置 openai provider 走 Responses API,永远不调工具,还会死循环。改成OPENCODE_CONFIG_CONTENT自定义 provider。KIMI_MODEL_*,并关掉自动更新。新版本会在下次启动时询问是否信任目录。GOOGLE_GEMINI_BASE_URL。另外 Gemini CLI 会从两个地方认出 GitHub runner,都要处理:CI或GITHUB_ACTIONS为"true"时进入无头模式,每轮 exit 42,所以设为 false;GITHUB_SHA时,它的 shell 工具会剥掉白名单以外的所有变量,BOTMUX_*也在内,botmux send就发不出回复,所以置空。FEISHU_E2E_EXTRA_BOTS_JSON,与原FEISHU_E2E_BOTS_JSON按larkAppId合并,原 secret 不动。aiWaitFor之后再用 DOM 确认页面上有一个带 ACK、但不是提问原文的文本节点(waitForReplyMarker)。视觉判定曾把引用同一串 ACK 的提问当成回复:Gemini 每轮都 exit 42,用例仍判通过。full-bots,CI 上没装。飞书侧 6 个应用已在 Botmux 测试租户建好并发版,名字就是 CLI 名,不带
[Botmux]。影响面
只动测试、mock 与 CI,不动
src/。full-bots去掉了 OpenCode(移到 core-clis)。验证
bunx vitest run test/mock-llm-server.test.ts test/midscene-suite.test.ts test/midscene-lanes.test.ts test/midscene-e2e-workflow.test.ts test/test-hygiene.test.ts通过;bun run test:midscene:typecheck、test:midscene:nodes通过。description、只有标题工具时回文本、Claude 选Bash而不选BashOutput、OpenAI-chat 用 CLI 声明的工具名、Gemini 两轮加路由分类器。botmux收到了send --mention-back 'ACK-…'。CI=true时 TUI 打出No input provided via stdin后 exit 42,设为 false 后正常。判定条件取自 Gemini CLI 源码isHeadlessMode(CI或GITHUB_ACTIONS为"true")。GITHUB_SHA=abc123时,shell 里BOTMUX_PROBE=missing;置空后为present。对应源码sanitizeEnvironment的 strict 模式。feishu_cases=core-clis[,core-sandbox]):GITHUB_ACTIONS)。GITHUB_SHA让 shell 工具剥掉了BOTMUX_*,已在 47fbfb4 修复。botmux 侧顺带发现 #2551:CLI 每收到消息就退出时,崩溃熔断会被
prompt_ready清零,结果是无限重启并重投同一条消息。🤖 Generated with Claude Code