fix(app): open projects to new session#407
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThe PR simplifies project session routing by removing persisted "last project session" state and session-resolution logic. Navigation to projects now uses a new ChangesSession Routing Simplification
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Suggested labels
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Review rate limit: 8/10 reviews remaining, refill in 8 minutes and 48 seconds. Comment |
There was a problem hiding this comment.
Code Review
This pull request simplifies the project navigation logic by removing the functionality that tracks and restores the last active session for a project. It removes the lastProjectSession state from the persisted store, deletes the helper functions rememberSessionRoute and clearLastProjectSession, and refactors the navigation logic to use a new projectSessionRouteTarget helper that defaults to the project's root session route. I have no feedback to provide.
Summary
Open PawWork projects to the project new-session route instead of automatically restoring a remembered or latest session. Remove the persisted
lastProjectSessionstate and its route-writing paths.Why
Opening the app or a project should feel like a clean workspace. Automatically jumping into an old session can put users in stale context and make new prompts easy to send to the wrong conversation.
Related Issue
No linked issue. This follows the maintainer discussion in Codex.
Human Review Status
Pending. A human should make the final merge decision after reviewing the final diff and verification evidence.
Review Focus
Please focus on the project-open routing behavior in
packages/app/src/pages/layout.tsx: explicit session entry points should still work, while project open/startup paths should land on/{project}/session.Risk Notes
Behavior change: users who previously relied on automatic restoration of a project-specific old session will now land on the project new-session route. Existing persisted
lastProjectSessiondata is left unused rather than migrated.How To Verify
Screenshots or Recordings
Not included. This changes startup/project routing behavior without changing visual styling or copy.
Checklist
dev, and my PR title and commit messages use Conventional Commits in EnglishSummary by CodeRabbit
Refactor
Tests