mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-21 11:26:39 +00:00
fixes
This commit is contained in:
@@ -134,10 +134,9 @@ export function DialogSessionList() {
|
||||
type={workspace.type}
|
||||
name={workspace.name}
|
||||
status={project.workspace.status(x.workspaceID) ?? "error"}
|
||||
icon
|
||||
/>
|
||||
) : (
|
||||
<WorkspaceLabel type="unknown" name={x.workspaceID} status="error" icon />
|
||||
<WorkspaceLabel type="unknown" name={x.workspaceID} status="error" />
|
||||
)
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -529,6 +529,11 @@ export const layer = Layer.effect(
|
||||
body: HttpBody.jsonUnsafe({ sessionID: input.sessionID }),
|
||||
}),
|
||||
)
|
||||
|
||||
// TODO: if this fails, we need to mark this workspace
|
||||
// as "orphaned" meaning we abandoned it and never want
|
||||
// to talk to it again
|
||||
|
||||
if (response.status < 200 || response.status >= 300) {
|
||||
const body = yield* response.text
|
||||
log.warn("session warp erase failed", {
|
||||
|
||||
Reference in New Issue
Block a user