qwen-code/integration-tests
Edenman 02f1692d40
fix(web-shell): allow session refresh with daemon auth (#8445)
* fix(web-shell): allow session refresh with daemon auth

* test(web-shell): cover SPA fallback shell branch for non-session navigations

* test(web-shell): retarget sec-fetch SPA fallback test to non-session navigation

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* fix(web-shell): serve pre-auth navigations during the deferred runtime window

The deferred-runtime gate applied bearerAuth to every non-bootstrap
request while the runtime was cold, so a browser refresh of
/session/<id> (and / and /assets/*) 401'd on the default
`qwen serve --token ...` start until something else warmed the runtime.

Exempt the same surface mountWebShellAssets registers before auth, via a
shared isPreAuthWebShellRequest predicate, so cold document navigations
start the runtime and load the shell while JSON fetches, API subpaths,
and --no-web daemons stay gated. The predicate is dynamically imported
to respect the serve fast-path import-boundary guards.

* fix(cli): align deferred pre-auth web shell gate with warm routing (#8445)

* fix(cli): report daemon startup failure to pre-auth web shell navigations (#8445)

A pre-auth-exempted Web Shell navigation that hit a failed deferred
runtime startup fell through to the bootstrap app's bearer gate and
received a misleading 401 instead of the 503 daemon_runtime_failed
envelope authenticated requests get for the same failure. Track the
exemption in the deferred dispatch and answer the diagnostic envelope
directly. Also cover the deferred gate's HEAD exemption, which was
previously untested.

* fix(cli): exempt bare /assets from the deferred pre-auth gate (#8445)

* refactor(cli): dedupe runtime failure envelopes and deferred-window test setup (#8445)

* refactor(cli): rename startup envelope helper and pin query-string deep links (#8445)

* fix(cli): serve the // root alias pre-auth and fail-close the deferred predicate (#8445)

* docs(cli): record the pre-auth %2F session deep-link invariant (#8445)

* fix(test): isolate serve streaming suite from stray workspace settings (#8445)

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

---------

Co-authored-by: 克竟 <dingbingzhi.dbz@alibaba-inc.com>
Co-authored-by: qwen-code-dev-bot <qwen-code-dev@service.alibaba.com>
Co-authored-by: Shaojin Wen <shaojin.wensj@alibaba-inc.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-08-06 14:23:10 +00:00
..
baselines test(perf): add daemon baseline harness (#4175 Wave 1 PR 1) (#4205) 2026-05-17 00:41:26 +08:00
cli fix(web-shell): allow session refresh with daemon auth (#8445) 2026-08-06 14:23:10 +00:00
concurrent-runner refactor(tools): rename TodoWrite tool display name to TodoList (#5319) 2026-06-19 08:32:10 +08:00
fixtures feat(core): propagate trusted daemon invocation context (#7279) 2026-07-23 06:49:11 +00:00
hook-integration feat(hooks): Add HTTP Hook, Function Hook and Async Hook support (#2827) 2026-04-16 10:10:33 +08:00
interactive fix(integration): make interactive read-then-write test deterministic (#8060) (#8064) 2026-07-30 03:06:24 +00:00
sdk-typescript test(sdk-typescript): make permission control E2E deterministic (#8302) 2026-08-02 03:33:29 +00:00
terminal-bench Terminal Bench Integration Test (#521) 2025-09-05 17:02:03 +08:00
terminal-capture fix(cli): handle escaped dollars around inline math (#7741) 2026-07-26 13:58:01 +00:00
channel-plugin.test.ts fix(integration): use lenient assertion and harden poll in interactive file-system test (#7113) 2026-07-18 05:05:08 +00:00
fake-openai-server.test.ts fix(test): Restore first-output benchmark measurement validity and correct its artifact schema (#7820) 2026-07-28 06:51:03 +00:00
fake-openai-server.ts feat(core): add ARMS session user ID (#7921) 2026-07-28 11:10:38 +00:00
globalSetup.ts feat(core): support QWEN_HOME env var to customize config directory (#2953) 2026-05-09 15:51:52 +08:00
test-helper.ts fix(integration): configure Docker sandbox networking for submitted-prompt provenance test (#7879) (#7881) 2026-07-28 05:32:01 +00:00
test-mcp-server.ts # 🚀 Sync Gemini CLI v0.2.1 - Major Feature Update (#483) 2025-09-01 14:48:55 +08:00
tsconfig.json refactor(serve): 1 daemon = 1 workspace (#3803 §02) (#4113) 2026-05-15 12:44:36 +08:00
vitest.config.ts fix(webui): recover complete turns after live journal truncation (#8414) 2026-08-05 02:50:58 +00:00
vitest.firstoutput.config.ts fix(test): Restore first-output benchmark measurement validity and correct its artifact schema (#7820) 2026-07-28 06:51:03 +00:00
vitest.loadtest.config.ts feat(daemon): merge daemon-mode feature batch into main (#4490) 2026-06-12 00:34:49 +08:00
vitest.terminal-bench.config.ts Fix E2E caused by Terminal Bench test (#529) 2025-09-08 10:51:14 +08:00