Repository navigation
Remove sessions from projects - #75
Conversation
|
Confidence Score: 4/5 // src/hooks/use-agent-impl-core.tsx:2558-2596
// The `removeSessionFromProject` action doesn't validate that the session
// is actually assigned to a project before proceeding. If called
// programmatically (not through the menu) on a non-project session, it
// would redundantly mark it as detached. Consider adding a guard:
const meta = stateRef.current.sessionMeta[sessionId];
if (!meta?.assignedProjectDir) return; // already not in a project// src/hooks/use-sidebar-model.ts:176-183
// The `chatSessions` filter includes sessions where
// `detachedFromProject === true`. This is correct, but the filter
// double-checks `isDefaultChatDirectory` for non-detached sessions.
// If a session has `detachedFromProject: true` but also a non-matching
// `_projectDir`, it still lands in chatSessions. Consider adding a
// comment here to clarify the inclusion logic for maintainability.Issues detected:
|
|
fatal: couldn't find remote ref remove-session-from-project |

Summary
Validation
Note: full vp check on a clean origin/master worktree is currently blocked by pre-existing formatting issues in unrelated files.