Repository navigation
feat(sidebar): integrate RDD lifecycle and session resets (3/4) - #1500
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughGentle AI now publishes review-sidebar updates from review tools. Gentle Shell validates snapshots for the active session, updates the footer, and clears review data on session lifecycle changes. Integration tests cover stale and foreign-session events, tree navigation, and shutdown. ChangesReview sidebar integration
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant GentleAI as Gentle AI review tools
participant Publisher as Review sidebar publisher
participant Event as Review-sidebar event
participant Shell as Gentle Shell
participant Footer as Footer model
GentleAI->>Publisher: Wrap review tool registrations
Publisher->>Event: Publish review-sidebar updates
Event->>Shell: Deliver review snapshot
Shell->>Footer: Store snapshot and redraw
Suggested reviewers: Merge Risk: ⚪ Minimal · up to No actionable merge-blocking issue is established; the PR is mergeable after normal checks. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The new display path has controls for session identity, stale completions, and shutdown. No security defect was established, but the broader security coverage and trust assumptions for shared events remain incomplete. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
Share one harness across stale session_start, stale session_tree, and foreign/shutdown cases; use REVIEW_SIDEBAR_EVENT and explicit holds instead of a call count. Document why the shutdown unsubscribe is safe.
4f5ab39
into
Gentleman-Programming:main
Linked issue
Refs #1306 (
status:approved). This is slice 3 of 4; the issue remains open for the separate follow-up.PR type
type:feature)Summary
Chain context
Sequential, independent PRs to
main:Starts from
53d62fbf311d887dc5fce6d9533010bf02b7603e, after #1379 merged. Ends with runtime integration and the session-reset coverage requested in Alan's review. No review authority, polling, history, or global-mode changes. Nested workspace display correlation, explicit abort presentation, and completion-resolver extraction remain separate. Vim/editor test-harness repair is out of scope (#1430).Changes
extensions/gentle-ai.tsextensions/gentle-shell.tstests/gentle-shell.test.tsReview size: 3 files, +129/-6 = 135 changed lines. No dependency, generated-runtime, or task artifacts included.
Verification
git diff --check: passed.Known failing checks — not a green full suite
node --experimental-strip-types --test --test-reporter=tap tests/gentle-shell.test.ts tests/rdd-status-line.test.ts tests/review-sidebar-state.test.ts: 245/256 passed, with 11Unsupported Pi editor layout/versionfailures. An untouched archive of exact base HEAD reproduced the same 11 test names/messages (244/255 passed).node --experimental-strip-types --test tests/*.test.ts: 3884 passed, 14 failed, 43 skipped. Targeted untouched-base runs reproduced the remaining three Vim constructor-identity failures as well. The full untouched-base run timed out after 300 seconds, so complete full-suite equivalence is not claimed. The final follow-up changed test coverage only; it reran the focused test, three-file suite, types and diff checks, not the full unit suite. See #1430 for the separate harness issue; production Vim guards were not changed.Contributor notes
Summary by CodeRabbit
New Features
Bug Fixes