Skip to content

Commit 98cc441

Browse files
authored
Merge branch 'main' into fix/xai-grok-oauth-client-version
2 parents 50bca19 + 91b1f96 commit 98cc441

600 files changed

Lines changed: 27969 additions & 12028 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.agents/skills/telegram-crabbox-e2e-proof/SKILL.md‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,23 @@ proof_cmd="${OPENCLAW_TELEGRAM_USER_PROOF_CMD:-openclaw-telegram-user-crabbox-pr
4747
--output-dir .artifacts/qa-e2e/telegram-user-crabbox/pr-review
4848
```
4949

50+
When the scenario needs Telegram link previews explicitly enabled or disabled,
51+
set the SUT config before Gateway startup:
52+
53+
```bash
54+
"$proof_cmd" start \
55+
--tdlib-url http://artifacts.openclaw.ai/tdlib-v1.8.0-linux-x64.tgz \
56+
--link-preview false \
57+
--mock-response-chunk-delay-ms 1200 \
58+
--mock-response-file .artifacts/qa-e2e/telegram-user-crabbox/reply.txt \
59+
--output-dir .artifacts/qa-e2e/telegram-user-crabbox/pr-review
60+
```
61+
62+
Do not edit the generated config or restart the held-session Gateway to apply
63+
this setting; that bypasses the runner's lifecycle and cleanup ownership.
64+
The chunk delay splits the configured response into two streaming deltas so a
65+
recording can show the initial preview and a later in-place edit.
66+
5067
The runner defaults to `--class standard`, `--record-fps 24`,
5168
`--preview-fps 24`, and `--preview-width 1920`. Keep those defaults unless the
5269
proof needs something else.

‎.github/codex/prompts/mantis-telegram-desktop-proof.md‎

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,16 @@ than Telegram-visible behavior`. Use this manifest shape and do not create
111111
Reopen that same Telegram button after its ticket expires and capture the
112112
expired state. Do not substitute Control UI, transcript, curl, or a newly
113113
minted button for any part of that path.
114-
5. Create detached worktrees under
114+
5. Use the workflow-prepared detached worktrees under
115115
`.artifacts/qa-e2e/mantis/telegram-desktop-proof-worktrees/baseline` and
116-
`.artifacts/qa-e2e/mantis/telegram-desktop-proof-worktrees/candidate`, then
117-
install and build each worktree with the repo's normal `pnpm` commands.
116+
`.artifacts/qa-e2e/mantis/telegram-desktop-proof-worktrees/candidate`.
117+
Verify their `HEAD`s match `BASELINE_SHA` and `CANDIDATE_SHA`; do not create,
118+
install, rebuild, or replace them. The workflow prepared both with a pinned
119+
Node/pnpm toolchain before agent secrets were available.
118120
If `MANTIS_CANDIDATE_TRUST` is `fork-pr-head`, treat the
119121
candidate worktree as untrusted fork code: do not pass GitHub, OpenAI,
120-
Crabbox, Convex, or other workflow secrets into candidate install, build, or
121-
runtime commands. The candidate SUT may receive only the proof runner's
122+
Crabbox, Convex, or other workflow secrets into candidate runtime commands.
123+
The candidate SUT may receive only the proof runner's
122124
short-lived Telegram bot token, generated local config/state paths, and mock
123125
model key needed for this isolated proof.
124126
6. In each worktree, run the real-user Telegram Crabbox proof flow from the
@@ -133,6 +135,14 @@ than Telegram-visible behavior`. Use this manifest shape and do not create
133135
own; do not kill it while Crabbox is still waiting for bootstrap. Use a long
134136
command timeout for `start`, `send`, `view`, and `finish`. You may iterate
135137
and rerun if the visual result is not convincing.
138+
When the requested scenario needs `channels.telegram.linkPreview: false`,
139+
pass `--link-preview false` to `start`. The runner injects that setting into
140+
the isolated SUT config before Gateway startup. Do not edit the generated
141+
config or restart the Gateway to apply it.
142+
When the proof must show an in-place streamed edit, also pass
143+
`--mock-response-chunk-delay-ms 1200` and use a mock response long enough
144+
for the first chunk to clear the preview debounce. Capture both the initial
145+
partial reply and the later edit before finishing.
136146
7. Open Telegram Desktop directly to the newest relevant message with the
137147
runner `view` command before finishing each recording. Keep the chat scrolled
138148
to the bottom so new proof messages appear in-frame.

‎.github/workflows/mantis-telegram-desktop-proof.yml‎

Lines changed: 103 additions & 157 deletions
Large diffs are not rendered by default.

‎AGENTS.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Skills own workflows; root owns hard policy and routing.
115115

116116
## Commands
117117

118-
- Runtime: Node 22.22.3+, 24.15+, or 25.9+; Node 24 recommended. Keep Node + Bun paths working.
118+
- Runtime: Node 22.22.3+, 24.15+, or 25.9+; Node 26 recommended (CI and release workflows still pin Node 24). Keep Node + Bun paths working.
119119
- Package manager/runtime: repo defaults only. No swaps without approval.
120120
- Install: `pnpm install` (keep Bun lock/patches aligned if touched). Agent dependency installation for tests/builds defaults to the selected remote box; do not reconcile a local Codex worktree just to run validation.
121121
- CLI: `pnpm openclaw ...` or `pnpm dev`; build: `pnpm build`.

0 commit comments

Comments
 (0)