From 841ad988054bc134cdfe136515bd15152a5d1d40 Mon Sep 17 00:00:00 2001 From: Jiaxiaoyuan Date: Fri, 20 Nov 2026 10:26:48 +0800 Subject: [PATCH 01/10] fix(ci): diagnose WebUI startup and reserve macOS artifact time --- .aoci/baseline.json | 774 +----------------- .github/workflows/webui-ci.yml | 3 +- aoci.code.txt | 8 +- docs/webui-ci.md | 6 + .../integration/loopback-harness-path.test.ts | 33 +- scripts/run-webui-server.mjs | 12 + test/source-sync.test.mjs | 2 + 7 files changed, 71 insertions(+), 767 deletions(-) diff --git a/.aoci/baseline.json b/.aoci/baseline.json index 5e71736b..306a131a 100644 --- a/.aoci/baseline.json +++ b/.aoci/baseline.json @@ -1,7 +1,7 @@ { "version": 1, "created_at": "2026-11-19T05:53:26Z", - "updated_at": "2026-11-20T01:35:42Z", + "updated_at": "2026-11-20T02:26:37Z", "files": { ".agents/skills/changelog-card-publish/SKILL.md": { "role": "index", @@ -317,9 +317,9 @@ }, ".github/workflows/webui-ci.yml": { "role": "index", - "sha256": "e2865cc4e50add9047c5465b698ad43e78e2db0a43d742e48620475dcd41ac59", - "size": 4267, - "normalized_sha256": "e2865cc4e50add9047c5465b698ad43e78e2db0a43d742e48620475dcd41ac59" + "sha256": "67206edc989e11ae09c21b44c72c5068f2f42fd3898354aaaecfbb5bb01dcb85", + "size": 4339, + "normalized_sha256": "67206edc989e11ae09c21b44c72c5068f2f42fd3898354aaaecfbb5bb01dcb85" }, ".gitignore": { "role": "index", @@ -773,9 +773,9 @@ }, "aoci.code.txt": { "role": "index", - "sha256": "251d96fb088590d8761d51f2d6033c31857b5c6cc4d3c7265f303fd80292731c", - "size": 636382, - "normalized_sha256": "251d96fb088590d8761d51f2d6033c31857b5c6cc4d3c7265f303fd80292731c" + "sha256": "4c17903ac4570ab4ebe78117d54390dbe9c4a7fd81a222dd136512a4eb80aef6", + "size": 636496, + "normalized_sha256": "4c17903ac4570ab4ebe78117d54390dbe9c4a7fd81a222dd136512a4eb80aef6" }, "aoci.meta.txt": { "role": "index", @@ -789,742 +789,6 @@ "size": 301, "normalized_sha256": "5ca1db5e1bf5432ca60e816fe4b836e9018cbeecf2d296a96f31beb6e1d2a56d" }, - "dist-webui-npm/client/assets/fonts/brand/Nunito-latin.woff2": { - "role": "observe", - "sha256": "20fc9b6fc618e7c3c68d3ac750a2a5dfbceb8521675458d2cea580b5693e4798", - "size": 39152 - }, - "dist-webui-npm/client/assets/fonts/brand/OFL.txt": { - "role": "observe", - "sha256": "580df76c95a1ec5ab878ceb25bb3d85c6a076804e9c970c8c6972aea775fdf65", - "size": 4385, - "normalized_sha256": "580df76c95a1ec5ab878ceb25bb3d85c6a076804e9c970c8c6972aea775fdf65" - }, - "dist-webui-npm/client/assets/img/agent-avatar-explore.svg": { - "role": "observe", - "sha256": "209982d1ea785ae20d8cf0e4a8d713f456a8975f086a34970d68ea49da68f295", - "size": 2922, - "normalized_sha256": "209982d1ea785ae20d8cf0e4a8d713f456a8975f086a34970d68ea49da68f295" - }, - "dist-webui-npm/client/assets/img/agent-avatar-verifier.svg": { - "role": "observe", - "sha256": "cca276240e5d757cd8aa17e97f17f1ba8cc3768dfe2ee8f3207f641651e91b55", - "size": 3715, - "normalized_sha256": "cca276240e5d757cd8aa17e97f17f1ba8cc3768dfe2ee8f3207f641651e91b55" - }, - "dist-webui-npm/client/assets/img/agent-avatar-worker.svg": { - "role": "observe", - "sha256": "66376531709e0cddbdc329ba9eadcebb7a089d1f809d94151da26440ef961866", - "size": 3200, - "normalized_sha256": "66376531709e0cddbdc329ba9eadcebb7a089d1f809d94151da26440ef961866" - }, - "dist-webui-npm/client/assets/img/corner-dark.svg": { - "role": "observe", - "sha256": "8d85ae76ff1400252502ff43355ebf04952d7b272ab6495dd524e2ca72ffb324", - "size": 1958, - "normalized_sha256": "8d85ae76ff1400252502ff43355ebf04952d7b272ab6495dd524e2ca72ffb324" - }, - "dist-webui-npm/client/assets/img/corner-light.svg": { - "role": "observe", - "sha256": "28df0c234fc672ebc8305e1c0f5d359f881427efd9affc2e287b6928aa472534", - "size": 2054, - "normalized_sha256": "28df0c234fc672ebc8305e1c0f5d359f881427efd9affc2e287b6928aa472534" - }, - "dist-webui-npm/client/assets/img/dark.14c569ba.svg": { - "role": "observe", - "sha256": "a64cd45ab4de8db44cfda52917159cbc7838b042a3968ada29474b40aeacc9d4", - "size": 1431, - "normalized_sha256": "a64cd45ab4de8db44cfda52917159cbc7838b042a3968ada29474b40aeacc9d4" - }, - "dist-webui-npm/client/assets/img/light.d3fbb1aa.svg": { - "role": "observe", - "sha256": "8bf01ce03c8200af34c0b92d97ffc217be4822f09c3f34238d832213be362703", - "size": 1431, - "normalized_sha256": "8bf01ce03c8200af34c0b92d97ffc217be4822f09c3f34238d832213be362703" - }, - "dist-webui-npm/client/assets/img/system.aba90841.svg": { - "role": "observe", - "sha256": "cc4d3e9fb25c633a5f770386bba2dadcd730a5a8eb53c86036655f3fd2b6ed0a", - "size": 1937, - "normalized_sha256": "cc4d3e9fb25c633a5f770386bba2dadcd730a5a8eb53c86036655f3fd2b6ed0a" - }, - "dist-webui-npm/client/fonts/KaTeX_AMS-Regular.ttf": { - "role": "observe", - "sha256": "68534840bcfdd2bffb6f0e8deb48684dd01e7f04ea2813267577afb906de1d13", - "size": 63632 - }, - "dist-webui-npm/client/fonts/KaTeX_AMS-Regular.woff": { - "role": "observe", - "sha256": "30da91e84c893f875e252689faebdc590b2871145e8adc7f9a9d4dbd8ce0b251", - "size": 33516 - }, - "dist-webui-npm/client/fonts/KaTeX_AMS-Regular.woff2": { - "role": "observe", - "sha256": "0cdd387c9590a1a9f9794560022dbb59654a7d86f187aa0c81495ad42d3a7308", - "size": 28076 - }, - "dist-webui-npm/client/fonts/KaTeX_Caligraphic-Bold.ttf": { - "role": "observe", - "sha256": "07d8e303ce4fc12b4bb54f1004170dd190a1f3db45d400fe68060df3e0897268", - "size": 12368 - }, - "dist-webui-npm/client/fonts/KaTeX_Caligraphic-Bold.woff": { - "role": "observe", - "sha256": "1ae6bd7475590e97e7f145a89e09ccde322f7a6bc0b91607b1c8b8ee28290fed", - "size": 7716 - }, - "dist-webui-npm/client/fonts/KaTeX_Caligraphic-Bold.woff2": { - "role": "observe", - "sha256": "de7701e42cf1f4cf0b766c03fb27977207eee2f4fd5d76fa82188406da43ea4c", - "size": 6912 - }, - "dist-webui-npm/client/fonts/KaTeX_Caligraphic-Regular.ttf": { - "role": "observe", - "sha256": "ed0b74372feefcbb9c0666b2e210da37b7e49fa7fbbf3eeb11db5f693dacfbb7", - "size": 12344 - }, - "dist-webui-npm/client/fonts/KaTeX_Caligraphic-Regular.woff": { - "role": "observe", - "sha256": "3398dd02302557a793f2863f88e02d96ce10df2abffa07c8e9fa90775116e65c", - "size": 7656 - }, - "dist-webui-npm/client/fonts/KaTeX_Caligraphic-Regular.woff2": { - "role": "observe", - "sha256": "5d53e70ad607c2352162dec9e0923fb54ecdafaccbf604cd8dcf7d00facb989b", - "size": 6908 - }, - "dist-webui-npm/client/fonts/KaTeX_Fraktur-Bold.ttf": { - "role": "observe", - "sha256": "9163df9c7122432e6495b4229fa9071cf9ae86a758ae5efc4924ec2e1a6dbce1", - "size": 19584 - }, - "dist-webui-npm/client/fonts/KaTeX_Fraktur-Bold.woff": { - "role": "observe", - "sha256": "9be7ceb88004ab8ad124082246fbfcca4091e36385d4ec6ed1df67375dad50fb", - "size": 13296 - }, - "dist-webui-npm/client/fonts/KaTeX_Fraktur-Bold.woff2": { - "role": "observe", - "sha256": "74444efd593c005e3f4573b44524704c0af0a937fe911cca9e94068d0d140d3f", - "size": 11348 - }, - "dist-webui-npm/client/fonts/KaTeX_Fraktur-Regular.ttf": { - "role": "observe", - "sha256": "1e6f9579e90e2cac37f8f60a597c436e075c114385652b7cbeb0dec0421291b3", - "size": 19572 - }, - "dist-webui-npm/client/fonts/KaTeX_Fraktur-Regular.woff": { - "role": "observe", - "sha256": "5e28753be717dac97f559f49bc10be9cf3c124ddcabda6659d11cb68febc6463", - "size": 13208 - }, - "dist-webui-npm/client/fonts/KaTeX_Fraktur-Regular.woff2": { - "role": "observe", - "sha256": "51814d270d06ff0255dba0799994fa4d8c84d11f09951d47595f4abb1f3602dc", - "size": 11316 - }, - "dist-webui-npm/client/fonts/KaTeX_Main-Bold.ttf": { - "role": "observe", - "sha256": "138ac28d1663b3037e9c5f52371fa5c63d8324f4a38d22cd573e6ea3a3fd0cf8", - "size": 51336 - }, - "dist-webui-npm/client/fonts/KaTeX_Main-Bold.woff": { - "role": "observe", - "sha256": "c76c5d696297d51b9cb1639c7da4334f0e7dec81b42b11213b5e25ef671bb822", - "size": 29912 - }, - "dist-webui-npm/client/fonts/KaTeX_Main-Bold.woff2": { - "role": "observe", - "sha256": "0f60d1b897938ec918c8ce073092411baf9438f6739465693ff18b0f9d20b021", - "size": 25324 - }, - "dist-webui-npm/client/fonts/KaTeX_Main-BoldItalic.ttf": { - "role": "observe", - "sha256": "70ee1f64a20f2048c21940ef46d0144fd215baa953ca69afd1e31e98544f708f", - "size": 32968 - }, - "dist-webui-npm/client/fonts/KaTeX_Main-BoldItalic.woff": { - "role": "observe", - "sha256": "a6f7ec0d846ac7ad975adb8959c37ed49b94acbc4ae436db9ce9e20287e4a64c", - "size": 19412 - }, - "dist-webui-npm/client/fonts/KaTeX_Main-BoldItalic.woff2": { - "role": "observe", - "sha256": "99cd42a3c072d918f2f44984a807cf7aa16e13545fd0875fc07c6c65f99e715b", - "size": 16780 - }, - "dist-webui-npm/client/fonts/KaTeX_Main-Italic.ttf": { - "role": "observe", - "sha256": "0d85ae7cc30f23790a7f1a58c4a112fdca8aae769b6ba11429af1d98b1b6cb3a", - "size": 33580 - }, - "dist-webui-npm/client/fonts/KaTeX_Main-Italic.woff": { - "role": "observe", - "sha256": "f1d6ef86f3b11a528bd5185199bd2443ecb2b0dead96d88674b5a2c12be24bdf", - "size": 19676 - }, - "dist-webui-npm/client/fonts/KaTeX_Main-Italic.woff2": { - "role": "observe", - "sha256": "97479ca6cce906abc961ecac96faa5f9ca2e61b8e7670d475826bcdee9a7c267", - "size": 16988 - }, - "dist-webui-npm/client/fonts/KaTeX_Main-Regular.ttf": { - "role": "observe", - "sha256": "d0332f52868370fd83ae7fa46470f90c8f2eab2fcf12bc4f88080b340c95a830", - "size": 53580 - }, - "dist-webui-npm/client/fonts/KaTeX_Main-Regular.woff": { - "role": "observe", - "sha256": "c6368d87e8a1a3a5d337623d83d8dc4b868f242a9ad476237d6f8d1e0f168cdc", - "size": 30772 - }, - "dist-webui-npm/client/fonts/KaTeX_Main-Regular.woff2": { - "role": "observe", - "sha256": "c2342cd8b869e01752a9321dc17213fc40d4d04c79688c1d43f2cf316abd7866", - "size": 26272 - }, - "dist-webui-npm/client/fonts/KaTeX_Math-BoldItalic.ttf": { - "role": "observe", - "sha256": "f9377ab0271cda59af24bcffbd46a4d0c8a3572ffafdbb38de2ad5ea7b0d5ee5", - "size": 31196 - }, - "dist-webui-npm/client/fonts/KaTeX_Math-BoldItalic.woff": { - "role": "observe", - "sha256": "850c0af5c2238497febaf5e461d880bf458c341f42f4f330f1b1ab5698b1998e", - "size": 18668 - }, - "dist-webui-npm/client/fonts/KaTeX_Math-BoldItalic.woff2": { - "role": "observe", - "sha256": "dc47344dbb6cb5b655c8460d561f4df5f501b90c804ad3c6cec65fe322351ab1", - "size": 16400 - }, - "dist-webui-npm/client/fonts/KaTeX_Math-Italic.ttf": { - "role": "observe", - "sha256": "08ce98e51b04d58945a301e639e02b6998af29fdfd61a7b8afdd07bbfc479d4a", - "size": 31308 - }, - "dist-webui-npm/client/fonts/KaTeX_Math-Italic.woff": { - "role": "observe", - "sha256": "8a8d244581371912b8f3f5a23e2437cb2a59cd9bcaebb0346e722c05737a2571", - "size": 18748 - }, - "dist-webui-npm/client/fonts/KaTeX_Math-Italic.woff2": { - "role": "observe", - "sha256": "7af58c5ec8f132a2ddde9027c6d7814decce4d3b822a11192a42a20e2e973264", - "size": 16440 - }, - "dist-webui-npm/client/fonts/KaTeX_SansSerif-Bold.ttf": { - "role": "observe", - "sha256": "1ece03f79f95277d57dc7f6b435a74e1379b0d46104a8530286b60ff49369ea0", - "size": 24504 - }, - "dist-webui-npm/client/fonts/KaTeX_SansSerif-Bold.woff": { - "role": "observe", - "sha256": "ece03cfd83e22c212cdef66feb8442d25a083beb988db3f1883f3f9738d750ba", - "size": 14408 - }, - "dist-webui-npm/client/fonts/KaTeX_SansSerif-Bold.woff2": { - "role": "observe", - "sha256": "e99ae51144bf1232efcc1bfe5add36262c6866b0faab24fa75740e1b98577a62", - "size": 12216 - }, - "dist-webui-npm/client/fonts/KaTeX_SansSerif-Italic.ttf": { - "role": "observe", - "sha256": "3931dd81faed86ba021bb2bbdc36f5bed9a38d6b4f4077aca59b265aa1b02083", - "size": 22364 - }, - "dist-webui-npm/client/fonts/KaTeX_SansSerif-Italic.woff": { - "role": "observe", - "sha256": "91ee67500cc0129aa0ace3ac5c61ff1692102f0f31d02b69347fba35dcb75bf2", - "size": 14112 - }, - "dist-webui-npm/client/fonts/KaTeX_SansSerif-Italic.woff2": { - "role": "observe", - "sha256": "00b26ac825e2095056396e0553b8ac26d3f8ad158c3826e28b4c45b385c4714a", - "size": 12028 - }, - "dist-webui-npm/client/fonts/KaTeX_SansSerif-Regular.ttf": { - "role": "observe", - "sha256": "f36ea897e19f4a2e571d1e900e4e3710e438deb05a842486045ba0a3e616a4ad", - "size": 19436 - }, - "dist-webui-npm/client/fonts/KaTeX_SansSerif-Regular.woff": { - "role": "observe", - "sha256": "11e4dc8a6471ff6d6ee561d53d10fde8f7489e798257ff449c5d37c197435605", - "size": 12316 - }, - "dist-webui-npm/client/fonts/KaTeX_SansSerif-Regular.woff2": { - "role": "observe", - "sha256": "68e8c73ef42afd3ccec58bf0fba302cce448938e7fc020a5e31f8a952eee1342", - "size": 10344 - }, - "dist-webui-npm/client/fonts/KaTeX_Script-Regular.ttf": { - "role": "observe", - "sha256": "1c67f068fea8bb09bf099c088b1cf64bd27516a6e07f4684344873564bb66a67", - "size": 16648 - }, - "dist-webui-npm/client/fonts/KaTeX_Script-Regular.woff": { - "role": "observe", - "sha256": "d96cdf2b3bdd4d64a8fd5f74a4c467f123a8a73931cd435889f08ffaf9bf947a", - "size": 10588 - }, - "dist-webui-npm/client/fonts/KaTeX_Script-Regular.woff2": { - "role": "observe", - "sha256": "036d4e95149b69ff9bcc0cd55771efeb25ffa3947293e69acd78d5ac328c684b", - "size": 9644 - }, - "dist-webui-npm/client/fonts/KaTeX_Size1-Regular.ttf": { - "role": "observe", - "sha256": "95b6d2f1a50173bfedb8c63e1d1c99b10427d0a4df4201cb44513b226951a22b", - "size": 12228 - }, - "dist-webui-npm/client/fonts/KaTeX_Size1-Regular.woff": { - "role": "observe", - "sha256": "c943cc986384f59e86bea5fd7dc50a9c4dfe567a7c05eb40d6790720dead97c9", - "size": 6496 - }, - "dist-webui-npm/client/fonts/KaTeX_Size1-Regular.woff2": { - "role": "observe", - "sha256": "6b47c40166b6dbe21a5dfca7718413f2147fd2399be1ba605d8ad39cedf25dfe", - "size": 5468 - }, - "dist-webui-npm/client/fonts/KaTeX_Size2-Regular.ttf": { - "role": "observe", - "sha256": "a6b2099fb555c60e3a0db3a08842ebf1d732c6eb4e4bf44913613bed4fc4e39b", - "size": 11508 - }, - "dist-webui-npm/client/fonts/KaTeX_Size2-Regular.woff": { - "role": "observe", - "sha256": "2014c523c3210bcc166648c4d4cc57f05b747df07a24277bf71c51e67dc79e3d", - "size": 6188 - }, - "dist-webui-npm/client/fonts/KaTeX_Size2-Regular.woff2": { - "role": "observe", - "sha256": "d04c54219f9eaec6d4d4fd42dfb28785975a4794d6b2fc71e566b9cd6db842dd", - "size": 5208 - }, - "dist-webui-npm/client/fonts/KaTeX_Size3-Regular.ttf": { - "role": "observe", - "sha256": "500e04d54f0d51666332c9d2089aa803be22aa878eca539e59fa53c6e522b082", - "size": 7588 - }, - "dist-webui-npm/client/fonts/KaTeX_Size3-Regular.woff": { - "role": "observe", - "sha256": "6ab6b62e9b62dae2c00dd90f791bd10950be0ecc3490d7d6045f51c2e8fe0949", - "size": 4420 - }, - "dist-webui-npm/client/fonts/KaTeX_Size3-Regular.woff2": { - "role": "observe", - "sha256": "73d591271b1604960cb10bb90fee021670af7297017e0e98480b332d11f51995", - "size": 3624 - }, - "dist-webui-npm/client/fonts/KaTeX_Size4-Regular.ttf": { - "role": "observe", - "sha256": "c647367d1dd4e162468717d020e1fc0f1dc5c26ebfdffbe55261713bf88c5877", - "size": 10364 - }, - "dist-webui-npm/client/fonts/KaTeX_Size4-Regular.woff": { - "role": "observe", - "sha256": "99f9c6750b489c9462bf04900bd3f939df9b829339daaaaa99ef5495cdddea58", - "size": 5980 - }, - "dist-webui-npm/client/fonts/KaTeX_Size4-Regular.woff2": { - "role": "observe", - "sha256": "a4af7d414440a1c1790825cfb700cf9cf43b0f2c4b04f0ebc523011ad9853ec0", - "size": 4928 - }, - "dist-webui-npm/client/fonts/KaTeX_Typewriter-Regular.ttf": { - "role": "observe", - "sha256": "f01f3e87d9c6a61c0c081ceb577abd864eb00a612f7ac1620dd6915fad2ef5aa", - "size": 27556 - }, - "dist-webui-npm/client/fonts/KaTeX_Typewriter-Regular.woff": { - "role": "observe", - "sha256": "e14fed02b1aba7ce9f5afd5844b5d0321b22351febc720e0de8b8723527609f7", - "size": 16028 - }, - "dist-webui-npm/client/fonts/KaTeX_Typewriter-Regular.woff2": { - "role": "observe", - "sha256": "71d517d67827787cfabdf186914cc3358eda539e37931941f2b2fd4a21f68c0b", - "size": 13568 - }, - "dist-webui-npm/client/fonts/LICENSE.katex-fonts": { - "role": "observe", - "sha256": "00a890c71e7cf602c5237d25f7ac9fc9fa0a094f4af5d32c7c9e30e81971b792", - "size": 220, - "normalized_sha256": "00a890c71e7cf602c5237d25f7ac9fc9fa0a094f4af5d32c7c9e30e81971b792" - }, - "dist-webui/client/assets/fonts/brand/Nunito-latin.woff2": { - "role": "observe", - "sha256": "20fc9b6fc618e7c3c68d3ac750a2a5dfbceb8521675458d2cea580b5693e4798", - "size": 39152 - }, - "dist-webui/client/assets/fonts/brand/OFL.txt": { - "role": "observe", - "sha256": "580df76c95a1ec5ab878ceb25bb3d85c6a076804e9c970c8c6972aea775fdf65", - "size": 4385, - "normalized_sha256": "580df76c95a1ec5ab878ceb25bb3d85c6a076804e9c970c8c6972aea775fdf65" - }, - "dist-webui/client/assets/img/agent-avatar-explore.svg": { - "role": "observe", - "sha256": "209982d1ea785ae20d8cf0e4a8d713f456a8975f086a34970d68ea49da68f295", - "size": 2922, - "normalized_sha256": "209982d1ea785ae20d8cf0e4a8d713f456a8975f086a34970d68ea49da68f295" - }, - "dist-webui/client/assets/img/agent-avatar-verifier.svg": { - "role": "observe", - "sha256": "cca276240e5d757cd8aa17e97f17f1ba8cc3768dfe2ee8f3207f641651e91b55", - "size": 3715, - "normalized_sha256": "cca276240e5d757cd8aa17e97f17f1ba8cc3768dfe2ee8f3207f641651e91b55" - }, - "dist-webui/client/assets/img/agent-avatar-worker.svg": { - "role": "observe", - "sha256": "66376531709e0cddbdc329ba9eadcebb7a089d1f809d94151da26440ef961866", - "size": 3200, - "normalized_sha256": "66376531709e0cddbdc329ba9eadcebb7a089d1f809d94151da26440ef961866" - }, - "dist-webui/client/assets/img/corner-dark.svg": { - "role": "observe", - "sha256": "8d85ae76ff1400252502ff43355ebf04952d7b272ab6495dd524e2ca72ffb324", - "size": 1958, - "normalized_sha256": "8d85ae76ff1400252502ff43355ebf04952d7b272ab6495dd524e2ca72ffb324" - }, - "dist-webui/client/assets/img/corner-light.svg": { - "role": "observe", - "sha256": "28df0c234fc672ebc8305e1c0f5d359f881427efd9affc2e287b6928aa472534", - "size": 2054, - "normalized_sha256": "28df0c234fc672ebc8305e1c0f5d359f881427efd9affc2e287b6928aa472534" - }, - "dist-webui/client/assets/img/dark.14c569ba.svg": { - "role": "observe", - "sha256": "a64cd45ab4de8db44cfda52917159cbc7838b042a3968ada29474b40aeacc9d4", - "size": 1431, - "normalized_sha256": "a64cd45ab4de8db44cfda52917159cbc7838b042a3968ada29474b40aeacc9d4" - }, - "dist-webui/client/assets/img/light.d3fbb1aa.svg": { - "role": "observe", - "sha256": "8bf01ce03c8200af34c0b92d97ffc217be4822f09c3f34238d832213be362703", - "size": 1431, - "normalized_sha256": "8bf01ce03c8200af34c0b92d97ffc217be4822f09c3f34238d832213be362703" - }, - "dist-webui/client/assets/img/minimax-design-octopus.svg": { - "role": "observe", - "sha256": "1b5c5b974e660e24d624333270a1571b3e5e9f09738946b1ae29d25b9733a193", - "size": 1687, - "normalized_sha256": "1b5c5b974e660e24d624333270a1571b3e5e9f09738946b1ae29d25b9733a193" - }, - "dist-webui/client/assets/img/system.aba90841.svg": { - "role": "observe", - "sha256": "cc4d3e9fb25c633a5f770386bba2dadcd730a5a8eb53c86036655f3fd2b6ed0a", - "size": 1937, - "normalized_sha256": "cc4d3e9fb25c633a5f770386bba2dadcd730a5a8eb53c86036655f3fd2b6ed0a" - }, - "dist-webui/client/fonts/KaTeX_AMS-Regular.ttf": { - "role": "observe", - "sha256": "68534840bcfdd2bffb6f0e8deb48684dd01e7f04ea2813267577afb906de1d13", - "size": 63632 - }, - "dist-webui/client/fonts/KaTeX_AMS-Regular.woff": { - "role": "observe", - "sha256": "30da91e84c893f875e252689faebdc590b2871145e8adc7f9a9d4dbd8ce0b251", - "size": 33516 - }, - "dist-webui/client/fonts/KaTeX_AMS-Regular.woff2": { - "role": "observe", - "sha256": "0cdd387c9590a1a9f9794560022dbb59654a7d86f187aa0c81495ad42d3a7308", - "size": 28076 - }, - "dist-webui/client/fonts/KaTeX_Caligraphic-Bold.ttf": { - "role": "observe", - "sha256": "07d8e303ce4fc12b4bb54f1004170dd190a1f3db45d400fe68060df3e0897268", - "size": 12368 - }, - "dist-webui/client/fonts/KaTeX_Caligraphic-Bold.woff": { - "role": "observe", - "sha256": "1ae6bd7475590e97e7f145a89e09ccde322f7a6bc0b91607b1c8b8ee28290fed", - "size": 7716 - }, - "dist-webui/client/fonts/KaTeX_Caligraphic-Bold.woff2": { - "role": "observe", - "sha256": "de7701e42cf1f4cf0b766c03fb27977207eee2f4fd5d76fa82188406da43ea4c", - "size": 6912 - }, - "dist-webui/client/fonts/KaTeX_Caligraphic-Regular.ttf": { - "role": "observe", - "sha256": "ed0b74372feefcbb9c0666b2e210da37b7e49fa7fbbf3eeb11db5f693dacfbb7", - "size": 12344 - }, - "dist-webui/client/fonts/KaTeX_Caligraphic-Regular.woff": { - "role": "observe", - "sha256": "3398dd02302557a793f2863f88e02d96ce10df2abffa07c8e9fa90775116e65c", - "size": 7656 - }, - "dist-webui/client/fonts/KaTeX_Caligraphic-Regular.woff2": { - "role": "observe", - "sha256": "5d53e70ad607c2352162dec9e0923fb54ecdafaccbf604cd8dcf7d00facb989b", - "size": 6908 - }, - "dist-webui/client/fonts/KaTeX_Fraktur-Bold.ttf": { - "role": "observe", - "sha256": "9163df9c7122432e6495b4229fa9071cf9ae86a758ae5efc4924ec2e1a6dbce1", - "size": 19584 - }, - "dist-webui/client/fonts/KaTeX_Fraktur-Bold.woff": { - "role": "observe", - "sha256": "9be7ceb88004ab8ad124082246fbfcca4091e36385d4ec6ed1df67375dad50fb", - "size": 13296 - }, - "dist-webui/client/fonts/KaTeX_Fraktur-Bold.woff2": { - "role": "observe", - "sha256": "74444efd593c005e3f4573b44524704c0af0a937fe911cca9e94068d0d140d3f", - "size": 11348 - }, - "dist-webui/client/fonts/KaTeX_Fraktur-Regular.ttf": { - "role": "observe", - "sha256": "1e6f9579e90e2cac37f8f60a597c436e075c114385652b7cbeb0dec0421291b3", - "size": 19572 - }, - "dist-webui/client/fonts/KaTeX_Fraktur-Regular.woff": { - "role": "observe", - "sha256": "5e28753be717dac97f559f49bc10be9cf3c124ddcabda6659d11cb68febc6463", - "size": 13208 - }, - "dist-webui/client/fonts/KaTeX_Fraktur-Regular.woff2": { - "role": "observe", - "sha256": "51814d270d06ff0255dba0799994fa4d8c84d11f09951d47595f4abb1f3602dc", - "size": 11316 - }, - "dist-webui/client/fonts/KaTeX_Main-Bold.ttf": { - "role": "observe", - "sha256": "138ac28d1663b3037e9c5f52371fa5c63d8324f4a38d22cd573e6ea3a3fd0cf8", - "size": 51336 - }, - "dist-webui/client/fonts/KaTeX_Main-Bold.woff": { - "role": "observe", - "sha256": "c76c5d696297d51b9cb1639c7da4334f0e7dec81b42b11213b5e25ef671bb822", - "size": 29912 - }, - "dist-webui/client/fonts/KaTeX_Main-Bold.woff2": { - "role": "observe", - "sha256": "0f60d1b897938ec918c8ce073092411baf9438f6739465693ff18b0f9d20b021", - "size": 25324 - }, - "dist-webui/client/fonts/KaTeX_Main-BoldItalic.ttf": { - "role": "observe", - "sha256": "70ee1f64a20f2048c21940ef46d0144fd215baa953ca69afd1e31e98544f708f", - "size": 32968 - }, - "dist-webui/client/fonts/KaTeX_Main-BoldItalic.woff": { - "role": "observe", - "sha256": "a6f7ec0d846ac7ad975adb8959c37ed49b94acbc4ae436db9ce9e20287e4a64c", - "size": 19412 - }, - "dist-webui/client/fonts/KaTeX_Main-BoldItalic.woff2": { - "role": "observe", - "sha256": "99cd42a3c072d918f2f44984a807cf7aa16e13545fd0875fc07c6c65f99e715b", - "size": 16780 - }, - "dist-webui/client/fonts/KaTeX_Main-Italic.ttf": { - "role": "observe", - "sha256": "0d85ae7cc30f23790a7f1a58c4a112fdca8aae769b6ba11429af1d98b1b6cb3a", - "size": 33580 - }, - "dist-webui/client/fonts/KaTeX_Main-Italic.woff": { - "role": "observe", - "sha256": "f1d6ef86f3b11a528bd5185199bd2443ecb2b0dead96d88674b5a2c12be24bdf", - "size": 19676 - }, - "dist-webui/client/fonts/KaTeX_Main-Italic.woff2": { - "role": "observe", - "sha256": "97479ca6cce906abc961ecac96faa5f9ca2e61b8e7670d475826bcdee9a7c267", - "size": 16988 - }, - "dist-webui/client/fonts/KaTeX_Main-Regular.ttf": { - "role": "observe", - "sha256": "d0332f52868370fd83ae7fa46470f90c8f2eab2fcf12bc4f88080b340c95a830", - "size": 53580 - }, - "dist-webui/client/fonts/KaTeX_Main-Regular.woff": { - "role": "observe", - "sha256": "c6368d87e8a1a3a5d337623d83d8dc4b868f242a9ad476237d6f8d1e0f168cdc", - "size": 30772 - }, - "dist-webui/client/fonts/KaTeX_Main-Regular.woff2": { - "role": "observe", - "sha256": "c2342cd8b869e01752a9321dc17213fc40d4d04c79688c1d43f2cf316abd7866", - "size": 26272 - }, - "dist-webui/client/fonts/KaTeX_Math-BoldItalic.ttf": { - "role": "observe", - "sha256": "f9377ab0271cda59af24bcffbd46a4d0c8a3572ffafdbb38de2ad5ea7b0d5ee5", - "size": 31196 - }, - "dist-webui/client/fonts/KaTeX_Math-BoldItalic.woff": { - "role": "observe", - "sha256": "850c0af5c2238497febaf5e461d880bf458c341f42f4f330f1b1ab5698b1998e", - "size": 18668 - }, - "dist-webui/client/fonts/KaTeX_Math-BoldItalic.woff2": { - "role": "observe", - "sha256": "dc47344dbb6cb5b655c8460d561f4df5f501b90c804ad3c6cec65fe322351ab1", - "size": 16400 - }, - "dist-webui/client/fonts/KaTeX_Math-Italic.ttf": { - "role": "observe", - "sha256": "08ce98e51b04d58945a301e639e02b6998af29fdfd61a7b8afdd07bbfc479d4a", - "size": 31308 - }, - "dist-webui/client/fonts/KaTeX_Math-Italic.woff": { - "role": "observe", - "sha256": "8a8d244581371912b8f3f5a23e2437cb2a59cd9bcaebb0346e722c05737a2571", - "size": 18748 - }, - "dist-webui/client/fonts/KaTeX_Math-Italic.woff2": { - "role": "observe", - "sha256": "7af58c5ec8f132a2ddde9027c6d7814decce4d3b822a11192a42a20e2e973264", - "size": 16440 - }, - "dist-webui/client/fonts/KaTeX_SansSerif-Bold.ttf": { - "role": "observe", - "sha256": "1ece03f79f95277d57dc7f6b435a74e1379b0d46104a8530286b60ff49369ea0", - "size": 24504 - }, - "dist-webui/client/fonts/KaTeX_SansSerif-Bold.woff": { - "role": "observe", - "sha256": "ece03cfd83e22c212cdef66feb8442d25a083beb988db3f1883f3f9738d750ba", - "size": 14408 - }, - "dist-webui/client/fonts/KaTeX_SansSerif-Bold.woff2": { - "role": "observe", - "sha256": "e99ae51144bf1232efcc1bfe5add36262c6866b0faab24fa75740e1b98577a62", - "size": 12216 - }, - "dist-webui/client/fonts/KaTeX_SansSerif-Italic.ttf": { - "role": "observe", - "sha256": "3931dd81faed86ba021bb2bbdc36f5bed9a38d6b4f4077aca59b265aa1b02083", - "size": 22364 - }, - "dist-webui/client/fonts/KaTeX_SansSerif-Italic.woff": { - "role": "observe", - "sha256": "91ee67500cc0129aa0ace3ac5c61ff1692102f0f31d02b69347fba35dcb75bf2", - "size": 14112 - }, - "dist-webui/client/fonts/KaTeX_SansSerif-Italic.woff2": { - "role": "observe", - "sha256": "00b26ac825e2095056396e0553b8ac26d3f8ad158c3826e28b4c45b385c4714a", - "size": 12028 - }, - "dist-webui/client/fonts/KaTeX_SansSerif-Regular.ttf": { - "role": "observe", - "sha256": "f36ea897e19f4a2e571d1e900e4e3710e438deb05a842486045ba0a3e616a4ad", - "size": 19436 - }, - "dist-webui/client/fonts/KaTeX_SansSerif-Regular.woff": { - "role": "observe", - "sha256": "11e4dc8a6471ff6d6ee561d53d10fde8f7489e798257ff449c5d37c197435605", - "size": 12316 - }, - "dist-webui/client/fonts/KaTeX_SansSerif-Regular.woff2": { - "role": "observe", - "sha256": "68e8c73ef42afd3ccec58bf0fba302cce448938e7fc020a5e31f8a952eee1342", - "size": 10344 - }, - "dist-webui/client/fonts/KaTeX_Script-Regular.ttf": { - "role": "observe", - "sha256": "1c67f068fea8bb09bf099c088b1cf64bd27516a6e07f4684344873564bb66a67", - "size": 16648 - }, - "dist-webui/client/fonts/KaTeX_Script-Regular.woff": { - "role": "observe", - "sha256": "d96cdf2b3bdd4d64a8fd5f74a4c467f123a8a73931cd435889f08ffaf9bf947a", - "size": 10588 - }, - "dist-webui/client/fonts/KaTeX_Script-Regular.woff2": { - "role": "observe", - "sha256": "036d4e95149b69ff9bcc0cd55771efeb25ffa3947293e69acd78d5ac328c684b", - "size": 9644 - }, - "dist-webui/client/fonts/KaTeX_Size1-Regular.ttf": { - "role": "observe", - "sha256": "95b6d2f1a50173bfedb8c63e1d1c99b10427d0a4df4201cb44513b226951a22b", - "size": 12228 - }, - "dist-webui/client/fonts/KaTeX_Size1-Regular.woff": { - "role": "observe", - "sha256": "c943cc986384f59e86bea5fd7dc50a9c4dfe567a7c05eb40d6790720dead97c9", - "size": 6496 - }, - "dist-webui/client/fonts/KaTeX_Size1-Regular.woff2": { - "role": "observe", - "sha256": "6b47c40166b6dbe21a5dfca7718413f2147fd2399be1ba605d8ad39cedf25dfe", - "size": 5468 - }, - "dist-webui/client/fonts/KaTeX_Size2-Regular.ttf": { - "role": "observe", - "sha256": "a6b2099fb555c60e3a0db3a08842ebf1d732c6eb4e4bf44913613bed4fc4e39b", - "size": 11508 - }, - "dist-webui/client/fonts/KaTeX_Size2-Regular.woff": { - "role": "observe", - "sha256": "2014c523c3210bcc166648c4d4cc57f05b747df07a24277bf71c51e67dc79e3d", - "size": 6188 - }, - "dist-webui/client/fonts/KaTeX_Size2-Regular.woff2": { - "role": "observe", - "sha256": "d04c54219f9eaec6d4d4fd42dfb28785975a4794d6b2fc71e566b9cd6db842dd", - "size": 5208 - }, - "dist-webui/client/fonts/KaTeX_Size3-Regular.ttf": { - "role": "observe", - "sha256": "500e04d54f0d51666332c9d2089aa803be22aa878eca539e59fa53c6e522b082", - "size": 7588 - }, - "dist-webui/client/fonts/KaTeX_Size3-Regular.woff": { - "role": "observe", - "sha256": "6ab6b62e9b62dae2c00dd90f791bd10950be0ecc3490d7d6045f51c2e8fe0949", - "size": 4420 - }, - "dist-webui/client/fonts/KaTeX_Size3-Regular.woff2": { - "role": "observe", - "sha256": "73d591271b1604960cb10bb90fee021670af7297017e0e98480b332d11f51995", - "size": 3624 - }, - "dist-webui/client/fonts/KaTeX_Size4-Regular.ttf": { - "role": "observe", - "sha256": "c647367d1dd4e162468717d020e1fc0f1dc5c26ebfdffbe55261713bf88c5877", - "size": 10364 - }, - "dist-webui/client/fonts/KaTeX_Size4-Regular.woff": { - "role": "observe", - "sha256": "99f9c6750b489c9462bf04900bd3f939df9b829339daaaaa99ef5495cdddea58", - "size": 5980 - }, - "dist-webui/client/fonts/KaTeX_Size4-Regular.woff2": { - "role": "observe", - "sha256": "a4af7d414440a1c1790825cfb700cf9cf43b0f2c4b04f0ebc523011ad9853ec0", - "size": 4928 - }, - "dist-webui/client/fonts/KaTeX_Typewriter-Regular.ttf": { - "role": "observe", - "sha256": "f01f3e87d9c6a61c0c081ceb577abd864eb00a612f7ac1620dd6915fad2ef5aa", - "size": 27556 - }, - "dist-webui/client/fonts/KaTeX_Typewriter-Regular.woff": { - "role": "observe", - "sha256": "e14fed02b1aba7ce9f5afd5844b5d0321b22351febc720e0de8b8723527609f7", - "size": 16028 - }, - "dist-webui/client/fonts/KaTeX_Typewriter-Regular.woff2": { - "role": "observe", - "sha256": "71d517d67827787cfabdf186914cc3358eda539e37931941f2b2fd4a21f68c0b", - "size": 13568 - }, - "dist-webui/client/fonts/LICENSE.katex-fonts": { - "role": "observe", - "sha256": "00a890c71e7cf602c5237d25f7ac9fc9fa0a094f4af5d32c7c9e30e81971b792", - "size": 220, - "normalized_sha256": "00a890c71e7cf602c5237d25f7ac9fc9fa0a094f4af5d32c7c9e30e81971b792" - }, "docs/README.md": { "role": "index", "sha256": "716a63f5c7999e61aa40f7c9bad44ade0a2efc1f6c630568d9f110d9a6aed089", @@ -1768,9 +1032,9 @@ }, "docs/webui-ci.md": { "role": "index", - "sha256": "5a7b8866de72ed32010db542b954c55a2b2ea877cecfd6f883ae24e7d48b6bb9", - "size": 5875, - "normalized_sha256": "5a7b8866de72ed32010db542b954c55a2b2ea877cecfd6f883ae24e7d48b6bb9" + "sha256": "bcc8883deecc6fdd2f0e4695f77b61ba0b1e8e45c5ca9d5b8ef18a6290709c0f", + "size": 6292, + "normalized_sha256": "bcc8883deecc6fdd2f0e4695f77b61ba0b1e8e45c5ca9d5b8ef18a6290709c0f" }, "examples/clamp/README.md": { "role": "index", @@ -30162,9 +29426,9 @@ }, "packages/webui/test/integration/loopback-harness-path.test.ts": { "role": "observe", - "sha256": "2fcef7455a83c28dad13617ea6e905d967cecb86d65a7bd008734cd249edc498", - "size": 24591, - "normalized_sha256": "2fcef7455a83c28dad13617ea6e905d967cecb86d65a7bd008734cd249edc498" + "sha256": "787f5c8b3c5aa47d0ee36aac385d3f34adb31e45b3ec64a4b17dd29dff16944b", + "size": 25399, + "normalized_sha256": "787f5c8b3c5aa47d0ee36aac385d3f34adb31e45b3ec64a4b17dd29dff16944b" }, "packages/webui/test/integration/mcode-tools-lease-client.fixture.ts": { "role": "index", @@ -32460,9 +31724,9 @@ }, "scripts/run-webui-server.mjs": { "role": "index", - "sha256": "038b6458c00d840e022eef29fa35c5860fd0ed880e3bdeea82128d5bf82aa3e4", - "size": 13643, - "normalized_sha256": "038b6458c00d840e022eef29fa35c5860fd0ed880e3bdeea82128d5bf82aa3e4" + "sha256": "d3b8307ce316cb5754dd77fecb8fb2732fb332b5c2073d41c70b90c9d6ec397c", + "size": 14060, + "normalized_sha256": "d3b8307ce316cb5754dd77fecb8fb2732fb332b5c2073d41c70b90c9d6ec397c" }, "scripts/source-candidate.mjs": { "role": "index", @@ -32550,9 +31814,9 @@ }, "test/source-sync.test.mjs": { "role": "index", - "sha256": "d39f4736e954df57652b623fa3fffb8f511994c39cc69317845538f9cb258aea", - "size": 95467, - "normalized_sha256": "d39f4736e954df57652b623fa3fffb8f511994c39cc69317845538f9cb258aea" + "sha256": "b7c32872ad04969a7872154f83eb87d9b091ac1e8571e45eb027360a82fcc603", + "size": 95660, + "normalized_sha256": "b7c32872ad04969a7872154f83eb87d9b091ac1e8571e45eb027360a82fcc603" }, "test/sqlite-message-contention.test.ts": { "role": "observe", diff --git a/.github/workflows/webui-ci.yml b/.github/workflows/webui-ci.yml index 733b2b77..6213264a 100644 --- a/.github/workflows/webui-ci.yml +++ b/.github/workflows/webui-ci.yml @@ -17,7 +17,7 @@ jobs: webui: name: WebUI (${{ matrix.os }}) runs-on: ${{ matrix.os }} - timeout-minutes: 40 + timeout-minutes: ${{ matrix.os == 'macos-latest' && 60 || 40 }} strategy: fail-fast: false matrix: @@ -89,6 +89,7 @@ jobs: WEBUI_BROWSER_OUTPUT_DIR: ${{ runner.temp }}/webui-browser-diagnostics/units run: pnpm test:webui - name: Test WebUI browser interactions + timeout-minutes: 30 env: WEBUI_BROWSER_OUTPUT_DIR: ${{ runner.temp }}/webui-browser-diagnostics/browser if: ${{ !cancelled() && steps.build.outcome == 'success' && steps.browsers.outcome == 'success' }} diff --git a/aoci.code.txt b/aoci.code.txt index b6c5f1a9..65b543c6 100644 --- a/aoci.code.txt +++ b/aoci.code.txt @@ -109,7 +109,7 @@ sync-issue-to-feishu.yml[FV4M]: F:Defines legacy Feishu notification for eligibl webui-npm-preview.yml[FV4S]: F:Defines legacy npm preview package verification for the WebUI branch. | R:- | A:- | S:- ===//.github/workflows/=== -webui-ci.yml[FV4S]: F:Runs WebUI checks on Linux, macOS and Windows for main pushes, pull requests and manual dispatch. | R:code:packages/webui/package.json,code:.github/workflows/update-visual-baselines.yml | A:- | S:Main runs may finish while a newer run waits. Native Design media tests require a real ffmpeg binary. +webui-ci.yml[FV4S]: F:Runs WebUI checks on Linux, macOS and Windows for main pushes, pull requests and manual dispatch. | R:code:packages/webui/package.json,code:.github/workflows/update-visual-baselines.yml | A:- | S:macOS has a longer job deadline and the browser step has its own deadline to leave time for artifact upload. update-visual-baselines.yml[FV4S]: F:Re-records the per-platform Playwright visual baselines of the named WebUI browser specs on the three CI runners and commits each runner's own pixels. | R:code:.github/workflows/webui-ci.yml | A:- | S:The refresh selects the browser mode the CI compares with — windowed Chromium on macOS — in a step of its own, because a step cannot read back the environment file it writes. ===//.plan/browser-use/board/=== @@ -209,7 +209,7 @@ source-sync.md[SG4T]: F:Defines generation, review, and application of upstream telemetry.md[SO4T]: F:Documents telemetry controls and the fields sent with usage events. | R:- | A:- | S:- tui-capabilities.md[SU4M]: F:Catalogues supported TUI behavior including output speed, terminal titles, and notifications. | R:- | A:- | S:- verification.md[SQ4S]: F:Records repository verification activities and outcomes by date and change. | R:- | A:- | S:- -webui-ci.md[SV4T]: F:Documents active WebUI CI, archived workflows, platform baselines and the manual npm release checklist. | R:code:.github/workflows/webui-ci.yml,code:release/webui-npm/package.json | A:- | S:Verify the exact release directory built with the Chrome store public key. +webui-ci.md[SV4S]: F:Documents active WebUI CI, time budgets, runtime diagnostics, archived workflows and manual npm release. | R:code:.github/workflows/webui-ci.yml,code:release/webui-npm/package.json | A:- | S:Verify the exact release directory built with the Chrome store public key. ===//docs/community/=== groups.md[SG4T]: F:Describes community support groups and the public entry point for participation. | R:- | A:- | S:- @@ -5801,7 +5801,7 @@ prepare-source-sync.mjs[SE4S]: F:Prepares an incoming public source synchronizat publish-cli-release.mjs[SE4T]: F:Publishes CLI release artifacts. | R:- | A:- | S:- release-cli.mjs[SE4T]: F:Coordinates the CLI release workflow. | R:- | A:- | S:- run-vitest-suite.mjs[SE4T]: F:Runs a named declared Vitest suite. | R:- | A:- | S:- -run-webui-server.mjs[SE4M]: F:Starts the WebUI server for local verification. | R:- | A:- | S:- +run-webui-server.mjs[EV4M]: F:Boots the WebUI development service, browser bridge and Mini App proxy, and coordinates shutdown. | R:code:packages/webui/src/server/service.ts | A:WEBUI_STARTUP_DIAGNOSTICS | S:Opt-in startup phase labels omit credentials and child output. source-candidate.mjs[SE4T]: F:Validates an incoming source candidate. | R:- | A:- | S:- source-inventory.mjs[SE4M]: F:Generates and checks the public source inventory. | R:- | A:- | S:- verify-cli-release.mjs[SE4T]: F:Verifies packaged CLI release artifacts. | R:- | A:- | S:- @@ -5860,7 +5860,7 @@ network-deny.mjs[SE4T]: F:Provides test helpers that deny network access. | R:- offline-environment.mjs[SE4T]: F:Prepares an offline environment for verification. | R:- | A:- | S:- public-artifact.test.mjs[SE4T]: F:Checks the contents and contracts of public artifacts. | R:- | A:- | S:- smoke.test.mjs[SE4M]: F:Runs smoke checks for the public distribution. | R:- | A:- | S:- -source-sync.test.mjs[TV6L]: F:Tests source synchronization, public CI policies and release tooling. | R:code:scripts/lib/acceptance-records.mjs,code:.github/workflows/webui-ci.yml | A:- | S:The public workflow contract permits only WebUI checks and named provisioning steps, protects active main runs from cancellation, and prevents the baseline refresh from publishing. +source-sync.test.mjs[TV6L]: F:Tests source synchronization, public CI policies and release tooling. | R:code:scripts/lib/acceptance-records.mjs,code:.github/workflows/webui-ci.yml | A:- | S:The workflow contract protects active main runs and reserves time for diagnostics after a browser step timeout. vitest-suites.json[FQ6L]: F:Declares the Vitest files every verification suite runs, per group. | R:- | A:- | S:A new Vitest file is registered in its group here; the Vitest config and the package scripts read this file instead of naming files themselves. windows-contract.test.mjs[SE4S]: F:Tests Windows-specific distribution and runtime contracts. | R:- | A:- | S:- diff --git a/docs/webui-ci.md b/docs/webui-ci.md index 1cde1248..920ea6af 100644 --- a/docs/webui-ci.md +++ b/docs/webui-ci.md @@ -25,6 +25,12 @@ After a successful build and Chromium installation, browser checks still run if unit tests fail. Package verification also runs after a successful build even if an earlier test suite failed. Each failure still makes the job fail; this keeps independent failures visible in one run instead of masking later suites. +The macOS job has a 60-minute budget because its unit and windowed browser +steps can consume the previous 40-minute job budget together. The browser step +has its own 30-minute limit so a stalled test run can still leave artifacts. +The development-server shutdown integration test reports bounded startup +phase timings on timeout or early exit. It omits child output, including the +credential printed by the launcher. Linux additionally installs Chromium system dependencies. Every platform runs the browser and package suites. This coverage declaration does not establish a passing run; platform and visual-baseline failures remain diff --git a/packages/webui/test/integration/loopback-harness-path.test.ts b/packages/webui/test/integration/loopback-harness-path.test.ts index a0ba1678..87e5b442 100644 --- a/packages/webui/test/integration/loopback-harness-path.test.ts +++ b/packages/webui/test/integration/loopback-harness-path.test.ts @@ -31,6 +31,7 @@ import { spawn } from "node:child_process"; import { mkdir, mkdtemp, rm, writeFile } from "node:fs/promises"; import { tmpdir } from "node:os"; import path from "node:path"; +import { createInterface } from "node:readline"; import { afterEach, describe, expect, it } from "vitest"; import { WebSocket } from "ws"; import type { RawData } from "ws"; @@ -268,14 +269,31 @@ describe("loopback to harness-port evidence", () => { await writeFile(path.join(directory, "config.yaml"), "beta:\n mcodeTools: false\n"); const child = spawn(process.execPath, ["--import", "tsx/esm", "scripts/run-webui-server.mjs"], { cwd: process.cwd(), - env: { ...process.env, MINIMAX_DATA_DIR: directory, WEBUI_SERVER_TSX: "1", WEBUI_SERVER_PORT: "0", WEBUI_MINIAPP_PORT: "0", WEBUI_HOST: "127.0.0.1", TSX_TSCONFIG_PATH: path.resolve("tsconfig.standalone.json") }, + env: { + ...process.env, + MINIMAX_DATA_DIR: directory, + __MAVIS_RUNTIME_MANAGED: "0", + WEBUI_SERVER_TSX: "1", + WEBUI_STARTUP_DIAGNOSTICS: "1", + WEBUI_SERVER_PORT: "0", + WEBUI_MINIAPP_PORT: "0", + WEBUI_HOST: "127.0.0.1", + TSX_TSCONFIG_PATH: path.resolve("tsconfig.standalone.json"), + }, stdio: ["ignore", "pipe", "pipe"], }); const exited = once(child, "exit"); // The launcher prints its synthetic credential. Capture it for the request, // but never include the process output in test diagnostics. let output = ""; - child.stderr.resume(); + const started = performance.now(); + const phases: string[] = []; + const stderr = createInterface({ input: child.stderr }); + stderr.on("line", (line) => { + const match = /^\[webui-startup\] ([a-z-]+)$/u.exec(line); + if (match && phases.length < 12) phases.push(`${match[1]} @ ${Math.round(performance.now() - started)}ms`); + }); + const diagnostics = () => `platform=${process.platform} node=${process.version} elapsed=${Math.round(performance.now() - started)}ms phases=${phases.join(" -> ") || "none"}`; const ready = new Promise<{ port: string; token: string }>((resolve, reject) => { child.on("error", reject); child.stdout.on("data", (chunk) => { @@ -284,15 +302,15 @@ describe("loopback to harness-port evidence", () => { const token = output.match(/credential token: (\S+)/u)?.[1]; if (port && token) resolve({ port, token }); }); - child.once("exit", (code) => reject(new Error(`Development server exited before readiness (${code})`))); + child.once("exit", (code, signal) => reject(new Error(`Development server exited before readiness (${code ?? signal}); ${diagnostics()}`))); }); - const bounded = async (work: Promise, label: string): Promise => { + const bounded = async (work: Promise, label: string, timeoutMs = 20_000): Promise => { let timer: ReturnType | undefined; - try { return await Promise.race([work, new Promise((_, reject) => { timer = setTimeout(() => reject(new Error(label)), 20_000); })]); } + try { return await Promise.race([work, new Promise((_, reject) => { timer = setTimeout(() => reject(new Error(`${label}; ${diagnostics()}`)), timeoutMs); })]); } finally { clearTimeout(timer); } }; try { - const { port, token } = await bounded(ready, "Development server did not become ready"); + const { port, token } = await bounded(ready, "Development server did not become ready", 40_000); const unauthorized = await fetch(`http://127.0.0.1:${port}/webui-shutdown`, { method: "POST" }); expect(unauthorized.status).toBe(401); expect(child.exitCode).toBeNull(); @@ -302,13 +320,14 @@ describe("loopback to harness-port evidence", () => { expect(await bounded(exited, "Development server did not exit after shutdown")).toEqual([0, null]); await expect(fetch(`http://127.0.0.1:${port}/health`)).rejects.toThrow(); } finally { + stderr.close(); if (child.exitCode === null && child.signalCode === null) { child.kill("SIGTERM"); await bounded(exited, "Development server cleanup timed out"); } await rm(directory, { recursive: true, force: true }); } - }, 45_000); + }, 85_000); it("opens an external absolute reference through the real file reader and authenticated byte route", async () => { const directory = await mkdtemp(path.join(tmpdir(), "webui-file-reference-")); diff --git a/scripts/run-webui-server.mjs b/scripts/run-webui-server.mjs index b832c200..0a801e53 100644 --- a/scripts/run-webui-server.mjs +++ b/scripts/run-webui-server.mjs @@ -50,6 +50,12 @@ if (!process.env.WEBUI_SERVER_TSX) { process.on("SIGINT", onSignal); process.on("SIGTERM", onSignal); } else { + const startupStage = (stage) => { + if (process.env.WEBUI_STARTUP_DIAGNOSTICS === "1") { + console.error(`[webui-startup] ${stage}`); + } + }; + startupStage("importing-runtime"); const os = await import("node:os"); const path = await import("node:path"); const { readFileSync } = await import("node:fs"); @@ -131,6 +137,7 @@ if (!process.env.WEBUI_SERVER_TSX) { dataDir, ...(extensionVersion ? { expectedExtensionVersion: extensionVersion } : {}), }); + startupStage("starting-browser-bridge"); await browserBridge.start(); // The browser adapter is built before the runtime host, because the host is // what takes the browser provider: the adapter reads its authorization @@ -157,6 +164,7 @@ if (!process.env.WEBUI_SERVER_TSX) { port: miniappPort, credential, }); + startupStage("starting-runtime-host"); const assembled = await createWebuiRuntimeHost({ dataDir, appVersion: "webui-dev", @@ -190,6 +198,7 @@ const port = createHarnessPortFromHost(assembled.host, { // // The bridge's pairings follow the switches, so the persisted authorization // has to reach them before the service starts serving. + startupStage("initializing-browser"); await browser.initialize(); const service = new WebuiService({ port, @@ -254,10 +263,13 @@ const port = createHarnessPortFromHost(assembled.host, { process.once("SIGTERM", shutdown); // Register cleanup before accepting a shutdown request from the page. + startupStage("binding-service"); const info = await service.start(); // The Mini App listener is bound before the first Mini App opens, so the // runtime cannot take this port for one of its own Mini Apps first. + startupStage("preparing-miniapp-proxy"); await miniappProxies.prepare(); + startupStage("ready"); console.log(`[webui] server listening at ${info.boundUrl}`); console.log(`[webui] Mini App port: ${miniappPort}`); printAccess(info, bindHost); diff --git a/test/source-sync.test.mjs b/test/source-sync.test.mjs index c9e8fa22..e2621df7 100644 --- a/test/source-sync.test.mjs +++ b/test/source-sync.test.mjs @@ -46,6 +46,8 @@ test('public WebUI CI runs only WebUI checks and cannot publish packages', () => const job = workflow.jobs.webui; assert.equal(job.env, undefined); assert.deepEqual(job.strategy.matrix.os, ['ubuntu-latest', 'macos-latest', 'windows-latest']); + assert.equal(job['timeout-minutes'], "${{ matrix.os == 'macos-latest' && 60 || 40 }}"); + assert.equal(job.steps.find(step => step.run === 'pnpm test:webui-browser')['timeout-minutes'], 30); const directories = job.steps.find(step => step.name === 'Set isolated WebUI output directories'); assert.equal(directories.shell, 'bash'); assert.match(directories.run, /MCODE_WEBUI_VERIFY_DIR=\$RUNNER_TEMP\//); From df7a15398b1c979fbd22fb3a7fad7acf364adc64 Mon Sep 17 00:00:00 2001 From: Jiaxiaoyuan Date: Fri, 20 Nov 2026 10:30:37 +0800 Subject: [PATCH 02/10] test(webui): identify local images blocking screenshot readiness --- .aoci/baseline.json | 14 +++++++------- aoci.code.txt | 2 +- packages/webui/test/browser/harness.mjs | 11 +++++++++-- 3 files changed, 17 insertions(+), 10 deletions(-) diff --git a/.aoci/baseline.json b/.aoci/baseline.json index 306a131a..7d2be4ef 100644 --- a/.aoci/baseline.json +++ b/.aoci/baseline.json @@ -1,7 +1,7 @@ { "version": 1, "created_at": "2026-11-19T05:53:26Z", - "updated_at": "2026-11-20T02:26:37Z", + "updated_at": "2026-11-20T02:30:36Z", "files": { ".agents/skills/changelog-card-publish/SKILL.md": { "role": "index", @@ -773,9 +773,9 @@ }, "aoci.code.txt": { "role": "index", - "sha256": "4c17903ac4570ab4ebe78117d54390dbe9c4a7fd81a222dd136512a4eb80aef6", - "size": 636496, - "normalized_sha256": "4c17903ac4570ab4ebe78117d54390dbe9c4a7fd81a222dd136512a4eb80aef6" + "sha256": "f558e7dae48a2c6177c540f185cc6f220f0d3c75bda577e0abbc1bd53c3ac78a", + "size": 636650, + "normalized_sha256": "f558e7dae48a2c6177c540f185cc6f220f0d3c75bda577e0abbc1bd53c3ac78a" }, "aoci.meta.txt": { "role": "index", @@ -28536,9 +28536,9 @@ }, "packages/webui/test/browser/harness.mjs": { "role": "index", - "sha256": "fd44f3d8eb9cead6e0fedf28ba9421d4ae06f96aa16334d428270380e3636097", - "size": 11587, - "normalized_sha256": "fd44f3d8eb9cead6e0fedf28ba9421d4ae06f96aa16334d428270380e3636097" + "sha256": "4c4d5d80080d44fc859f6ca73bd0bc134a6fb93916ddcb1bef605ec8d4ba9bd9", + "size": 11844, + "normalized_sha256": "4c4d5d80080d44fc859f6ca73bd0bc134a6fb93916ddcb1bef605ec8d4ba9bd9" }, "packages/webui/test/browser/miniapp-panel.spec.mjs": { "role": "index", diff --git a/aoci.code.txt b/aoci.code.txt index 65b543c6..f57c8583 100644 --- a/aoci.code.txt +++ b/aoci.code.txt @@ -5682,7 +5682,7 @@ feedback.spec.mjs[SE4S]: F:Tests accessible field error feedback. | R:- | A:- | field-contract.spec.mjs[SE4S]: F:Tests that form controls have accessible names. | R:- | A:- | S:- fixture.mjs[SE4L]: F:Installs the browser fixture transport. | R:- | A:- | S:- goal-retention.spec.mjs[SE4S]: F:Tests retention of session goal state during a pending refresh. | R:- | A:- | S:- -harness.mjs[SE4M]: F:Provides browser test harness exports and setup. | R:- | A:- | S:- +harness.mjs[TQ4M]: F:Provides built-client Playwright fixtures, test helpers and startup guards. | R:code:playwright.config.mjs | A:openApp, waitForLocalImages | S:Image readiness failures show path and decode state without query parameters. miniapp-panel.spec.mjs[SE4L]: F:Tests Mini App launcher refresh behavior. | R:- | A:- | S:- miniapp-standalone-tab.spec.mjs[SE4S]: F:Tests promotion of inline Mini Apps to standalone tabs. | R:- | A:- | S:- model-picker-interactions.spec.mjs[SE4M]: F:Tests model picker interactions and display of the selected model. | R:- | A:- | S:- diff --git a/packages/webui/test/browser/harness.mjs b/packages/webui/test/browser/harness.mjs index 234cab3b..afc915a8 100644 --- a/packages/webui/test/browser/harness.mjs +++ b/packages/webui/test/browser/harness.mjs @@ -73,8 +73,15 @@ export const screenshotOptions = { animations: "disabled", ...PIXEL_BUDGET }; */ export async function waitForLocalImages(page) { await expect.poll(() => page.locator('img[src^="/assets/"]').evaluateAll((images) => - images.every((image) => image instanceof HTMLImageElement && image.complete && image.naturalWidth > 0), - )).toBe(true); + images + .filter((image) => !image.complete || image.naturalWidth === 0) + .map((image) => ({ + src: new URL(image.currentSrc || image.src).pathname, + complete: image.complete, + naturalWidth: image.naturalWidth, + loading: image.loading, + })), + ), { message: "Local images must load before geometry and screenshot checks" }).toEqual([]); } export async function configureFixture(page, setup) { From 32e1b6beb0ccf21c27d57203bbe799b19884baa6 Mon Sep 17 00:00:00 2001 From: Jiaxiaoyuan Date: Fri, 20 Nov 2026 10:36:17 +0800 Subject: [PATCH 03/10] test(webui): control usage hover grace period in browser checks --- .aoci/baseline.json | 14 +++++----- aoci.code.txt | 2 +- .../webui/test/browser/account-login.spec.mjs | 27 ++++++++++--------- 3 files changed, 22 insertions(+), 21 deletions(-) diff --git a/.aoci/baseline.json b/.aoci/baseline.json index 7d2be4ef..cbcb70d3 100644 --- a/.aoci/baseline.json +++ b/.aoci/baseline.json @@ -1,7 +1,7 @@ { "version": 1, "created_at": "2026-11-19T05:53:26Z", - "updated_at": "2026-11-20T02:30:36Z", + "updated_at": "2026-11-20T02:35:44Z", "files": { ".agents/skills/changelog-card-publish/SKILL.md": { "role": "index", @@ -773,9 +773,9 @@ }, "aoci.code.txt": { "role": "index", - "sha256": "f558e7dae48a2c6177c540f185cc6f220f0d3c75bda577e0abbc1bd53c3ac78a", - "size": 636650, - "normalized_sha256": "f558e7dae48a2c6177c540f185cc6f220f0d3c75bda577e0abbc1bd53c3ac78a" + "sha256": "c5b68e3ad7c42eca6302e86aeef54bc99903531ea73adaadefb8acf8a087c1e5", + "size": 636644, + "normalized_sha256": "c5b68e3ad7c42eca6302e86aeef54bc99903531ea73adaadefb8acf8a087c1e5" }, "aoci.meta.txt": { "role": "index", @@ -28400,9 +28400,9 @@ }, "packages/webui/test/browser/account-login.spec.mjs": { "role": "index", - "sha256": "f1242746a1495dd3256d29ea8c396a3c1a39a10affcd71547dba32a0c5ffbad0", - "size": 15081, - "normalized_sha256": "f1242746a1495dd3256d29ea8c396a3c1a39a10affcd71547dba32a0c5ffbad0" + "sha256": "c30c4ae40493e993216f45107568e6390a25eaa887433a5ad48a843fa7e12be6", + "size": 15084, + "normalized_sha256": "c30c4ae40493e993216f45107568e6390a25eaa887433a5ad48a843fa7e12be6" }, "packages/webui/test/browser/api-key-feedback.spec.mjs": { "role": "index", diff --git a/aoci.code.txt b/aoci.code.txt index f57c8583..9c59b491 100644 --- a/aoci.code.txt +++ b/aoci.code.txt @@ -5665,7 +5665,7 @@ tools.mjs[LB6L]: F:Holds the pure Design rules: how a batch is laid out, where t ===//packages/webui/test/browser/=== README.md[SE4T]: F:Documents the WebUI browser test suite. | R:- | A:- | S:- acceptance-record.ts[SE4M]: F:Defines acceptance observations for browser workflow evidence. | R:- | A:- | S:- -account-login.spec.mjs[TU4M]: F:Tests the account login and the subscription display in the browser, including the hover that refreshes the quota. | R:- | A:- | S:The hover's first request is awaited before the requests are counted, so a count read while that request was still on its way does not blame the hover loop. +account-login.spec.mjs[TU4M]: F:Tests account login and subscription quota rendering in the built WebUI. | R:code:packages/webui/src/client/features/account/ui/UserMenu.tsx | A:- | S:The hover test controls the browser clock on both sides of the close grace period so runner input latency cannot reopen the panel. api-key-feedback.spec.mjs[SE4M]: F:Tests presentation of API key connection feedback. | R:- | A:- | S:- application-observation.spec.mjs[SE4T]: F:Tests application observation and stale presenter results. | R:- | A:- | S:- application-performance.mjs[SE4S]: F:Defines application performance measurement thresholds and helpers. | R:- | A:- | S:- diff --git a/packages/webui/test/browser/account-login.spec.mjs b/packages/webui/test/browser/account-login.spec.mjs index c3be247f..0690b6a7 100644 --- a/packages/webui/test/browser/account-login.spec.mjs +++ b/packages/webui/test/browser/account-login.spec.mjs @@ -35,29 +35,25 @@ test.beforeEach(async ({ page }) => { for (const theme of ["light", "dark"]) { test(`usage hover keeps the subscription label stable during refresh (${theme})`, async ({ page }) => { + await page.clock.install(); await page.addInitScript((value) => window.localStorage.setItem("webui-theme", value), theme); await configureFixture(page, () => window.__fixture.setUsageQuotaResult({ signedIn: true, hasTokenPlan: true, tokenPlanTier: "Explore" })); await openApp(page); const trigger = page.getByTestId("sidebar-user-menu-trigger"); + const usageRequestCount = () => + page.evaluate(() => window.__fixture.requests.filter((r) => r.operation === "getUsageQuota").length); + await expect(trigger.locator("small")).toHaveText("Explore"); + const requestsAtStartup = await usageRequestCount(); await trigger.click(); const usage = page.getByTestId("user-menu-usage"); await usage.hover(); - await expect(trigger.locator("small")).toHaveText("Explore"); + await expect.poll(usageRequestCount).toBeGreaterThan(requestsAtStartup); + await expect(page.getByTestId("usage-popover-content")).toBeVisible(); await trigger.evaluate((element) => { window.__railLabelChanges = []; new MutationObserver(() => window.__railLabelChanges.push(element.querySelector("small")?.textContent ?? null)).observe(element, { childList: true, subtree: true, characterData: true }); }); - // The first hover asks for the quota, and the answer is counted only - // once it has arrived: a count read while that request is still on its - // way reports one request too few, and the case blames the hover loop - // for a request the hover itself made. - await expect - .poll( - () => page.evaluate(() => window.__fixture.requests.filter((r) => r.operation === "getUsageQuota").length), - { timeout: 10_000 }, - ) - .toBeGreaterThan(0); - const requestsBefore = await page.evaluate(() => window.__fixture.requests.filter((r) => r.operation === "getUsageQuota").length); + const requestsBefore = await usageRequestCount(); const points = await page.evaluate(() => { const center = (testId) => { const element = document.querySelector(`[data-testid="${testId}"]`); @@ -67,13 +63,18 @@ test(`usage hover keeps the subscription label stable during refresh (${theme})` }; return { settings: center("user-menu-settings"), usage: center("user-menu-usage") }; }); + // Test a return within the hover grace period independently of runner latency. + await page.clock.pauseAt(await page.evaluate(() => Date.now() + 1_000)); for (let index = 0; index < 12; index += 1) { await page.mouse.move(points.settings.x, points.settings.y); + await page.clock.runFor(40); await page.mouse.move(points.usage.x, points.usage.y); } - expect(await page.evaluate(() => window.__fixture.requests.filter((r) => r.operation === "getUsageQuota").length)).toBe(requestsBefore); + expect(await usageRequestCount()).toBe(requestsBefore); expect(await page.evaluate(() => window.__railLabelChanges.filter((label) => label !== "Explore"))).toEqual([]); await page.mouse.move(700, 150); + await page.clock.runFor(250); + await page.clock.resume(); await expect(page.getByTestId("usage-popover")).toHaveCount(0); await page.evaluate(() => window.__fixture.delayEvery("getUsageQuota", {})); await usage.hover(); From 3c9fdca10db161c05a733f4c9db41fa27619c989 Mon Sep 17 00:00:00 2001 From: Jiaxiaoyuan Date: Fri, 20 Nov 2026 10:44:51 +0800 Subject: [PATCH 04/10] test(webui): capture TCP states on Windows browser buffer errors --- .aoci/baseline.json | 14 ++++++------- aoci.code.txt | 2 +- packages/webui/test/browser/harness.mjs | 28 +++++++++++++++++++++++++ 3 files changed, 36 insertions(+), 8 deletions(-) diff --git a/.aoci/baseline.json b/.aoci/baseline.json index cbcb70d3..f97faa4a 100644 --- a/.aoci/baseline.json +++ b/.aoci/baseline.json @@ -1,7 +1,7 @@ { "version": 1, "created_at": "2026-11-19T05:53:26Z", - "updated_at": "2026-11-20T02:35:44Z", + "updated_at": "2026-11-20T02:44:51Z", "files": { ".agents/skills/changelog-card-publish/SKILL.md": { "role": "index", @@ -773,9 +773,9 @@ }, "aoci.code.txt": { "role": "index", - "sha256": "c5b68e3ad7c42eca6302e86aeef54bc99903531ea73adaadefb8acf8a087c1e5", - "size": 636644, - "normalized_sha256": "c5b68e3ad7c42eca6302e86aeef54bc99903531ea73adaadefb8acf8a087c1e5" + "sha256": "d57da827df3df8d17b249a4ed8d7863341d79d677400fe3942e3343032fd9271", + "size": 636671, + "normalized_sha256": "d57da827df3df8d17b249a4ed8d7863341d79d677400fe3942e3343032fd9271" }, "aoci.meta.txt": { "role": "index", @@ -28536,9 +28536,9 @@ }, "packages/webui/test/browser/harness.mjs": { "role": "index", - "sha256": "4c4d5d80080d44fc859f6ca73bd0bc134a6fb93916ddcb1bef605ec8d4ba9bd9", - "size": 11844, - "normalized_sha256": "4c4d5d80080d44fc859f6ca73bd0bc134a6fb93916ddcb1bef605ec8d4ba9bd9" + "sha256": "5a07df7ef468852002734de03fb83c9092a6b672db1832a9f95e8ab331bda343", + "size": 13075, + "normalized_sha256": "5a07df7ef468852002734de03fb83c9092a6b672db1832a9f95e8ab331bda343" }, "packages/webui/test/browser/miniapp-panel.spec.mjs": { "role": "index", diff --git a/aoci.code.txt b/aoci.code.txt index 9c59b491..82edc986 100644 --- a/aoci.code.txt +++ b/aoci.code.txt @@ -5682,7 +5682,7 @@ feedback.spec.mjs[SE4S]: F:Tests accessible field error feedback. | R:- | A:- | field-contract.spec.mjs[SE4S]: F:Tests that form controls have accessible names. | R:- | A:- | S:- fixture.mjs[SE4L]: F:Installs the browser fixture transport. | R:- | A:- | S:- goal-retention.spec.mjs[SE4S]: F:Tests retention of session goal state during a pending refresh. | R:- | A:- | S:- -harness.mjs[TQ4M]: F:Provides built-client Playwright fixtures, test helpers and startup guards. | R:code:playwright.config.mjs | A:openApp, waitForLocalImages | S:Image readiness failures show path and decode state without query parameters. +harness.mjs[TQ4M]: F:Provides built-client browser fixtures, readiness checks and failure artifacts. | R:code:playwright.config.mjs | A:openApp, waitForLocalImages | S:Windows buffer errors trigger a bounded TCP-state census. Image evidence omits URL query parameters. miniapp-panel.spec.mjs[SE4L]: F:Tests Mini App launcher refresh behavior. | R:- | A:- | S:- miniapp-standalone-tab.spec.mjs[SE4S]: F:Tests promotion of inline Mini Apps to standalone tabs. | R:- | A:- | S:- model-picker-interactions.spec.mjs[SE4M]: F:Tests model picker interactions and display of the selected model. | R:- | A:- | S:- diff --git a/packages/webui/test/browser/harness.mjs b/packages/webui/test/browser/harness.mjs index afc915a8..b39d0dac 100644 --- a/packages/webui/test/browser/harness.mjs +++ b/packages/webui/test/browser/harness.mjs @@ -13,12 +13,30 @@ // process happens to answer on the harness port. import { expect, test as base } from "@playwright/test"; +import { execFile } from "node:child_process"; import { mkdir, writeFile } from "node:fs/promises"; import { dirname } from "node:path"; +import { promisify } from "node:util"; /** The suite's `test`, carrying the harness-server guard for every test. */ export const test = base; +const windowsSocketSnapshots = new WeakMap(); +const execFileAsync = promisify(execFile); + +async function snapshotWindowsTcpStates() { + const capturedAt = new Date().toISOString(); + try { + const { stdout } = await execFileAsync("powershell.exe", [ + "-NoProfile", "-NonInteractive", "-Command", + "$ErrorActionPreference = 'Stop'; ConvertTo-Json -InputObject @(Get-NetTCPConnection | Group-Object State | Select-Object Name,Count) -Compress", + ], { timeout: 5_000, maxBuffer: 16_384, windowsHide: true }); + return { capturedAt, states: JSON.parse(stdout) }; + } catch (error) { + return { capturedAt, unavailable: typeof error?.code === "string" ? error.code : "collection-failed" }; + } +} + export async function attachJsonEvidence(name, value) { // list reporter 不落盘 body 附件;显式写入 outputDir 供 CI artifact 保留。 const path = test.info().outputPath(name); @@ -110,10 +128,20 @@ async function assertHarnessServer(page) { // fixtures first, some call `page.goto` directly), so it runs after the body has // navigated -- which is also what covers the tests that never reach `openApp`. test.beforeEach(async ({ page }) => { + if (process.platform === "win32") { + page.on("requestfailed", (request) => { + if (windowsSocketSnapshots.has(page) || request.failure()?.errorText !== "net::ERR_NO_BUFFER_SPACE") return; + windowsSocketSnapshots.set(page, snapshotWindowsTcpStates()); + }); + } await assertHarnessServerHealth(page); }); test.afterEach(async ({ page }) => { + const snapshot = windowsSocketSnapshots.get(page); + if (snapshot) { + await attachJsonEvidence("windows-tcp-no-buffer-space.json", await snapshot); + } expect(await page.evaluate(() => window.__WEBUI_TEST_SERVER_ID__)).toBe(expectedServerId()); }); From 69689ef29075af65b1a98ca6f10ecfefffc88f4f Mon Sep 17 00:00:00 2001 From: Jiaxiaoyuan Date: Fri, 20 Nov 2026 10:59:10 +0800 Subject: [PATCH 05/10] fix(ci): backport Playwright Windows TCP launch workaround --- .aoci/baseline.json | 20 ++++++++++---------- aoci.code.txt | 4 ++-- docs/webui-ci.md | 8 ++++++++ playwright.config.mjs | 19 +++++++++++++++++++ 4 files changed, 39 insertions(+), 12 deletions(-) diff --git a/.aoci/baseline.json b/.aoci/baseline.json index f97faa4a..96f27844 100644 --- a/.aoci/baseline.json +++ b/.aoci/baseline.json @@ -1,7 +1,7 @@ { "version": 1, "created_at": "2026-11-19T05:53:26Z", - "updated_at": "2026-11-20T02:44:51Z", + "updated_at": "2026-11-20T02:59:10Z", "files": { ".agents/skills/changelog-card-publish/SKILL.md": { "role": "index", @@ -773,9 +773,9 @@ }, "aoci.code.txt": { "role": "index", - "sha256": "d57da827df3df8d17b249a4ed8d7863341d79d677400fe3942e3343032fd9271", - "size": 636671, - "normalized_sha256": "d57da827df3df8d17b249a4ed8d7863341d79d677400fe3942e3343032fd9271" + "sha256": "99e9be378543c79b2b6c76c19d8a42c885974e99a385d890dd3017c540de7172", + "size": 636814, + "normalized_sha256": "99e9be378543c79b2b6c76c19d8a42c885974e99a385d890dd3017c540de7172" }, "aoci.meta.txt": { "role": "index", @@ -1032,9 +1032,9 @@ }, "docs/webui-ci.md": { "role": "index", - "sha256": "bcc8883deecc6fdd2f0e4695f77b61ba0b1e8e45c5ca9d5b8ef18a6290709c0f", - "size": 6292, - "normalized_sha256": "bcc8883deecc6fdd2f0e4695f77b61ba0b1e8e45c5ca9d5b8ef18a6290709c0f" + "sha256": "4584cfa08e132cdb59a5dd8ae44f06e708cb5d1ffd7dbc86a4e8ae03ec615c8d", + "size": 6739, + "normalized_sha256": "4584cfa08e132cdb59a5dd8ae44f06e708cb5d1ffd7dbc86a4e8ae03ec615c8d" }, "examples/clamp/README.md": { "role": "index", @@ -31268,9 +31268,9 @@ }, "playwright.config.mjs": { "role": "index", - "sha256": "8ab304b27014c840bc7426aa5e86615dc758a2d125ebc4f078fcd09b393ac15c", - "size": 3044, - "normalized_sha256": "8ab304b27014c840bc7426aa5e86615dc758a2d125ebc4f078fcd09b393ac15c" + "sha256": "3475a980829bbc0365b67f790155028cd77038d14b57f6092201af95121a5094", + "size": 4143, + "normalized_sha256": "3475a980829bbc0365b67f790155028cd77038d14b57f6092201af95121a5094" }, "pnpm-lock.yaml": { "role": "observe", diff --git a/aoci.code.txt b/aoci.code.txt index 82edc986..629f6b54 100644 --- a/aoci.code.txt +++ b/aoci.code.txt @@ -16,7 +16,7 @@ README_ZH.md[SG4S]: F:Explains MiniMax Code installation, source builds from mai SECURITY.md[SG4T]: F:Defines security reporting and source, account, and managed-service boundaries. | R:- | A:- | S:- THIRD_PARTY_NOTICES.md[SG4T]: F:Preserves third-party license and attribution notices, including AI Node Canvas. | R:- | A:- | S:- package.json[FV5T]: F:Declares workspace dependencies and root scripts for builds, releases, and verification. | R:- | A:- | S:- -playwright.config.mjs[SE4T]: F:Configures Playwright projects and the browser test server. | R:- | A:- | S:- +playwright.config.mjs[FQ4T]: F:Configures WebUI browser gates, fixture server, font environment and output directories. | R:code:packages/webui/test/browser/server.mjs | A:- | S:The Windows workaround replaces the pinned disabled-features switch to retain Playwright defaults. pnpm-workspace.yaml[SE4T]: F:Declares pnpm workspace package roots. | R:- | A:- | S:- tsconfig.node.json[SE4T]: F:Configures TypeScript for Node-side code. | R:- | A:- | S:- tsconfig.standalone.json[SE4L]: F:Configures standalone TypeScript checking and workspace path aliases. | R:- | A:- | S:- @@ -209,7 +209,7 @@ source-sync.md[SG4T]: F:Defines generation, review, and application of upstream telemetry.md[SO4T]: F:Documents telemetry controls and the fields sent with usage events. | R:- | A:- | S:- tui-capabilities.md[SU4M]: F:Catalogues supported TUI behavior including output speed, terminal titles, and notifications. | R:- | A:- | S:- verification.md[SQ4S]: F:Records repository verification activities and outcomes by date and change. | R:- | A:- | S:- -webui-ci.md[SV4S]: F:Documents active WebUI CI, time budgets, runtime diagnostics, archived workflows and manual npm release. | R:code:.github/workflows/webui-ci.yml,code:release/webui-npm/package.json | A:- | S:Verify the exact release directory built with the Chrome store public key. +webui-ci.md[SV4S]: F:Documents WebUI CI coverage, time budgets, diagnostics and manual npm release. | R:code:.github/workflows/webui-ci.yml,code:playwright.config.mjs | A:- | S:Windows tests on Playwright 1.63.0 backport the Chromium TCP port-randomization fix. ===//docs/community/=== groups.md[SG4T]: F:Describes community support groups and the public entry point for participation. | R:- | A:- | S:- diff --git a/docs/webui-ci.md b/docs/webui-ci.md index 920ea6af..efec9482 100644 --- a/docs/webui-ci.md +++ b/docs/webui-ci.md @@ -56,6 +56,14 @@ Linux, Windows and local runs remain headless by default. To reproduce the macOS CI browser mode locally, run `WEBUI_BROWSER_HEADED=1 pnpm test:webui-browser` after building the client and installing Chromium. +With Playwright 1.63.0, the Windows test browser disables +`TcpPortRandomizationWin` using the fix from +[Playwright #43605](https://github.com/microsoft/playwright/pull/43605). +This addresses intermittent `ERR_NO_BUFFER_SPACE` on local test requests. +It preserves the original disabled-feature list and does not change +production Chromium launches. If that error still occurs, the harness +attaches aggregate TCP state counts to the affected test. + ## Active and archived workflows Two workflows are active in `.github/workflows/`: `webui-ci.yml`, the gate above, diff --git a/playwright.config.mjs b/playwright.config.mjs index 4bf79529..6f8f9267 100644 --- a/playwright.config.mjs +++ b/playwright.config.mjs @@ -1,5 +1,6 @@ import { defineConfig } from "@playwright/test"; import { randomUUID } from "node:crypto"; +import { createRequire } from "node:module"; import { fileURLToPath } from "node:url"; import { prepareFontEnvironment } from "./scripts/lib/webui-font-environment.mjs"; @@ -34,6 +35,23 @@ const fontEnvironment = prepareFontEnvironment(root, { // reuses: it is a fresh machine per run and has nothing to reuse. const reuseExistingServer = !process.env.CI && process.env.WEBUI_BROWSER_REUSE === "1"; const headedBrowser = process.env.WEBUI_BROWSER_HEADED === "1"; +const playwrightVersion = createRequire(import.meta.url)("@playwright/test/package.json").version; +// Backport Playwright #43605 for the pinned 1.63.0 browser. Chromium treats +// repeated disable-features switches as last-wins, so preserve the existing +// feature list and replace that exact switch instead of adding a second one. +const pinnedDisabledFeatures = "--disable-features=" + [ + "AvoidUnnecessaryBeforeUnloadCheckSync", "DestroyProfileOnBrowserClose", + "DialMediaRouteProvider", "GlobalMediaControls", "HttpsUpgrades", + "LensOverlay", "MediaRouter", "PaintHolding", "ThirdPartyStoragePartitioning", + "BlockOriginHeaderModificationOnRedirect", "Translate", "AutoDeElevate", + "OptimizationHints", "msForceBrowserSignIn", "msEdgeUpdateLaunchServicesPreferredVersion", +].join(","); +const windowsTcpWorkaround = process.platform === "win32" && playwrightVersion === "1.63.0" + ? { + ignoreDefaultArgs: [pinnedDisabledFeatures], + args: [`${pinnedDisabledFeatures},TcpPortRandomizationWin`], + } + : {}; export default defineConfig({ testDir: "./packages/webui/test/browser", @@ -55,6 +73,7 @@ export default defineConfig({ headless: !headedBrowser, trace: "retain-on-failure", launchOptions: { + ...windowsTcpWorkaround, env: { ...process.env, ...fontEnvironment.env }, }, }, From 08e0b11b979470f978e2ce63c8da467cf01364c5 Mon Sep 17 00:00:00 2001 From: Jiaxiaoyuan Date: Fri, 20 Nov 2026 11:21:50 +0800 Subject: [PATCH 06/10] Verify FFmpeg before running WebUI CI tests --- .aoci/baseline.json | 14 +++++++------- .github/workflows/webui-ci.yml | 20 +++++++++++++++++--- aoci.code.txt | 2 +- 3 files changed, 25 insertions(+), 11 deletions(-) diff --git a/.aoci/baseline.json b/.aoci/baseline.json index 96f27844..a6cb7cb5 100644 --- a/.aoci/baseline.json +++ b/.aoci/baseline.json @@ -1,7 +1,7 @@ { "version": 1, "created_at": "2026-11-19T05:53:26Z", - "updated_at": "2026-11-20T02:59:10Z", + "updated_at": "2026-11-20T03:21:33Z", "files": { ".agents/skills/changelog-card-publish/SKILL.md": { "role": "index", @@ -317,9 +317,9 @@ }, ".github/workflows/webui-ci.yml": { "role": "index", - "sha256": "67206edc989e11ae09c21b44c72c5068f2f42fd3898354aaaecfbb5bb01dcb85", - "size": 4339, - "normalized_sha256": "67206edc989e11ae09c21b44c72c5068f2f42fd3898354aaaecfbb5bb01dcb85" + "sha256": "dc8a4b1298f1dcd52e9a7aa38add4a11e02ee76b0624eb01d0461e5e2a798969", + "size": 4859, + "normalized_sha256": "dc8a4b1298f1dcd52e9a7aa38add4a11e02ee76b0624eb01d0461e5e2a798969" }, ".gitignore": { "role": "index", @@ -773,9 +773,9 @@ }, "aoci.code.txt": { "role": "index", - "sha256": "99e9be378543c79b2b6c76c19d8a42c885974e99a385d890dd3017c540de7172", - "size": 636814, - "normalized_sha256": "99e9be378543c79b2b6c76c19d8a42c885974e99a385d890dd3017c540de7172" + "sha256": "651df0dee5ea246e613acece4d6166b27f0ae682eda0d7b67b1cf02a32a2f632", + "size": 636864, + "normalized_sha256": "651df0dee5ea246e613acece4d6166b27f0ae682eda0d7b67b1cf02a32a2f632" }, "aoci.meta.txt": { "role": "index", diff --git a/.github/workflows/webui-ci.yml b/.github/workflows/webui-ci.yml index 6213264a..e893d656 100644 --- a/.github/workflows/webui-ci.yml +++ b/.github/workflows/webui-ci.yml @@ -64,6 +64,7 @@ jobs: id: browsers run: pnpm install:webui-browsers - name: Install FFmpeg + timeout-minutes: 8 shell: bash run: | # The native Design media paths run FFmpeg for real: the tests cut a @@ -71,15 +72,28 @@ jobs: # the binary on PATH they fail on `spawnSync ffmpeg ENOENT` rather # than on anything about the code under test. The Linux image ships # one already; the macOS and Windows images do not. - if command -v ffmpeg >/dev/null 2>&1; then - echo "ffmpeg is already present: $(ffmpeg -version | head -1)" + verify_ffmpeg() { + node -e 'require("node:child_process").execFileSync("ffmpeg", ["-version"], { stdio: "inherit" })' + } + if verify_ffmpeg; then + exit 0 elif [ "$RUNNER_OS" = "Linux" ]; then sudo apt-get update sudo apt-get install -y ffmpeg elif [ "$RUNNER_OS" = "macOS" ]; then brew install ffmpeg else - choco install ffmpeg -y --no-progress + for attempt in 1 2 3; do + echo "Installing FFmpeg with Chocolatey (attempt ${attempt}/3)" + if choco install ffmpeg -y --no-progress && verify_ffmpeg; then + exit 0 + fi + if [ "$attempt" -lt 3 ]; then sleep "$((attempt * 10))"; fi + done + fi + if ! verify_ffmpeg; then + echo "::error::FFmpeg is unavailable to Node after installation" + exit 1 fi - name: Install Chromium system dependencies if: runner.os == 'Linux' diff --git a/aoci.code.txt b/aoci.code.txt index 629f6b54..139f4acd 100644 --- a/aoci.code.txt +++ b/aoci.code.txt @@ -109,7 +109,7 @@ sync-issue-to-feishu.yml[FV4M]: F:Defines legacy Feishu notification for eligibl webui-npm-preview.yml[FV4S]: F:Defines legacy npm preview package verification for the WebUI branch. | R:- | A:- | S:- ===//.github/workflows/=== -webui-ci.yml[FV4S]: F:Runs WebUI checks on Linux, macOS and Windows for main pushes, pull requests and manual dispatch. | R:code:packages/webui/package.json,code:.github/workflows/update-visual-baselines.yml | A:- | S:macOS has a longer job deadline and the browser step has its own deadline to leave time for artifact upload. +webui-ci.yml[FV4S]: F:Runs WebUI checks on Linux, macOS and Windows for main pushes, pull requests and manual dispatch. | R:code:packages/webui/package.json,code:.github/workflows/update-visual-baselines.yml | A:- | S:Node probes FFmpeg before media tests and Chocolatey installation has bounded retries. Separate browser and macOS job deadlines preserve artifact upload time. update-visual-baselines.yml[FV4S]: F:Re-records the per-platform Playwright visual baselines of the named WebUI browser specs on the three CI runners and commits each runner's own pixels. | R:code:.github/workflows/webui-ci.yml | A:- | S:The refresh selects the browser mode the CI compares with — windowed Chromium on macOS — in a step of its own, because a step cannot read back the environment file it writes. ===//.plan/browser-use/board/=== From 892a927f2e2be4903a156ab47784ac0719b95ef7 Mon Sep 17 00:00:00 2001 From: Jiaxiaoyuan Date: Fri, 20 Nov 2026 11:23:38 +0800 Subject: [PATCH 07/10] Gate browser tests on verified FFmpeg --- .aoci/baseline.json | 20 ++++++++++---------- .github/workflows/webui-ci.yml | 3 ++- aoci.code.txt | 4 ++-- test/source-sync.test.mjs | 3 ++- 4 files changed, 16 insertions(+), 14 deletions(-) diff --git a/.aoci/baseline.json b/.aoci/baseline.json index a6cb7cb5..b76d67f2 100644 --- a/.aoci/baseline.json +++ b/.aoci/baseline.json @@ -1,7 +1,7 @@ { "version": 1, "created_at": "2026-11-19T05:53:26Z", - "updated_at": "2026-11-20T03:21:33Z", + "updated_at": "2026-11-20T03:23:32Z", "files": { ".agents/skills/changelog-card-publish/SKILL.md": { "role": "index", @@ -317,9 +317,9 @@ }, ".github/workflows/webui-ci.yml": { "role": "index", - "sha256": "dc8a4b1298f1dcd52e9a7aa38add4a11e02ee76b0624eb01d0461e5e2a798969", - "size": 4859, - "normalized_sha256": "dc8a4b1298f1dcd52e9a7aa38add4a11e02ee76b0624eb01d0461e5e2a798969" + "sha256": "a95e151062eea7fe55a87e43b9d329c5c34c6e531c939392821587aef7257eae", + "size": 4915, + "normalized_sha256": "a95e151062eea7fe55a87e43b9d329c5c34c6e531c939392821587aef7257eae" }, ".gitignore": { "role": "index", @@ -773,9 +773,9 @@ }, "aoci.code.txt": { "role": "index", - "sha256": "651df0dee5ea246e613acece4d6166b27f0ae682eda0d7b67b1cf02a32a2f632", - "size": 636864, - "normalized_sha256": "651df0dee5ea246e613acece4d6166b27f0ae682eda0d7b67b1cf02a32a2f632" + "sha256": "a60489cbe8bf199fe6b7c51061b8989ac4da78ec99112b1175f51d6aa4f43b3c", + "size": 636888, + "normalized_sha256": "a60489cbe8bf199fe6b7c51061b8989ac4da78ec99112b1175f51d6aa4f43b3c" }, "aoci.meta.txt": { "role": "index", @@ -31814,9 +31814,9 @@ }, "test/source-sync.test.mjs": { "role": "index", - "sha256": "b7c32872ad04969a7872154f83eb87d9b091ac1e8571e45eb027360a82fcc603", - "size": 95660, - "normalized_sha256": "b7c32872ad04969a7872154f83eb87d9b091ac1e8571e45eb027360a82fcc603" + "sha256": "2dfcaa3b46583d5d6a4c789d6b59107571a6ce64704e3fdea54ed94d9db9e2db", + "size": 95782, + "normalized_sha256": "2dfcaa3b46583d5d6a4c789d6b59107571a6ce64704e3fdea54ed94d9db9e2db" }, "test/sqlite-message-contention.test.ts": { "role": "observe", diff --git a/.github/workflows/webui-ci.yml b/.github/workflows/webui-ci.yml index e893d656..9f233a3f 100644 --- a/.github/workflows/webui-ci.yml +++ b/.github/workflows/webui-ci.yml @@ -64,6 +64,7 @@ jobs: id: browsers run: pnpm install:webui-browsers - name: Install FFmpeg + id: ffmpeg timeout-minutes: 8 shell: bash run: | @@ -106,7 +107,7 @@ jobs: timeout-minutes: 30 env: WEBUI_BROWSER_OUTPUT_DIR: ${{ runner.temp }}/webui-browser-diagnostics/browser - if: ${{ !cancelled() && steps.build.outcome == 'success' && steps.browsers.outcome == 'success' }} + if: ${{ !cancelled() && steps.build.outcome == 'success' && steps.browsers.outcome == 'success' && steps.ffmpeg.outcome == 'success' }} run: pnpm test:webui-browser - name: Verify WebUI package installation env: diff --git a/aoci.code.txt b/aoci.code.txt index 139f4acd..a8b7a437 100644 --- a/aoci.code.txt +++ b/aoci.code.txt @@ -109,7 +109,7 @@ sync-issue-to-feishu.yml[FV4M]: F:Defines legacy Feishu notification for eligibl webui-npm-preview.yml[FV4S]: F:Defines legacy npm preview package verification for the WebUI branch. | R:- | A:- | S:- ===//.github/workflows/=== -webui-ci.yml[FV4S]: F:Runs WebUI checks on Linux, macOS and Windows for main pushes, pull requests and manual dispatch. | R:code:packages/webui/package.json,code:.github/workflows/update-visual-baselines.yml | A:- | S:Node probes FFmpeg before media tests and Chocolatey installation has bounded retries. Separate browser and macOS job deadlines preserve artifact upload time. +webui-ci.yml[FV4S]: F:Runs WebUI checks on Linux, macOS and Windows for main pushes, pull requests and manual dispatch. | R:code:packages/webui/package.json,code:.github/workflows/update-visual-baselines.yml | A:- | S:Unit and browser tests require a successful Node FFmpeg probe. Chocolatey has bounded retries. Separate browser and macOS job deadlines preserve artifact upload time. update-visual-baselines.yml[FV4S]: F:Re-records the per-platform Playwright visual baselines of the named WebUI browser specs on the three CI runners and commits each runner's own pixels. | R:code:.github/workflows/webui-ci.yml | A:- | S:The refresh selects the browser mode the CI compares with — windowed Chromium on macOS — in a step of its own, because a step cannot read back the environment file it writes. ===//.plan/browser-use/board/=== @@ -5860,7 +5860,7 @@ network-deny.mjs[SE4T]: F:Provides test helpers that deny network access. | R:- offline-environment.mjs[SE4T]: F:Prepares an offline environment for verification. | R:- | A:- | S:- public-artifact.test.mjs[SE4T]: F:Checks the contents and contracts of public artifacts. | R:- | A:- | S:- smoke.test.mjs[SE4M]: F:Runs smoke checks for the public distribution. | R:- | A:- | S:- -source-sync.test.mjs[TV6L]: F:Tests source synchronization, public CI policies and release tooling. | R:code:scripts/lib/acceptance-records.mjs,code:.github/workflows/webui-ci.yml | A:- | S:The workflow contract protects active main runs and reserves time for diagnostics after a browser step timeout. +source-sync.test.mjs[TV6L]: F:Tests source synchronization, public CI policies and release tooling. | R:code:scripts/lib/acceptance-records.mjs,code:.github/workflows/webui-ci.yml | A:- | S:The workflow contract protects main runs, requires verified FFmpeg for browser tests and preserves time for diagnostic uploads. vitest-suites.json[FQ6L]: F:Declares the Vitest files every verification suite runs, per group. | R:- | A:- | S:A new Vitest file is registered in its group here; the Vitest config and the package scripts read this file instead of naming files themselves. windows-contract.test.mjs[SE4S]: F:Tests Windows-specific distribution and runtime contracts. | R:- | A:- | S:- diff --git a/test/source-sync.test.mjs b/test/source-sync.test.mjs index e2621df7..f16833c6 100644 --- a/test/source-sync.test.mjs +++ b/test/source-sync.test.mjs @@ -86,9 +86,10 @@ test('public WebUI CI runs only WebUI checks and cannot publish packages', () => assert.ok(commands.indexOf('pnpm build:webui') < commands.indexOf('pnpm test:webui-browser')); assert.equal(job.steps.find(step => step.run === 'pnpm build:webui').id, 'build'); assert.equal(job.steps.find(step => step.run === 'pnpm install:webui-browsers').id, 'browsers'); + assert.equal(job.steps.find(step => step.name === 'Install FFmpeg').id, 'ffmpeg'); const testConditions = { 'pnpm test:webui': undefined, - 'pnpm test:webui-browser': "${{ !cancelled() && steps.build.outcome == 'success' && steps.browsers.outcome == 'success' }}", + 'pnpm test:webui-browser': "${{ !cancelled() && steps.build.outcome == 'success' && steps.browsers.outcome == 'success' && steps.ffmpeg.outcome == 'success' }}", 'pnpm test:webui-package': "${{ !cancelled() && steps.build.outcome == 'success' }}", }; for (const [command, condition] of Object.entries(testConditions)) { From 73fff6108322a68605a4f56e788fc152a3307e90 Mon Sep 17 00:00:00 2001 From: Jiaxiaoyuan Date: Fri, 20 Nov 2026 11:34:35 +0800 Subject: [PATCH 08/10] Provision Windows FFmpeg from a checksum-pinned release --- .aoci/baseline.json | 20 ++++++++++---------- .github/workflows/webui-ci.yml | 19 ++++++++++++------- aoci.code.txt | 4 ++-- test/source-sync.test.mjs | 5 ++++- 4 files changed, 28 insertions(+), 20 deletions(-) diff --git a/.aoci/baseline.json b/.aoci/baseline.json index b76d67f2..0a72f8c7 100644 --- a/.aoci/baseline.json +++ b/.aoci/baseline.json @@ -1,7 +1,7 @@ { "version": 1, "created_at": "2026-11-19T05:53:26Z", - "updated_at": "2026-11-20T03:23:32Z", + "updated_at": "2026-11-20T03:34:27Z", "files": { ".agents/skills/changelog-card-publish/SKILL.md": { "role": "index", @@ -317,9 +317,9 @@ }, ".github/workflows/webui-ci.yml": { "role": "index", - "sha256": "a95e151062eea7fe55a87e43b9d329c5c34c6e531c939392821587aef7257eae", - "size": 4915, - "normalized_sha256": "a95e151062eea7fe55a87e43b9d329c5c34c6e531c939392821587aef7257eae" + "sha256": "9a3fabe4d4160d97fcb30dc9603135c1e18379f066186dd0c6ba51cdcbf1ae50", + "size": 5390, + "normalized_sha256": "9a3fabe4d4160d97fcb30dc9603135c1e18379f066186dd0c6ba51cdcbf1ae50" }, ".gitignore": { "role": "index", @@ -773,9 +773,9 @@ }, "aoci.code.txt": { "role": "index", - "sha256": "a60489cbe8bf199fe6b7c51061b8989ac4da78ec99112b1175f51d6aa4f43b3c", - "size": 636888, - "normalized_sha256": "a60489cbe8bf199fe6b7c51061b8989ac4da78ec99112b1175f51d6aa4f43b3c" + "sha256": "b9eb846eeac4548ce7aafc87595a19571fb3ede2aa944dc69d88cc9add95886b", + "size": 636878, + "normalized_sha256": "b9eb846eeac4548ce7aafc87595a19571fb3ede2aa944dc69d88cc9add95886b" }, "aoci.meta.txt": { "role": "index", @@ -31814,9 +31814,9 @@ }, "test/source-sync.test.mjs": { "role": "index", - "sha256": "2dfcaa3b46583d5d6a4c789d6b59107571a6ce64704e3fdea54ed94d9db9e2db", - "size": 95782, - "normalized_sha256": "2dfcaa3b46583d5d6a4c789d6b59107571a6ce64704e3fdea54ed94d9db9e2db" + "sha256": "dbcf0ef2fac7f8e3f090772fae358cf1be35e32e8a42016e7b25d4a0846aaec3", + "size": 96022, + "normalized_sha256": "dbcf0ef2fac7f8e3f090772fae358cf1be35e32e8a42016e7b25d4a0846aaec3" }, "test/sqlite-message-contention.test.ts": { "role": "observe", diff --git a/.github/workflows/webui-ci.yml b/.github/workflows/webui-ci.yml index 9f233a3f..f48ffccb 100644 --- a/.github/workflows/webui-ci.yml +++ b/.github/workflows/webui-ci.yml @@ -84,13 +84,18 @@ jobs: elif [ "$RUNNER_OS" = "macOS" ]; then brew install ffmpeg else - for attempt in 1 2 3; do - echo "Installing FFmpeg with Chocolatey (attempt ${attempt}/3)" - if choco install ffmpeg -y --no-progress && verify_ffmpeg; then - exit 0 - fi - if [ "$attempt" -lt 3 ]; then sleep "$((attempt * 10))"; fi - done + # Use the Gyan build linked from ffmpeg.org/download.html. + ffmpeg_build="ffmpeg-9.0.2-essentials_build" + ffmpeg_dir="$(mktemp -d "$(cygpath -u "$RUNNER_TEMP")/webui-ffmpeg.XXXXXX")" + archive="$ffmpeg_dir/$ffmpeg_build.zip" + curl --fail --location --retry 3 --retry-max-time 240 --max-time 90 \ + --output "$archive" \ + "https://github.com/GyanD/codexffmpeg/releases/download/9.0.2/$ffmpeg_build.zip" + echo "60f467265b1e312373dbcd92200c2618a74850f98d3d078e94296bb3fa2047ba $archive" | sha256sum --check + unzip -q "$archive" -d "$ffmpeg_dir" + ffmpeg_bin="$ffmpeg_dir/$ffmpeg_build/bin" + export PATH="$ffmpeg_bin:$PATH" + cygpath -w "$ffmpeg_bin" >> "$GITHUB_PATH" fi if ! verify_ffmpeg; then echo "::error::FFmpeg is unavailable to Node after installation" diff --git a/aoci.code.txt b/aoci.code.txt index a8b7a437..70370afc 100644 --- a/aoci.code.txt +++ b/aoci.code.txt @@ -109,7 +109,7 @@ sync-issue-to-feishu.yml[FV4M]: F:Defines legacy Feishu notification for eligibl webui-npm-preview.yml[FV4S]: F:Defines legacy npm preview package verification for the WebUI branch. | R:- | A:- | S:- ===//.github/workflows/=== -webui-ci.yml[FV4S]: F:Runs WebUI checks on Linux, macOS and Windows for main pushes, pull requests and manual dispatch. | R:code:packages/webui/package.json,code:.github/workflows/update-visual-baselines.yml | A:- | S:Unit and browser tests require a successful Node FFmpeg probe. Chocolatey has bounded retries. Separate browser and macOS job deadlines preserve artifact upload time. +webui-ci.yml[FV4S]: F:Runs WebUI checks on Linux, macOS and Windows for main pushes, pull requests and manual dispatch. | R:code:packages/webui/package.json,code:.github/workflows/update-visual-baselines.yml | A:- | S:Windows pins and verifies the FFmpeg ZIP, and Node validates it before tests. Separate deadlines preserve artifact upload time. update-visual-baselines.yml[FV4S]: F:Re-records the per-platform Playwright visual baselines of the named WebUI browser specs on the three CI runners and commits each runner's own pixels. | R:code:.github/workflows/webui-ci.yml | A:- | S:The refresh selects the browser mode the CI compares with — windowed Chromium on macOS — in a step of its own, because a step cannot read back the environment file it writes. ===//.plan/browser-use/board/=== @@ -5860,7 +5860,7 @@ network-deny.mjs[SE4T]: F:Provides test helpers that deny network access. | R:- offline-environment.mjs[SE4T]: F:Prepares an offline environment for verification. | R:- | A:- | S:- public-artifact.test.mjs[SE4T]: F:Checks the contents and contracts of public artifacts. | R:- | A:- | S:- smoke.test.mjs[SE4M]: F:Runs smoke checks for the public distribution. | R:- | A:- | S:- -source-sync.test.mjs[TV6L]: F:Tests source synchronization, public CI policies and release tooling. | R:code:scripts/lib/acceptance-records.mjs,code:.github/workflows/webui-ci.yml | A:- | S:The workflow contract protects main runs, requires verified FFmpeg for browser tests and preserves time for diagnostic uploads. +source-sync.test.mjs[TV6L]: F:Tests source synchronization, public CI policies and release tooling. | R:code:scripts/lib/acceptance-records.mjs,code:.github/workflows/webui-ci.yml | A:- | S:WebUI CI verifies the pinned FFmpeg download before extraction and requires FFmpeg for browser tests. Main runs are protected and artifact time is reserved. vitest-suites.json[FQ6L]: F:Declares the Vitest files every verification suite runs, per group. | R:- | A:- | S:A new Vitest file is registered in its group here; the Vitest config and the package scripts read this file instead of naming files themselves. windows-contract.test.mjs[SE4S]: F:Tests Windows-specific distribution and runtime contracts. | R:- | A:- | S:- diff --git a/test/source-sync.test.mjs b/test/source-sync.test.mjs index f16833c6..6107f717 100644 --- a/test/source-sync.test.mjs +++ b/test/source-sync.test.mjs @@ -72,7 +72,10 @@ test('public WebUI CI runs only WebUI checks and cannot publish packages', () => const ffmpeg = job.steps.find(step => step.name === 'Install FFmpeg'); assert.ok(ffmpeg, 'the native Design media paths run FFmpeg for real'); assert.match(ffmpeg.run, /ffmpeg/); - assert.doesNotMatch(ffmpeg.run, /npm publish|curl |wget /); + assert.doesNotMatch(ffmpeg.run, /npm publish|wget /); + assert.equal((ffmpeg.run.match(/\bcurl /g) ?? []).length, 1); + assert.match(ffmpeg.run, /https:\/\/github\.com\/GyanD\/codexffmpeg\/releases\/download\/\d+\.\d+\.\d+\//); + assert.match(ffmpeg.run, /[a-f0-9]{64}.*sha256sum --check\s+unzip /); const commands = job.steps.filter(step => step.run && step !== directories).map(step => step.run); const provisioning = ['pnpm install --frozen-lockfile', 'pnpm exec playwright install-deps chromium', ffmpeg.run]; for (const command of commands) { From 0695bd219b6c6f50a38742179c078ebd6a7581f3 Mon Sep 17 00:00:00 2001 From: Jiaxiaoyuan Date: Fri, 20 Nov 2026 11:50:51 +0800 Subject: [PATCH 09/10] Tolerate concurrent Design template deletion during listing --- .aoci/baseline.json | 14 +++++++------- aoci.code.txt | 2 +- packages/webui/src/runtime/design/templates.ts | 14 +++++++++++--- 3 files changed, 19 insertions(+), 11 deletions(-) diff --git a/.aoci/baseline.json b/.aoci/baseline.json index 0a72f8c7..fb56f48b 100644 --- a/.aoci/baseline.json +++ b/.aoci/baseline.json @@ -1,7 +1,7 @@ { "version": 1, "created_at": "2026-11-19T05:53:26Z", - "updated_at": "2026-11-20T03:34:27Z", + "updated_at": "2026-11-20T03:50:00Z", "files": { ".agents/skills/changelog-card-publish/SKILL.md": { "role": "index", @@ -773,9 +773,9 @@ }, "aoci.code.txt": { "role": "index", - "sha256": "b9eb846eeac4548ce7aafc87595a19571fb3ede2aa944dc69d88cc9add95886b", - "size": 636878, - "normalized_sha256": "b9eb846eeac4548ce7aafc87595a19571fb3ede2aa944dc69d88cc9add95886b" + "sha256": "fd65ad13daae90f670004eecf0ba71d4bb7edcc08b175db82d45aaa9b3182342", + "size": 637047, + "normalized_sha256": "fd65ad13daae90f670004eecf0ba71d4bb7edcc08b175db82d45aaa9b3182342" }, "aoci.meta.txt": { "role": "index", @@ -27008,9 +27008,9 @@ }, "packages/webui/src/runtime/design/templates.ts": { "role": "index", - "sha256": "30d3da07ac874322737ec571f407220741235c824a82f1785be7ea95f76a4c8a", - "size": 1991, - "normalized_sha256": "30d3da07ac874322737ec571f407220741235c824a82f1785be7ea95f76a4c8a" + "sha256": "18daa6a68e196f55fbe87e4a1552505e2c6eb3ec977b1725acc69a29a04e94f1", + "size": 2249, + "normalized_sha256": "18daa6a68e196f55fbe87e4a1552505e2c6eb3ec977b1725acc69a29a04e94f1" }, "packages/webui/src/runtime/design/understand-media.mjs": { "role": "index", diff --git a/aoci.code.txt b/aoci.code.txt index 70370afc..cb9b7e55 100644 --- a/aoci.code.txt +++ b/aoci.code.txt @@ -5418,7 +5418,7 @@ provider-audio.mjs[SE4T]: F:Defines supported audio extensions and prepares prov provider-upload.mjs[SE4M]: F:Creates the media uploader used by Design providers. | R:- | A:- | S:- store.d.mts[SE4T]: F:Declares the Design canvas store and normalization interfaces. | R:- | A:- | S:- store.mjs[PD7L]: F:Normalizes and persists the Design canvas documents, their revisions and their conflicts. | R:code:packages/webui/src/runtime/design/atomic-file.mjs | A:- | S:Every document is written atomically through the retrying helper, and a save based on an older revision is refused as a conflict instead of merged. -templates.ts[SE4T]: F:Reads and saves Design templates. | R:- | A:- | S:- +templates.ts[SE4T]: F:Reads, saves and removes stored Design templates. | R:code:packages/webui/src/runtime/design/design-service.ts | A:- | S:Listing skips templates deleted during the scan and still rejects malformed or non-regular entries. understand-media.mjs[SE4S]: F:Implements media understanding with configurable limits and tiers. | R:- | A:- | S:- video-request.mjs[SE4S]: F:Builds video requests for frame and collection input modes. | R:- | A:- | S:- voices.ts[SE4T]: F:Reads the voices available to native Design. | R:- | A:- | S:- diff --git a/packages/webui/src/runtime/design/templates.ts b/packages/webui/src/runtime/design/templates.ts index f0ccf92b..432318b6 100644 --- a/packages/webui/src/runtime/design/templates.ts +++ b/packages/webui/src/runtime/design/templates.ts @@ -16,9 +16,17 @@ export async function readDesignTemplates(dataDir: string): Promise Date: Fri, 20 Nov 2026 12:01:01 +0800 Subject: [PATCH 10/10] Wait for the fixture page before inspecting browser elements --- .aoci/baseline.json | 8 ++++---- .../test/integration/browser-core-agent-actions.test.ts | 6 +++++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.aoci/baseline.json b/.aoci/baseline.json index fb56f48b..79c1c4c6 100644 --- a/.aoci/baseline.json +++ b/.aoci/baseline.json @@ -1,7 +1,7 @@ { "version": 1, "created_at": "2026-11-19T05:53:26Z", - "updated_at": "2026-11-20T03:50:00Z", + "updated_at": "2026-11-20T04:00:47Z", "files": { ".agents/skills/changelog-card-publish/SKILL.md": { "role": "index", @@ -29360,9 +29360,9 @@ }, "packages/webui/test/integration/browser-core-agent-actions.test.ts": { "role": "observe", - "sha256": "0657f926e13151b25f32d8b0ab217b511bac35395f4105f9c7c8cf9add3342e7", - "size": 11723, - "normalized_sha256": "0657f926e13151b25f32d8b0ab217b511bac35395f4105f9c7c8cf9add3342e7" + "sha256": "1e78053cec4cb72c3d1af3b5d86f56bb10fe7a9371e97335356869cc971012ae", + "size": 11980, + "normalized_sha256": "1e78053cec4cb72c3d1af3b5d86f56bb10fe7a9371e97335356869cc971012ae" }, "packages/webui/test/integration/browser-panel-live-navigation.test.ts": { "role": "observe", diff --git a/packages/webui/test/integration/browser-core-agent-actions.test.ts b/packages/webui/test/integration/browser-core-agent-actions.test.ts index 489d83a0..68813f68 100644 --- a/packages/webui/test/integration/browser-core-agent-actions.test.ts +++ b/packages/webui/test/integration/browser-core-agent-actions.test.ts @@ -209,6 +209,10 @@ describe("the Agent's browser tools over Browser Core", () => { tools = { execute: (action, input) => adapter.execute(context, action as never, input), }; + await waitFor( + async () => (await readSelectionTitle()) === "agent driven", + "the newly opened fixture document to become the selected page", + ); } it("inspects the page and gets a reference it can act on", { timeout: BROWSER_CASE_BUDGET_MS }, async () => { @@ -216,7 +220,7 @@ describe("the Agent's browser tools over Browser Core", () => { const answer = await inspectElements(); const elements = answer.elements ?? []; - expect(elements.length).toBeGreaterThan(0); + expect(elements.length, `Browser Core returned no elements for fixture page titled "${await readSelectionTitle()}"`).toBeGreaterThan(0); // The reference is the opaque form Browser Core issues. A CSS selector or // a coordinate would be a different thing: the reference is what carries