Windows: uninstall misses the default install.ps1 location, and uninstall --dir exits 1

未关闭
#3,020 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
38/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
c, powershell

调研方向

Start at cli_activation_transaction_finalize_committed_or_fail_stop and trace uninstall_transaction_removal_finalize through cli_activation_cleanup_fail_stop; the report identifies this path for the exit code 1 after successful removal. Read the install.ps1 default directory handling and compare it with the native uninstall directory lookup. Reproduce both cases on Windows, then confirm plain uninstall removes the default install and uninstall --dir exits successfully after removal.

由索引模型根据 Issue 内容生成。

描述

bug editor/integration stability/performance windows
Version

codebase-memory-mcp 0.12.1 and current main (cdfdf264), Windows 11, installed via install.ps1.

Platform

Windows (x64)

Install channel

GitHub release archive / install.sh / install.ps1

Binary variant

standard

What happened, and what did you expect?

1) Plain uninstall does not find the binary installed by install.ps1

install.ps1 installs to %LOCALAPPDATA%\Programs\codebase-memory-mcp by default and passes --dir to the native installer. A plain codebase-memory-mcp uninstall assumes ~/.local/bin, so the binary in the install.ps1 location stays in place, and the command still exits 0.

Steps:

  1. Install via install.ps1 with default settings.
  2. Run codebase-memory-mcp uninstall -y.
  3. The binary is still present in %LOCALAPPDATA%\Programs\codebase-memory-mcp; exit code 0.

Possible directions: uninstall remembers or detects the install directory, or install.ps1 uses the native default location. Happy to help once the preferred approach is clear.

2) uninstall --dir=<dir> exits 1 after a successful removal

codebase-memory-mcp uninstall -y --dir=<install dir> removes everything, but then exits 1 and logs coordination.cleanup_timeout. As far as I can see, the failure comes from cli_activation_transaction_finalize_committed_or_fail_stop("uninstall_transaction_removal_finalize"), which ends in cli_activation_cleanup_fail_stop() → _Exit(1) when finalize returns neither OK nor DEFERRED. One possible cause: on Windows, the running .exe is itself the executable being removed. I have not confirmed this.

Impact: scripted uninstalls report failure although the uninstall worked.

Related

  • #2856 (point 2: entries written by a --dir install are left behind)
  • PR #3019 fixes the agent-entry ownership check for uninstall --dir; not covered here.
Reproduction

See above please.

Logs

Diagnostics trajectory (memory / performance / leak issues)

Project scale (if relevant)

No response

Confirmations
  • I searched existing issues and this is not a duplicate.
  • My reproduction uses shareable code (a dummy snippet or a public OSS repository), not proprietary code.
主要语言
C
星标
45.8k
派生
3.8k
平均合并
2 天 18 小时
30 天内合并 PR
108

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

DeusData/codebase-memory-mcp 的其他 Issue

查看 DeusData/codebase-memory-mcp 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。