ctx-mgmt: ctx session management (dev mode only) (#2415)

This commit is contained in:
Lily Delalande
2025-05-02 16:12:56 -04:00
committed by GitHub
parent 2366a3ad01
commit 8ba40bdccc
19 changed files with 710 additions and 118 deletions
@@ -35,8 +35,8 @@ const SessionListView: React.FC<SessionListViewProps> = ({ setView, onSelectSess
setIsLoading(true);
setError(null);
try {
const response = await fetchSessions();
setSessions(response.sessions);
const sessions = await fetchSessions();
setSessions(sessions);
} catch (err) {
console.error('Failed to load sessions:', err);
setError('Failed to load sessions. Please try again later.');
@@ -47,6 +47,8 @@ const SessionsView: React.FC<SessionsViewProps> = ({ setView }) => {
const handleResumeSession = () => {
if (selectedSession) {
console.log('Selected session object:', JSON.stringify(selectedSession, null, 2));
// Get the working directory from the session metadata
const workingDir = selectedSession.metadata.working_dir;