Repository navigation
fix(agent-hooks): stop rewriting typed Prime commands - #13906
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe PR removes Prime Agent WSL status bridging and related environment propagation. PTY launches now prepare Prime Agent state only for explicit non-WSL launches. Generated Bash and Zsh shell-ready files use the OMP wrapper and exclude Prime Agent wrapper content. The titlebar extension service retains an OMP-specific fallback directory and removes Prime Agent status-only environment construction. WSL environment passthrough no longer includes the Prime status-extension variable. Relay instance-key fallback logic remains inside relay initialization. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/main/pty/wsl-orca-env.test.ts (1)
51-51: 🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick winKeep an inherited Prime status-extension value in the fixture.
The test no longer provides
ORCA_PRIME_AGENT_STATUS_EXTENSION. Line 71 therefore does not prove thataddOrcaWslInteropEnvexcludes an inherited value fromWSLENV. Restore a stale fixture value so this contract is tested.Proposed test adjustment
ORCA_OMP_STATUS_EXTENSION: 'C:\\Users\\jin\\.omp\\agent\\extensions\\orca-agent-status.ts', + ORCA_PRIME_AGENT_STATUS_EXTENSION: 'C:\\stale\\orca-agent-status.ts', ORCA_PANE_KEY: 'tab-1:leaf-1',Also applies to: 71-71
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 525f068c-802b-4795-badd-c0786f0f6aff
📒 Files selected for processing (15)
src/main/agent-hooks/wsl-hook-relay-manager.test.tssrc/main/agent-hooks/wsl-hook-relay-manager.tssrc/main/daemon/shell-ready.test.tssrc/main/daemon/shell-ready.tssrc/main/ipc/pty.test.tssrc/main/ipc/pty.tssrc/main/pi/titlebar-extension-service.test.tssrc/main/pi/titlebar-extension-service.tssrc/main/providers/local-pty-shell-ready.test.tssrc/main/providers/local-pty-shell-ready.tssrc/main/providers/windows-shell-args.test.tssrc/main/pty/prime-agent-shell-wrapper.test.tssrc/main/pty/prime-agent-shell-wrapper.tssrc/main/pty/wsl-orca-env.test.tssrc/main/pty/wsl-orca-env.ts
💤 Files with no reviewable changes (7)
- src/main/pty/prime-agent-shell-wrapper.test.ts
- src/main/pty/wsl-orca-env.ts
- src/main/pty/prime-agent-shell-wrapper.ts
- src/main/agent-hooks/wsl-hook-relay-manager.test.ts
- src/main/providers/local-pty-shell-ready.ts
- src/main/daemon/shell-ready.ts
- src/main/pi/titlebar-extension-service.test.ts
Windows Electron QA — PR #13906 @
|
| 04-final-native-wsl-prime-argv.png | 03-prime-stub-argv.png |
|---|---|
![]() |
![]() |
| 01-launch.png |
|---|
![]() |
* fix(agent-hooks): preserve typed Prime commands * test(wsl): enforce Prime bridge exclusion --------- Co-authored-by: OrcaWin <[email protected]> (cherry picked from commit 4b9fb46)
* fix(agent-hooks): preserve typed Prime commands * test(wsl): enforce Prime bridge exclusion --------- Co-authored-by: OrcaWin <[email protected]>



Summary
prime-agentwrapper and its automatic--extensioninjectionValidation
pnpm typecheckgit diff --check