From 2e90458a79a12fd16b61115023fe8a75a08ee479 Mon Sep 17 00:00:00 2001 From: Wolfgang Schoenberger <221313372+wolfiesch@users.noreply.github.com> Date: Sat, 18 Jul 2026 03:22:28 -0700 Subject: [PATCH 1/6] fix(coding-agent): bound RPC output and reap failed workers --- packages/coding-agent/CHANGELOG.md | 84 ++++++++++++ .../coding-agent/src/modes/rpc/rpc-client.ts | 59 ++++++--- .../coding-agent/src/modes/rpc/rpc-frame.ts | 124 ++++++++++++++++++ .../coding-agent/src/modes/rpc/rpc-mode.ts | 6 +- .../test/fixtures/mock-rpc-agent.ts | 12 ++ .../test/rpc-client.restart.test.ts | 50 +++++++ packages/coding-agent/test/rpc-frame.test.ts | 104 +++++++++++++++ 7 files changed, 417 insertions(+), 22 deletions(-) create mode 100644 packages/coding-agent/src/modes/rpc/rpc-frame.ts create mode 100644 packages/coding-agent/test/rpc-frame.test.ts diff --git a/packages/coding-agent/CHANGELOG.md b/packages/coding-agent/CHANGELOG.md index 6f32dc885..08cf5916d 100644 --- a/packages/coding-agent/CHANGELOG.md +++ b/packages/coding-agent/CHANGELOG.md @@ -44,6 +44,90 @@ - Fixed bash command timeouts rendering with an incorrect error border, and resolved Windows bash crashes when piped commands time out. - Migrated legacy nested/quoted-dotted config keys (e.g., `dev.autoqa.consent` -> `dev.autoqaConsent`) on settings load. - Added managed `ctx.setInterval` / `ctx.setTimeout` / `ctx.clearTimer` helpers on extension contexts to prevent uncaught exceptions from crashing sessions. +- Fixed `--model ` resolving a bare configured `modelRoles` key. +- Browser tool selectors now accept bare snapshot refs (`tab.click("e501")`, `@e501`) everywhere `aria-ref=e501` works — previously the tab-worker backend fell through to a CSS tag selector that could never match, burning the 2s zero-match watchdog with a misleading "matches no elements" hint. `tab.select`, `tab.uploadFile`, `tab.press({ selector })`, `tab.screenshot({ selector })`, and `tab.drag` now resolve refs too. Unknown/stale refs fail immediately with the "refresh refs" error. +- `tab.select` no longer double-reports the previously selected option of a single `