openclaw/scripts/e2e
Peter Lee 706965ab95
fix(agents): preserve decoded grep context and readable paths (#131621)
* fix(agents): bound grep context reads to prevent gateway OOM

Cap the per-file context read with readRegularFileSync (4MiB) and fall back to rg's match line when a file is oversized, instead of reading the whole file into memory. Resolve symlinks first to preserve legacy context rendering.

* fix(agents): decode ripgrep byte-form match lines for oversized grep files

Ripgrep emits data.lines.bytes (base64) for non-UTF-8 match lines.
The oversized-file fallback previously only read data.lines.text and
fell back to an empty string, silently blanking valid match text.

Decode bytes to UTF-8 before the fallback and add a regression test
for the byte-form JSON shape.

* fix(agents): render grep context from ripgrep records

Use the searched, decoded match and context records for default grep
windows while retaining the shipped custom readFile contract. Preserve
context at the match limit, real EOF boundaries, and native path bytes.
This removes the extra whole-file reread and keeps result paths readable.

Co-authored-by: xialonglee <li.xialong@xydigit.com>

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
Co-authored-by: xialonglee <li.xialong@xydigit.com>
2026-08-30 08:26:11 -07:00
..
lib fix: keep upgrade survival fixtures idle during service restarts (#133289) 2026-08-30 05:51:39 -07:00
parallels chore: migrate tooling and source installs to pnpm 12 (#131043) 2026-08-28 17:43:09 -07:00
agent-bundle-mcp-tools-docker.sh
agents-delete-shared-workspace-docker.sh fix(ci): keep plugin fixture validation compatible with capability consent (#131208) 2026-08-27 21:34:12 -07:00
browser-cdp-snapshot-docker.sh
browser-plugin-profiles-docker.sh
build-image.sh
bun-global-install-smoke.sh improve: verify packaged runtime on Bun 1.4 (#129552) 2026-08-25 23:41:05 -07:00
bundled-plugin-install-uninstall-docker.sh
cli-installer-distribution-docker.sh fix(ci): keep plugin fixture validation compatible with capability consent (#131208) 2026-08-27 21:34:12 -07:00
codex-media-path-docker.sh test(docker): bind live lanes to prepared candidate artifacts (#132515) 2026-08-29 03:17:12 -07:00
codex-npm-plugin-live-docker.sh test(release): expose Codex follow-through lifecycle phases (#132539) 2026-08-29 03:45:30 -07:00
codex-on-demand-docker.sh fix(doctor): run health checks for the installed Codex plugin (#129276) 2026-08-28 18:24:05 -07:00
compose-setup.sh test(docker): align package fixtures with runtime ownership contracts (#132511) 2026-08-29 02:23:01 -07:00
config-reload-source-docker.sh
cron-cli-docker.sh
cron-mcp-cleanup-docker-client.ts
cron-mcp-cleanup-docker.sh
cron-mcp-cleanup-seed.ts
docker-openai-seed.ts
docker-package-install.sh chore: migrate tooling and source installs to pnpm 12 (#131043) 2026-08-28 17:43:09 -07:00
docker-selected-plugins.sh fix(ci): keep plugin fixture validation compatible with capability consent (#131208) 2026-08-27 21:34:12 -07:00
Dockerfile chore: refresh dependencies after seven-day cooldown (#128414) 2026-08-24 03:01:54 -07:00
Dockerfile.qr-import chore: refresh dependencies after seven-day cooldown (#128414) 2026-08-24 03:01:54 -07:00
doctor-install-switch-docker.sh
gateway-concurrency-docker.sh fix(gateway): keep loaded conversations responsive under heavy load (#130071) 2026-08-26 05:42:01 -07:00
gateway-network-docker.sh fix(qa): resolve Docker harness script entrypoints (#121548) 2026-08-12 01:23:20 +08:00
kitchen-sink-plugin-docker.sh
kitchen-sink-rpc-docker.sh fix(qa): resolve Docker harness script entrypoints (#121548) 2026-08-12 01:23:20 +08:00
kitchen-sink-rpc-walk.mjs refactor(scripts): migrate JavaScript tools to TypeScript (#121005) 2026-08-09 07:21:35 -07:00
kitchen-sink-rpc-walk.mts fix(ci): keep plugin fixture validation compatible with capability consent (#131208) 2026-08-27 21:34:12 -07:00
live-plugin-tool-docker.sh fix(ci): keep plugin fixture validation compatible with capability consent (#131208) 2026-08-27 21:34:12 -07:00
mcp-app-conformance-server.mjs
mcp-channel-limits.ts
mcp-channels-docker.sh
mcp-channels-seed.ts fix(agents): restore collector output and prepared harness execution (#131739) 2026-08-28 08:47:39 -07:00
mcp-code-mode-gateway-client.ts improve(code-mode): call tools as global functions (#126262) 2026-08-20 12:18:23 -07:00
mcp-code-mode-gateway-docker.sh fix: preserve model thinking policy and repair live validation (#132431) 2026-08-29 06:22:36 -07:00
mcp-code-mode-gateway-live-docker.sh fix: preserve model thinking policy and repair live validation (#132431) 2026-08-29 06:22:36 -07:00
mcp-code-mode-gateway-seed.ts
mock-openai-server.mjs fix(e2e): execute the draft-proof delay with native exec (#131636) 2026-08-28 08:33:27 -07:00
multi-node-update-docker.sh test(docker): align package fixtures with runtime ownership contracts (#132511) 2026-08-29 02:23:01 -07:00
npm-onboard-channel-agent-docker.sh fix(release): consent to staged Codex onboarding companion (#131298) 2026-08-27 23:35:10 -07:00
npm-telegram-live-docker.sh feat(qa): run Telegram RTT through userbot leases (#133030) 2026-08-30 09:21:32 +05:30
npm-telegram-live-runner.ts fix(qa): project legacy model policy config (#133069) 2026-08-30 10:27:20 +05:30
onboard-docker.sh
openai-chat-tools-docker.sh
openai-image-auth-docker.sh
openai-web-search-minimal-docker.sh
openwebui-docker.sh chore: refresh dependencies after seven-day cooldown (#128414) 2026-08-24 03:01:54 -07:00
openwebui-probe.mjs refactor: consolidate coercion contracts (#122458) 2026-08-11 23:26:37 -07:00
parallels-linux-smoke.sh
parallels-macos-smoke.sh
parallels-npm-update-smoke.sh
parallels-windows-prepare.sh fix(parallels): main install and update smoke cannot complete (#130658) 2026-08-26 21:24:22 -07:00
parallels-windows-smoke.sh
plugin-binding-command-escape-docker.sh fix(ci): keep plugin fixture validation compatible with capability consent (#131208) 2026-08-27 21:34:12 -07:00
plugin-binding-command-escape.Dockerfile chore: refresh dependencies after seven-day cooldown (#128414) 2026-08-24 03:01:54 -07:00
plugin-lifecycle-matrix-docker.sh
plugin-update-unchanged-docker.sh fix(update): preserve explicit plugin capability consent (#131301) 2026-08-28 08:25:06 -07:00
plugins-docker.sh
qa-cli-onboarding.mjs fix(qa): fail onboarding when required assertions are missing (#128277) 2026-08-23 09:40:41 -07:00
qa-plugin-install-sources.mjs
qr-import-docker.sh fix(ci): keep plugin fixture validation compatible with capability consent (#131208) 2026-08-27 21:34:12 -07:00
release-media-memory-docker.sh
release-plugin-marketplace-docker.sh
release-typed-onboarding-docker.sh fix(test): keep onboarding fixtures and failure diagnostics usable (#131856) 2026-08-28 10:49:55 -07:00
release-upgrade-user-journey-docker.sh
release-user-journey-docker.sh
sandbox-browser-sidecar-docker.sh test(docker): align package fixtures with runtime ownership contracts (#132511) 2026-08-29 02:23:01 -07:00
session-runtime-context-docker-client.ts
session-runtime-context-docker.sh
skill-install-docker.sh
status-corrupt-plugin-deps.sh
system-agent-first-run-docker.sh
system-agent-first-run-spec.json
system-agent-rescue-docker-client.ts test(docker): align package fixtures with runtime ownership contracts (#132511) 2026-08-29 02:23:01 -07:00
system-agent-rescue-docker.sh
systemd-sealed-service-definition.sh fix(agents): preserve decoded grep context and readable paths (#131621) 2026-08-30 08:26:11 -07:00
telegram-bot-api.ts refactor: consolidate coercion helpers (#121366) 2026-08-11 00:02:18 -07:00
update-channel-switch-docker.sh fix(update): route stored dev channel to the git update flow [AI-assisted] (#123083) 2026-08-28 03:52:36 -07:00
update-corrupt-plugin-docker.sh
update-run-package-self-upgrade-docker.sh
upgrade-survivor-docker.sh test: verify automatic migration during stable upgrades (#132975) 2026-08-29 19:11:26 -07:00