mirror of
https://github.com/harivansh-afk/clanker-agent.git
synced 2026-04-18 19:03:44 +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") {
|
if (action === "status") {
|
||||||
const dirty = await getRepositoryDirtyState(localPath, projectPath);
|
const dirty = await getRepositoryDirtyState(localPath, projectPath);
|
||||||
return {
|
return {
|
||||||
success: repositoryReady,
|
success: repositoryReady && dirty !== null,
|
||||||
message: repositoryReady
|
message: repositoryReady
|
||||||
? dirty
|
? dirty === null
|
||||||
? "Memory repository has uncommitted changes"
|
? "Memory repository status is unavailable"
|
||||||
: "Memory repository is clean"
|
: dirty
|
||||||
|
? "Memory repository has uncommitted changes"
|
||||||
|
: "Memory repository is clean"
|
||||||
: configured
|
: configured
|
||||||
? "Memory repository is not initialized"
|
? "Memory repository is not initialized"
|
||||||
: "Memory repository is not configured",
|
: "Memory repository is not configured",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue