mirror of
https://github.com/harivansh-afk/clanker-agent.git
synced 2026-04-15 04:03:27 +00:00
fix: report unavailable memory repo status
Treat git status failures as unavailable instead of clean in gateway memory status. Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
parent
e0801dedb0
commit
9765576c0a
1 changed files with 6 additions and 4 deletions
|
|
@ -841,11 +841,13 @@ export async function syncProjectMemory(
|
|||
if (action === "status") {
|
||||
const dirty = await getRepositoryDirtyState(localPath, projectPath);
|
||||
return {
|
||||
success: repositoryReady,
|
||||
success: repositoryReady && dirty !== null,
|
||||
message: repositoryReady
|
||||
? dirty
|
||||
? "Memory repository has uncommitted changes"
|
||||
: "Memory repository is clean"
|
||||
? dirty === null
|
||||
? "Memory repository status is unavailable"
|
||||
: dirty
|
||||
? "Memory repository has uncommitted changes"
|
||||
: "Memory repository is clean"
|
||||
: configured
|
||||
? "Memory repository is not initialized"
|
||||
: "Memory repository is not configured",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue