Skip to content

Tell old self-hosted servers to upgrade instead of deleting files by hand - #13

Merged
dani1005 merged 2 commits into
EverMind-AI:mainfrom
gloryfromca:fix/forget-session-upgrade-hint
Nov 5, 2026
Merged

dani1005 merged 2 commits into
EverMind-AI:mainfrom
gloryfromca:fix/forget-session-upgrade-hint

Conversation

@gloryfromca

@gloryfromca gloryfromca commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

What

forget_session answers a bare 404/405 from the delete route (the route is missing) with a reply the model relays to the user. That reply said self-hosted servers cannot delete through the API and told the user to remove Markdown files under ~/.everos/ by hand.

Self-hosted EverOS is gaining POST /api/v2/memory/delete (EverOS#483), the same route forget_session already calls; it is merged on EverOS main under Unreleased. The reply now says the server is too old, names that endpoint, and tells the user to upgrade to a release that includes it, then call forget_session again. It names no version: the release that ships the endpoint is not assigned yet. Removing the files by hand is no longer suggested.

No behaviour change otherwise: the 404/405 detection and the enveloped not-found path are untouched, and 0.1.1 already deletes against a server that has the endpoint.

Checks

  • uv run ruff check ., uv run ruff format --check .: clean.
  • uv run pytest -q: 93 passed.
  • The renamed test fails against the original reply text (checked by restoring server.py from main).

🤖 Generated with Claude Code

…hand

forget_session answered a bare 404/405 by telling the user to remove
Markdown files under ~/.everos/ on the server. Self-hosted EverOS 1.6.0
adds POST /api/v2/memory/delete, which forget_session already calls, so
the reply now says to upgrade the server to 1.6.0 or later.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@gloryfromca gloryfromca left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking: the upgrade instruction names a release that does not contain the delete endpoint.

I found one user-visible versioning error, marked inline. The fallback behavior and error-envelope distinction otherwise remain intact, and the focused test change does not weaken unrelated coverage.

Covered: the full origin/main...HEAD diff; surrounding forget_session, Conversation.delete_all, HTTP error mapping, and delete client call; relevant file and upstream EverOS release history; backward compatibility of the 404/405 fallback; test-strength changes; and architecture impact (none—the change stays in the existing response path). No AGENTS.md, CLAUDE.md, or CONTEXT*.md files are present in this worktree.

Checks: uv run ruff check . passed; uv run pytest -q passed (93 tests); the minimum-MCP isolated suite passed (93 tests, one third-party Pydantic warning); git diff --check passed.

Comment thread src/everos_mcp/server.py Resolved
EverOS 1.6.0's changelog section predates the delete endpoint, which is
still under Unreleased, and no 1.6.x has been published, so the release
that ships it is not yet known. Tell the user to upgrade to a release
that includes POST /api/v2/memory/delete instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@gloryfromca gloryfromca left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No blockers; this can merge as far as I am concerned.

The revision removes the unsupported 1.6.0 claim and directs old self-hosted servers to a release containing the exact delete endpoint. The existing bare-404/405 fallback, enveloped-error behavior, and architecture remain unchanged. The test now pins the actionable endpoint name and the “Nothing was deleted” safety statement; it was not weakened to pass.

Covered this round: the delta from the reviewed head, the full origin/main...HEAD diff, surrounding delete/error callers, backward compatibility, test strength, relevant release history, and architecture impact. Project guidance remains absent from this worktree.

Checks: uv run ruff check . passed; uv run pytest -q passed (93 tests); the minimum-MCP isolated suite passed (93 tests, one third-party Pydantic warning); git diff --check passed. The earlier thread is resolved.

@dani1005
dani1005 merged commit 2787db5 into EverMind-AI:main Nov 5, 2026
2 checks passed
@dani1005 dani1005 mentioned this pull request Nov 16, 2026
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.

2 participants