Repository navigation
Fix Electron startup and duplicate agent output - #89
Conversation
|
CodeAnt AI is reviewing your PR. |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughAdds ChangesVite Build Configuration
BrokerManager start flow and IPC
PTY deduplication and tests
Duplicate-event hardening docs
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Poem
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. Comment |
There was a problem hiding this comment.
Code Review
This pull request updates the Electron Vite configuration to exclude the 'zod' package from being externalized by the externalizeDepsPlugin in the main process build. There are no review comments, and I have no feedback to provide.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
|
CodeAnt AI finished reviewing your PR. |
|
Reviewed PR #89 and found no additional breakage to fix. The config change correctly excludes Verified:
|
|
Fixed the validated PR breakage in src/main/broker.ts: Verified:
A full ad hoc |
|
✅ pr-reviewer applied fixes — committed and pushed Fixed the validated PR breakage in src/main/broker.ts: Verified:
A full ad hoc |
|
Fixed one PR breakage in src/main/broker.ts: Validation run:
|
|
Fixed one PR regression in PTY dedupe: identity-less Added a focused regression test in Local verification passed: |
|
✅ pr-reviewer applied fixes — committed and pushed Fixed one PR regression in PTY dedupe: identity-less Added a focused regression test in Local verification passed: |
|
Fixed one verified PR breakage in src/main/broker.ts: Validated locally:
|
|
✅ pr-reviewer applied fixes — committed and pushed Fixed one verified PR breakage in src/main/broker.ts: Validated locally:
|
|
Fixed one lifecycle issue I found in the PR: PTY chunk dedupe state is now cleared when a broker session is dropped, so a restarted broker can reuse the same agent name/sequence without having its first real output suppressed. See src/main/broker.ts. Added a regression test covering the restart case in src/main/broker.test.ts. Verified locally:
|
|
Reviewed PR #89 against Local validation passed:
Removed generated verification artifacts afterward: |
|
ℹ️ pr-reviewer: review only — no file changes were applied to the PR (nothing to commit after review). The notes below are advisory and were not pushed. Reviewed PR #89 against Local validation passed:
Removed generated verification artifacts afterward: |
|
Reviewed PR #89 against Local validation run:
|
|
ℹ️ pr-reviewer: review only — no file changes were applied to the PR (nothing to commit after review). The notes below are advisory and were not pushed. Reviewed PR #89 against Local validation run:
|
|
Reviewed PR #89 against Validated locally:
I also checked the built main bundle and confirmed |
|
Reviewed PR #89 against the current checkout. I did not find a reproducible defect that required code changes, and there were no bot-review artifacts present under Local verification run:
I restored possible dependency/build side effects on tracked generated metadata before the final checks. |
|
Reviewed PR #89 against the current checkout. I didn’t find any reproducible breakage or stale bot-review items to fix; Local validation passed:
The build output includes bundled |
|
ℹ️ pr-reviewer: review only — no file changes were applied to the PR (nothing to commit after review). The notes below are advisory and were not pushed. Reviewed PR #89 against the current checkout. I didn’t find any reproducible breakage or stale bot-review items to fix; Local validation passed:
The build output includes bundled |
|
Fixed one validated issue in the PR: PTY chunk dedupe state now clears when a broker session is dropped, so a restarted broker can reuse sequence numbers without suppressing fresh output. Added regression coverage in src/main/broker.test.ts for restart-with-same- Validated locally:
|
|
✅ pr-reviewer applied fixes — committed and pushed Fixed one validated issue in the PR: PTY chunk dedupe state now clears when a broker session is dropped, so a restarted broker can reuse sequence numbers without suppressing fresh output. Added regression coverage in src/main/broker.test.ts for restart-with-same- Validated locally:
|
|
ℹ️ pr-reviewer: review only — no file changes were applied to the PR (nothing to commit after review). The notes below are advisory and were not pushed. Reviewed PR #89 against the current checkout. I did not find any validated breakage requiring code changes. Validated:
Checks run:
|
|
Reviewed PR #89 against Local validation run:
|
|
ℹ️ pr-reviewer: review only — no file changes were applied to the PR (nothing to commit after review). The notes below are advisory and were not pushed. Reviewed PR #89 against Local validation run:
|
|
Fixed a validated PTY dedupe issue in src/main/broker.ts: dedupe entries are now cleared when a broker session is dropped, so restarted brokers can reuse sequence numbers without suppressing fresh terminal output. Added a regression in src/main/broker.test.ts covering same- Local verification passed:
|
|
Fixed a validated PTY dedupe issue in src/main/broker.ts: dedupe entries are now cleared when a broker session is dropped, so restarted brokers can reuse sequence numbers without suppressing fresh terminal output. Added a regression in src/main/broker.test.ts covering same- Local verification passed:
|
|
Reviewed PR #89 and fixed one validated issue in the current checkout. I found that PTY chunk dedupe state survived broker shutdown/restart because keys were scoped only by reusable Validated locally:
|
|
Reviewed PR #89 and fixed one validated issue in the current checkout. I found that PTY chunk dedupe state survived broker shutdown/restart because keys were scoped only by reusable Validated locally:
|
|
Fixed one PR issue: Local verification passed:
|
|
✅ pr-reviewer applied fixes — committed and pushed Fixed one PR issue: Local verification passed:
|
|
Fixed two validated PR issues:
Validated locally:
No current GitHub review threads were open. |
|
ℹ️ pr-reviewer: review only — no file changes were applied to the PR (nothing to commit after review). The notes below are advisory and were not pushed. Reviewed PR #89 against the current checkout. I did not find a validated breakage that required code changes. Local validation run:
Note: |
|
Reviewed PR #89 against the current checkout. I did not find a validated breakage requiring code changes. Local verification run:
I also tried raw |
|
ℹ️ pr-reviewer: review only — no file changes were applied to the PR (nothing to commit after review). The notes below are advisory and were not pushed. Reviewed PR #89 against the current checkout. I did not find a validated breakage requiring code changes. Local verification run:
I also tried raw |
|
Reviewed PR #89 against the current checkout. I didn’t find a current breakage that needed code edits. Validated locally:
Also confirmed the built main bundle includes bundled Zod code, matching the Electron main bundling change. |
|
ℹ️ pr-reviewer: review only — no file changes were applied to the PR (nothing to commit after review). The notes below are advisory and were not pushed. Reviewed PR #89 against the current checkout. I didn’t find a current breakage that needed code edits. Validated locally:
Also confirmed the built main bundle includes bundled Zod code, matching the Electron main bundling change. |
|
Fixed one validated issue in the PR’s PTY dedupe hardening: Verification run:
|
|
Added a focused regression test in src/main/integrations.test.ts covering the PR’s integration changes:
Validation run:
Note: |
|
ℹ️ pr-reviewer: review only — no file changes were applied to the PR (nothing to commit after review). The notes below are advisory and were not pushed. Reviewed PR #89 against the current checkout. I found no reproducible defects to fix and made no code edits. Validated locally:
No bot/reviewer comment artifacts were present under |
Summary
z.iso.datetime()resolving against top-level Zod 3ensureBroker()reuses an existing sessionworker_streamchunks from overlapping/rebound dashboard event streams while preserving distinct broker sequencesVerification
npx vitest run src/main/broker.test.tsnpm run build