From f102ffb33587b61774caf18012cb314eae4bf45c Mon Sep 17 00:00:00 2001 From: Jinwoo-H Date: Tue, 1 Sep 2026 22:16:42 -0400 Subject: [PATCH] fix(ci): restore root buffer dep, re-pin the terminal WebView payload - The 1A dependency restore dropped root `buffer` as unused, but the ssh-docker-native-chat-transcript e2e spec imports the mobile capability broker from the root install, and that chain reaches `buffer/`. Both e2e jobs failed at spec load. - main's #18028 pins the terminal WebView payload; the branch's terminal-path-tap mirror carries the multi-path guard that the shared matcher has (55 bytes), so the pin moves with it. Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb --- .../terminal-webview-payload-hash.test.ts | 4 ++-- package.json | 1 + pnpm-lock.yaml | 16 ++++++++++++++++ 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/mobile/src/terminal/terminal-webview-payload-hash.test.ts b/mobile/src/terminal/terminal-webview-payload-hash.test.ts index f8bfa4bd134..941a36521ae 100644 --- a/mobile/src/terminal/terminal-webview-payload-hash.test.ts +++ b/mobile/src/terminal/terminal-webview-payload-hash.test.ts @@ -6,8 +6,8 @@ import { XTERM_HTML } from './terminal-webview-html' // uncovered region ships silently. A diff here means the emitted WebView source changed — // update these values only when that change is deliberate, and only after checking the // document still runs. Refactors that merely move slice boundaries must leave them alone. -const EXPECTED_SHA256 = '42cc000faddc3b58b8fd4855f848c7878f0cd6166c613f66d733645e8e1b9608' -const EXPECTED_LENGTH = 729776 +const EXPECTED_SHA256 = 'ddc2d274304e864eb1dd848f7eb9c366e8b26d4bad369ffd4b6d52d84d1cbaeb' +const EXPECTED_LENGTH = 729831 describe('terminal WebView payload', () => { it('composes the expected document', () => { diff --git a/package.json b/package.json index 74cbc68271f..907527577c6 100644 --- a/package.json +++ b/package.json @@ -230,6 +230,7 @@ "@xterm/addon-web-links": "0.13.0-beta.300", "@xterm/addon-webgl": "0.20.0-beta.299", "@xterm/xterm": "6.1.0-beta.303", + "buffer": "6.0.3", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "cmdk": "^1.1.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2f1cd63dc99..55446adf55c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -335,6 +335,9 @@ importers: '@xterm/xterm': specifier: 6.1.0-beta.303 version: 6.1.0-beta.303(patch_hash=98756bcedc402bcdb7c6ab7b015d2e59cd18e97b03a2c06a27e95bb3ba429d9d) + buffer: + specifier: 6.0.3 + version: 6.0.3 class-variance-authority: specifier: ^0.7.1 version: 0.7.1 @@ -3706,6 +3709,9 @@ packages: resolution: {integrity: sha512-nEh+kZOPY1w+gcCMobZ6ETUp9WfibndnosbpwB1iJk/8Gt5ZF2bhS6+B6bPYz424KtwsR6Rflc3tCz1/ghX2dQ==} engines: {node: '>=4.0'} + buffer@6.0.3: + resolution: {integrity: sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==} + buildcheck@0.0.7: resolution: {integrity: sha512-lHblz4ahamxpTmnsk+MNTRWsjYKv965MwOrSJyeD588rR3Jcu7swE+0wN5F+PbL5cjgu/9ObkhfzEPuofEMwLA==} engines: {node: '>=10.0.0'} @@ -4839,6 +4845,9 @@ packages: resolution: {integrity: sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw==} engines: {node: '>=0.10.0'} + ieee754@1.2.1: + resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} + ignore@5.3.2: resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==} engines: {node: '>= 4'} @@ -9973,6 +9982,11 @@ snapshots: dependencies: '@types/node': 25.9.5 + buffer@6.0.3: + dependencies: + base64-js: 1.5.1 + ieee754: 1.2.1 + buildcheck@0.0.7: optional: true @@ -11308,6 +11322,8 @@ snapshots: dependencies: safer-buffer: 2.1.2 + ieee754@1.2.1: {} + ignore@5.3.2: {} ignore@7.0.5: {}