mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-24 05:35:15 +00:00
fixes
This commit is contained in:
parent
26512178c7
commit
7089f72e76
2 changed files with 6 additions and 2 deletions
|
|
@ -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", {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue