Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
41fec7e
Unify the chat workbench and application shell
Zhong-Chenchen Nov 17, 2026
89c1878
Keep standalone chat handoff compatibility
Zhong-Chenchen Nov 17, 2026
ff780ac
Fix acceptance tests for the unified entry
Zhong-Chenchen Nov 17, 2026
1aa161e
Preserve chat reference names in English mode
Zhong-Chenchen Nov 17, 2026
d4c704d
Test requirement handoff through the application interface
Zhong-Chenchen Nov 17, 2026
c427d50
Merge main into the unified entry workbench
Zhong-Chenchen Nov 25, 2026
f4c7113
Merge remote-tracking branch 'origin/main' into pr-990-fix
Zhong-Chenchen Nov 25, 2026
84f4a8a
Merge remote-tracking branch 'origin/main' into pr-990-fix
Zhong-Chenchen Nov 26, 2026
7a9d029
fix(chat): keep the unified workbench CSS in one file
Zhong-Chenchen Nov 26, 2026
d9a0b8f
fix(chat): keep reference names untranslated in the remove label
Zhong-Chenchen Nov 26, 2026
f32362e
Merge upstream main into the unified workbench
Zhong-Chenchen Nov 26, 2026
0debf2b
Seed issue translation tests without booting the shell
Zhong-Chenchen Nov 26, 2026
0a208c1
Merge upstream main into the unified workbench
Zhong-Chenchen Nov 26, 2026
28075bf
Merge remote-tracking branch 'origin/main' into HEAD
Zhong-Chenchen Nov 26, 2026
36c4cc6
Merge remote-tracking branch 'origin/main' into Zhong-Chenchen/fix-990
Zhong-Chenchen Nov 26, 2026
6f4c725
Fix unified workbench startup and shell regressions
Zhong-Chenchen Nov 26, 2026
6ebaffe
Merge remote-tracking branch 'origin/main' into Zhong-Chenchen/fix-990
Zhong-Chenchen Nov 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ jobs:
working-directory: e2e
- run: bash ../scripts/install-playwright-deps.sh npx playwright
working-directory: e2e
- name: Build workbench assets from this checkout
run: |
npm --prefix chatbot ci --no-audit --no-fund
npm --prefix webtest ci --no-audit --no-fund
node -e 'const a = require("./e2e/node_modules/playwright-core/package.json").version, b = require("./chatbot/node_modules/playwright-core/package.json").version; if (a !== b) throw new Error(`Browser job requires matching Playwright versions, got ${a} and ${b}`)'
npm --prefix chatbot run build
# The e2e LOOPs and the runner the suite starts use the native e2e sandbox,
# which is bwrap on Linux.
- name: Let bubblewrap create user namespaces
Expand Down Expand Up @@ -118,6 +124,8 @@ jobs:
done
cat /tmp/loopforge.log
exit 1
- name: Test the unified entry against the head build
run: LOOPFORGE_BROWSER_BASE=http://127.0.0.1:8090 node --test chatbot/browser/unified-entry.test.mjs
- name: Provision account without model credentials
run: |
python3 -c 'import pathlib,secrets; p=pathlib.Path(".local/no-key-password"); p.write_text(secrets.token_urlsafe(20)); p.chmod(0o600)'
Expand Down
58 changes: 58 additions & 0 deletions chatbot/browser/live-deepseek.test.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
// Opt-in real-provider acceptance. Start TestWorkbenchBrowserServer with
// LOOPFORGE_BROWSER_DEEPSEEK_KEY; this test never reads or stores the key.
import { test } from 'node:test';
import assert from 'node:assert/strict';
import { chromium } from '@playwright/test';

