Repository navigation
test(e2e): cover session upgrade and Windows terminal recovery - #17289
Conversation
Greptile SummaryThis PR adds end-to-end reliability coverage for legacy persisted-session upgrades, Windows ConPTY keyboard-mode recovery, and WSL terminal restoration.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| tests/e2e/helpers/golden-stub-agent.ts | Correctly serializes agentArgs into the browser evaluation context and stores the configured default agent arguments. |
| tests/e2e/fixtures/golden-stub-agent/golden-stub-agent.js | Adds an opt-in keyboard-protocol mode and corresponding encoded Enter handling for the ConPTY recovery scenario. |
| tests/e2e/persisted-session-production-upgrade.spec.ts | Exercises legacy daemon-backed session restoration and verifies stable identity across a second relaunch. |
| tests/e2e/terminal-windows-conpty-keyboard-reset.spec.ts | Exercises protocol-mode exit and confirms subsequent Windows shell input uses standard keyboard sequences. |
| tests/e2e/windows-wsl-terminal-restore.spec.ts | Exercises WSL terminal persistence, PTY ownership, cwd preservation, liveness, and post-relaunch input. |
| config/reliability-gates.jsonc | Records the new persisted-session test as partial macOS and local-daemon protection. |
Reviews (2): Last reviewed commit: "fix stub" | Re-trigger Greptile
|
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)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe changes add three E2E coverage areas. A production daemon session fixture is upgraded and checked across relaunches. A Windows ConPTY test verifies keyboard protocol reset and standard byte output. A Windows WSL test verifies PTY ownership, session state, liveness, and guest working-directory restoration. The reliability gate records partial persisted-session coverage and its known gaps. Merge Risk: 🟡 Moderate · up to The PR adds E2E coverage for session upgrades and Windows terminal recovery, but the current test helper still prevents protocol-mode setup from completing, so the intended regression coverage may not execute reliably. Merge should wait for that helper fix or explicit owner acceptance. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description summarizes the changes and verification, but it omits most required template sections. It has no ELI5, Why, Linked Issue with a Fixes reference, Visual Proof or N/A statement, AI Disclosure, Review, Agent skill boundary, or Checklist content. Resolution Complete the required template sections. Add an ELI5 explanation, explain why the approach solves the problem, include a linked issue using
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
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.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 7893811e-5610-4f9c-ba8f-5134a7493cc1
📒 Files selected for processing (7)
config/reliability-gates.jsonctests/e2e/fixtures/golden-stub-agent/golden-stub-agent.jstests/e2e/fixtures/persisted-sessions/legacy-workspace-session-daemon-terminal.jsontests/e2e/helpers/golden-stub-agent.tstests/e2e/persisted-session-production-upgrade.spec.tstests/e2e/terminal-windows-conpty-keyboard-reset.spec.tstests/e2e/windows-wsl-terminal-restore.spec.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 6 remain after this review.
…yai#17289) * coverage report * rm test coverage * test(e2e): cover session upgrade and Windows terminal recovery * fix stub
Summary
Adds three high-impact E2E protections that were previously registered as unprotected reliability gaps:
The persisted-session fixture is intentionally named
legacy-workspace-session-daemon-terminal.json; it captures a legacy production schema shape without tying the test to a specific old release binary.Verification
oxlintpassed for all changed TypeScript/JavaScript files.Notes
The unrelated untracked
test-plan-generation-prompt.mdis not included.