We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e051aae commit 7b5af6eCopy full SHA for 7b5af6e
1 file changed
src/components/sidebar/SessionList.tsx
@@ -58,6 +58,11 @@ export const SessionList: React.FC = () => {
58
setDeleteTarget(sessionId);
59
};
60
61
+ const handleSelectSession = (session: Session) => {
62
+ setActiveProjectId(session.projectId);
63
+ setActiveSessionId(session.id);
64
+ };
65
+
66
const confirmDeleteSession = async () => {
67
if (!deleteTarget) return;
68
const sessionId = deleteTarget;
@@ -137,7 +142,7 @@ export const SessionList: React.FC = () => {
137
142
? 'bg-[var(--hover-bg-strong)] text-[var(--text)]'
138
143
: 'text-[var(--text-subtle)] hover:bg-[var(--hover-bg)] hover:text-[var(--text-muted)]'
139
144
)}
140
- onClick={() => setActiveSessionId(session.id)}
145
+ onClick={() => handleSelectSession(session)}
141
146
>
147
<ChatCircleText
148
size={15}
0 commit comments