const base = process.env.LOOPFORGE_BROWSER_TEST_URL || 'http://127.0.0.1:18089';
test('DeepSeek reply survives navigation and reload in the unified workbench', { timeout: 300_000 }, async () => {
const browser = await chromium.launch({ channel: 'chromium', headless: true, args: ['--no-sandbox'] });
try {
const page = await browser.newPage({ viewport: { width: 1440, height: 900 } });
const errors = [];
page.on('pageerror', error => errors.push(error.message));
await page.goto(`${base}/login.html`);
await page.locator('[name="login"]').fill('browser-test');
await page.locator('[name="password"]').fill('disposable-browser-password');
await page.locator('#loginSubmit').click();
await page.waitForURL(url => url.pathname === '/');
const root = page.locator('#chatRoot');
const input = root.locator('.composer-column textarea');
await input.waitFor({ state: 'visible', timeout: 30_000 });
await root.getByRole('button', { name: 'CLI', exact: true }).click();
await root.locator('.permission-menu [role="menuitemradio"]').filter({ hasText: 'DeepSeek Harness' }).click();
await root.getByRole('button', { name: '选择模型', exact: true }).click();
const model = root.locator('.grasp-model-menu [role="menuitemradio"]').filter({ hasText: /deepseek.*flash/i }).first();
await model.waitFor({ state: 'visible', timeout: 30_000 });
await model.click();
const marker = `LIVE-ISSUE118-${Date.now()}`;
await input.fill(`这是只读测试。请只回复 ${marker},不要访问、修改或创建文件和平台对象。`);
const started = page.waitForResponse(response => new URL(response.url()).pathname === '/api/assistant/generations' && response.request().method() === 'POST');
await root.locator('.send-button').click();
const response = await started;
assert.equal(response.status(), 202, `generation returned HTTP ${response.status()}`);
const { sessionId } = await response.json();
assert.ok(sessionId);
await page.evaluate(() => window.loopforgePlatform.navigate('settings'));
await page.locator('#settingsView.active').waitFor();
await page.evaluate(() => { location.hash = '#/collaboration'; });
await input.waitFor({ state: 'visible' });
const deadline = Date.now() + 240_000;
let generation;
while (Date.now() < deadline) {
const snapshot = await page.request.get(`${base}/api/assistant/sessions/${encodeURIComponent(sessionId)}/generation`);
assert.equal(snapshot.status(), 200);
generation = await snapshot.json();
if (generation.status !== 'running') break;
await page.waitForTimeout(1000);
}
assert.equal(generation?.status, 'completed', JSON.stringify({status:generation?.status, error:generation?.error, failure:generation?.failure}));
await root.locator('.message.assistant').last().getByText(marker, { exact: false }).waitFor({ timeout: 30_000 });
await page.reload();
await root.locator('.message.assistant').last().getByText(marker, { exact: false }).waitFor({ timeout: 30_000 });
const saved = await page.request.get(`${base}/api/assistant/sessions/${encodeURIComponent(sessionId)}`);
assert.ok(saved.ok());
assert.ok((await saved.json()).messages.some(message => message.role === 'assistant' && message.content.includes(marker)));
assert.deepEqual(errors, []);
} finally { await browser.close(); }
});
40 changes: 40 additions & 0 deletions chatbot/browser/real-service.test.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// Start the opt-in SQLite fixture with TestWorkbenchBrowserServer first.
import { test } from 'node:test';
import assert from 'node:assert/strict';
import { chromium } from '@playwright/test';

const base = process.env.LOOPFORGE_BROWSER_TEST_URL || 'http://127.0.0.1:18089';
test('real Go service: links, session recovery, drafts, settings and navigation', async () => {
const browser = await chromium.launch({channel:'chromium', headless:true, args:['--no-sandbox']});
try {
const page = await browser.newPage({viewport:{width:1440,height:900}});
const errors=[];
page.on('pageerror', e => errors.push(e.message));
await page.goto(`${base}/login.html`);
await page.locator('[name="login"]').fill('browser-test');
await page.locator('[name="password"]').fill('disposable-browser-password');
await page.locator('#loginSubmit').click();
await page.waitForURL(url => url.pathname === '/');
const response = await page.goto(`${base}/chatbot/?session=chat-browser-test`);
assert.equal(response.status(), 200);
await page.getByText('原有会话消息').first().waitFor({timeout:20000});
assert.equal(new URL(page.url()).searchParams.get('chatSession'),'chat-browser-test');
const input=page.locator('#chatRoot .composer-column textarea');
await input.fill('真实服务下保留草稿');
await page.evaluate(()=>window.loopforgePlatform.navigate('settings'));
await page.locator('#settingsView.active').waitFor();
await page.evaluate(()=>window.loopforgePlatform.setTheme('dark'));
assert.equal(await page.locator('html').getAttribute('data-theme'),'dark');
await page.goBack();
await input.waitFor({state:'visible'});
assert.equal(await input.inputValue(),'真实服务下保留草稿');
await page.reload();
await page.getByText('原有会话消息').first().waitFor({timeout:20000});
await input.waitFor({state:'visible'});
await page.waitForFunction(()=>document.querySelector('#chatRoot .composer-column textarea')?.value==='真实服务下保留草稿');
assert.equal(await page.locator('#chatNextFrame').count(),0);
await page.setViewportSize({width:390,height:844});
assert.equal(await page.evaluate(()=>document.documentElement.scrollWidth <= innerWidth),true);
assert.deepEqual(errors,[]);
} finally { await browser.close(); }
});
Loading
Loading