Skip to content

Replace daemon restart with resilient Qdrant collection recovery#1911

Merged
siddseethepalli merged 1 commit into
mainfrom
swarm/task-2
Feb 14, 2026
Merged

Replace daemon restart with resilient Qdrant collection recovery#1911
siddseethepalli merged 1 commit into
mainfrom
swarm/task-2

Conversation

@siddseethepalli
Copy link
Copy Markdown
Contributor

@siddseethepalli siddseethepalli commented Feb 14, 2026

Summary

  • Removes the daemon restart from sessions clear that was introduced in PR Restart daemon after sessions clear to reset Qdrant state #1900
  • Makes VellumQdrantClient self-healing: when a Qdrant operation fails with a "collection not found" error (e.g. after external deletion), it resets collectionReady, re-creates the collection via ensureCollection(), and retries the operation
  • Addresses the review feedback that restarting via stopDaemon()/startDaemon() relaunches the daemon with the CLI process's environment, silently changing behavior-affecting env vars like QDRANT_URL and RUNTIME_HTTP_PORT

Test plan

  • Run vellum sessions clear while daemon is running — daemon should NOT restart, and subsequent memory operations should auto-recover by recreating the collection
  • Run vellum sessions clear while daemon is NOT running — no error, collection deleted normally
  • Verify that env vars like QDRANT_URL are preserved (no daemon restart means no env change)

Addresses review feedback on #1900.


Open with Devin

Instead of restarting the entire daemon after `sessions clear` deletes the
Qdrant collection, make VellumQdrantClient self-healing: detect "collection
not found" errors, reset the collectionReady flag, and retry the operation.

This avoids the production-impacting issue where restarting via
stopDaemon()/startDaemon() relaunches the daemon with the CLI process's
environment instead of the original daemon context, silently changing
behavior-affecting env vars like QDRANT_URL and RUNTIME_HTTP_PORT.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@siddseethepalli siddseethepalli self-assigned this Feb 14, 2026
@siddseethepalli siddseethepalli merged commit 2a769f6 into main Feb 14, 2026
1 check passed
@siddseethepalli siddseethepalli deleted the swarm/task-2 branch February 14, 2026 18:37
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f0d841f605

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread assistant/src/index.ts
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 4 additional findings.

Open in Devin Review

@siddseethepalli
Copy link
Copy Markdown
Contributor Author

Addressed in #1916

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