Add Ralph status dialog and session management improvements (#171)

This commit is contained in:
Chris Scott authored and GitHub committed 2026-03-24 20:25:09 -04:00
1 parent 27352ea5cf
commit 86613b1ea4
12 files changed
+1132 -65

No files matched your search

+6 -2
View File
@@ -1,6 +1,6 @@
import { fetchWrapper, fetchWrapperVoid } from './fetchWrapper'
import { API_BASE_URL } from '@/config'
import type { Memory, MemoryStats, CreateMemoryRequest, UpdateMemoryRequest, PluginConfig, KvEntry, CreateKvEntryRequest, UpdateKvEntryRequest } from '@opencode-manager/shared/types'
import type { Memory, MemoryStats, CreateMemoryRequest, UpdateMemoryRequest, PluginConfig, KvEntry, CreateKvEntryRequest, UpdateKvEntryRequest, RalphState } from '@opencode-manager/shared/types'
export async function listMemories(filters?: {
projectId?: string
@@ -123,7 +123,11 @@ export async function updateKvEntry(projectId: string, key: string, data: Update
})
}
export async function cancelRalphLoop(repoId: string, sessionId: string): Promise<{ cancelled: boolean; worktreeName?: string }> {
export async function getRalphStatus(repoId: number): Promise<{ loops: RalphState[]; projectId?: string | null }> {
return fetchWrapper(`${API_BASE_URL}/api/memory/ralph/status?repoId=${repoId}`)
}
export async function cancelRalphLoop(repoId: number, sessionId: string): Promise<{ cancelled: boolean; worktreeName?: string }> {
return fetchWrapper(`${API_BASE_URL}/api/memory/ralph/cancel`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },