Keep pending workspace status before first message
This commit is contained in:
@@ -1188,10 +1188,16 @@ function useComposerContextStatus() {
|
|||||||
sessionPayload =
|
sessionPayload =
|
||||||
(await sessionResponse.json()) as ClawStoredSession;
|
(await sessionResponse.json()) as ClawStoredSession;
|
||||||
} else if (sessionResponse.status === 404) {
|
} else if (sessionResponse.status === 404) {
|
||||||
|
if (
|
||||||
|
sessionId === normalizeSessionId(readPendingWorkspaceSessionId())
|
||||||
|
) {
|
||||||
|
sessionPayload = null;
|
||||||
|
} else {
|
||||||
clearActiveSessionId();
|
clearActiveSessionId();
|
||||||
sessionId = null;
|
sessionId = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
const budgetUrl = new URL(
|
const budgetUrl = new URL(
|
||||||
"/api/claw/context-budget",
|
"/api/claw/context-budget",
|
||||||
window.location.origin,
|
window.location.origin,
|
||||||
|
|||||||
Reference in New Issue
Block a user