Skip to content

Commit 6da73ac

Browse files
committed
fix(mantis): wait for telegram desktop bootstrap
1 parent cc835b6 commit 6da73ac

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,10 @@ than Telegram-visible behavior`. Use this manifest shape and do not create
119119
`$OPENCLAW_TELEGRAM_USER_DRIVER_SCRIPT`, the workflow-provided `crabbox`
120120
binary, and the workflow-provided local `ffmpeg`/`ffprobe`; do not generate,
121121
install, or patch replacement proof tooling during the run. Use the same
122-
proof idea for baseline and candidate. You may iterate and rerun if the
123-
visual result is not convincing.
122+
proof idea for baseline and candidate. Let `start` return or fail on its
123+
own; do not kill it while Crabbox is still waiting for bootstrap. Use a long
124+
command timeout for `start`, `send`, `view`, and `finish`. You may iterate
125+
and rerun if the visual result is not convincing.
124126
7. Open Telegram Desktop directly to the newest relevant message with the
125127
runner `view` command before finishing each recording. Keep the chat scrolled
126128
to the bottom so new proof messages appear in-frame.

test/scripts/mantis-telegram-desktop-proof-workflow.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,10 @@ describe("Mantis Telegram Desktop proof workflow", () => {
283283
const prompt = readFileSync(PROMPT, "utf8");
284284
expect(prompt).toContain("$OPENCLAW_TELEGRAM_USER_PROOF_CMD");
285285
expect(prompt).toContain("do not run\n `pnpm qa:telegram-user:crabbox` directly");
286+
expect(prompt).toContain("Let `start` return or fail on its\n own");
287+
expect(prompt).toContain(
288+
"Use a long\n command timeout for `start`, `send`, `view`, and `finish`",
289+
);
286290
});
287291

288292
it("runs the Mantis Codex agent in fast medium-effort mode", () => {

0 commit comments

Comments
 (0)