Skip to content

fix(deploy): stop the reconcile job uninstalling the chat - #36

Merged
ciaransweet merged 1 commit into
mainfrom
fix/reconcile-uninstalls-the-chat
Sep 8, 2026
Merged

fix(deploy): stop the reconcile job uninstalling the chat#36
ciaransweet merged 1 commit into
mainfrom
fix/reconcile-uninstalls-the-chat

Conversation

@ciaransweet

Copy link
Copy Markdown
Contributor

The reconcile job uninstalls any mcp-* release with no toolsets/<name>
directory behind it. It skips mcp-index, but not mcp-chat, which is not a
toolset either — so every deploy uninstalled the chat.

It came back only because the chat job reinstalls it. Both jobs need nothing
but detect, so they race, and reconcile has no image to build and always wins.

Evidence from the last two deploys, both logging Uninstalling mcp-chat: toolsets/chat no longer exists, then release "mcp-chat" uninstalled:

Run Uninstalled Chat job finished
8 Sep 14:30:29 14:32:05
4 Sep 16:04:11 16:05:48

So chat.<host> was down for about 95 seconds on each deploy, losing every
in-memory conversation, and a chat job that failed or was cancelled would
have left it down until someone noticed.

Found while confirming that removing a toolset directory removes its service.
It does — this is the same mechanism removing something it shouldn't.

🤖 Generated with Claude Code

The job uninstalls any `mcp-*` release with no `toolsets/<name>` directory
behind it, skipping `mcp-index` — but not `mcp-chat`, which is not a toolset
either. So every deploy ran `helm uninstall mcp-chat`, and the chat only came
back because the `chat` job reinstalls it a minute or so later.

Both jobs only need `detect`, so they race, and reconcile has no image to
build and always wins. In the 8 September deploy the chat was uninstalled at
14:30:29 and reinstalled at 14:32:05 — 95 seconds down, conversations lost,
on every deploy. A failed or cancelled `chat` job would have left it down.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@ciaransweet
ciaransweet merged commit 713819f into main Sep 8, 2026
9 checks passed
@ciaransweet
ciaransweet deleted the fix/reconcile-uninstalls-the-chat branch September 8, 2026 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant