feat: streamline mobile oneliner runtime

This commit is contained in:
kris
2026-03-30 12:02:14 +08:00
parent cb3a4d2755
commit 1d2bbdf201
2 changed files with 30 additions and 0 deletions

View File

@@ -594,6 +594,14 @@ test("oneliner runtime shows grouped run health summary above the current run ca
assert.match(runtime, /safeArray\(runs\)\.filter\(\(item\) => item\.run_status === "needs_confirmation"\)\.length/);
});
test("oneliner runtime exposes a compact mobile task strip for the current run", () => {
const runtime = extractBetween(APP, "function renderOneLinerRunsHtml()", "function renderOneLinerMessagesHtml()");
assert.match(runtime, /mobile-only compact-summary-row/);
assert.match(runtime, /mobile-only mobile-flow-focus-card/);
assert.match(runtime, /当前运行/);
assert.match(runtime, /继续这个任务/);
});
test("opening a main agent run result keeps that run selected in the floating runtime", () => {
const resultAction = extractBetween(APP, "function openCurrentOneLinerRunResultAction(runId = \"\")", "function openConfirmOneLinerRunAction(runId = \"\")");
assert.match(resultAction, /appState\.selectedOnelinerRunId = currentRun\.id/);